Interface


This page provides a description of each pin according to the various interfaces provided by the P4M-400. Unused pins do not need to be connected except when special mention is made in this page.

System

Ethernet

Pin# Name I/O Description
P1.3 TPTX+ In/Out Ethernet Transmit +
P1.4 TPTX- In/Out Ethernet Transmit -
P1.5 TPRX+ In/Out Ethernet Receive +
P1.6 TPRX- In/Out Ethernet Receive -

P4M-400 provides 10/100Base-TX Ethernet Interface. Note that RJ45 connector is required to use Ethernet.

Refer to a circuit diagram of the Application Circuit Diagram for the connection.

USB Host (Wireless LAN)

Pin# Name I/O Description
P1.9 USB_H_D+ In/Out USB Host Data +
P1.10 USB_H_D- In/Out USB Host Data -

P4M-400 provides IEEE802.11b/g wireless LAN via USB host port using a wireless LAN dongle which embeds RT3070 or RT5370 chipset. The USB host port must be connected to USB type A connector. Refer to a circuit diagram of the Application Circuit Diagram for the connection.

USB Device

Pin# Name I/O Description
P1.11 USB_D_D+ In/Out USB Device Data +
P1.12 USB_D_D- In/Out USB Device Data -
P2.1 VBUS In USB Device VBUS

This port must be interfaced for product development and configuration. After connecting this port and connecting the product with PC via a USB cable, you can access the product using the development tool (PHPoC Debugger). Either type B USB connector, mini USB or micro USB connector can be used for this port.

※ Note: The VBUS pin cannot be used for supplying power to P4M-400.

Digital I/O

Pin# Name I/O Description
P3.1 NSS(0.0) In/Out UIO 0.0 / SPI NSS
P3.2 SCK(0.1) In/Out UIO 0.1 / SPI SCK
P3.3 MISO(0.2) In/Out UIO 0.2 / SPI MISO
P3.4 MOSI(0.3) In/Out UIO 0.3 / SPI MOSI
P3.5 U0TX(0.4) In/Out UIO 0.4 / UART0 TX
P3.6 U0RX(0.5) In/Out UIO 0.5 / UART0 RX
P3.7 SCL(0.6) In/Out UIO 0.6 / I2C SCL
P3.8 SDA(0.7) In/Out UIO 0.7 / I2C SDA
P3.9 U0RTS(0.8) In/Out UIO 0.8 / UART0 RTS / UART0 TxDE
P3.10 U0CTS(0.9) In/Out UIO 0.9 / UART0 CTS
P3.11 U1TX(0.10) In/Out UIO 0.10 / UART1 TX
P3.12 U1RX(0.11) In/Out UIO 0.11 / UART1 RX
P4.1 U1RTS(0.12) In/Out UIO 0.12 / UART1 RTS / UART1 TxDE
P4.2 U1CTS(0.13) In/Out UIO 0.13 / UART1 CTS
P2.7 UIO(0.14) In/Out UIO 0.14
P2.8 SRO(0.15) In/Out UIO 0.15 / Slave Reset Out
P4.9 ADC0(1.0) In/Out UIO 1.0 / ADC0
P4.10 ADC1(1.1) In/Out UIO 1.1 / ADC1
P4.11 ADC2(1.2) In/Out UIO 1.2 / ADC2
P4.12 ADC3(1.3) In/Out UIO 1.3 / ADC3
P2.3 HT0(1.6) In/Out UIO 1.6 / Hardware Timer/Counter 0
P2.4 HT1(1.7) In/Out UIO 1.7 / Hardware Timer/Counter 1
P2.5 HT2(1.8) In/Out UIO 1.8 / Hardware Timer/Counter 2
P2.6 HT3(1.9) In/Out UIO 1.9 / Hardware Timer/Counter 3
P4.3 STX(1.10) In/Out UIO 1.10 / Slave TX
P4.4 SRX(1.11) In/Out UIO 1.11 / Slave RX

Analog input, UART, SPI and I2C ports can be set or used to digital I/O pins. These ports are mapped to UIO 0 and UIO 1. Digital I/O ports can also be operated as output ports of ST(Software Timer).

Parameter Description Min.[V] Max.[V] Current
VIH HIGH level input 2.31 - -
VIL LOW level input 0 0.99 -
VOH HIGH level output 2.9 - ±8mA(CMOS)
VOH HIGH level output 2.4 - ±8mA(TTL)
VOL LOW level output - 0.4 ±8mA(CMOS/TTL)

※ Note: Each UIO port is 5V tolerant in input mode and the maximum driving current is ±8mA in output mode.

Analog Input

Pin# Name I/O Description
P4.8 AREF In ADC Reference Input
P4.9 ADC0(1.0) In/Out UIO 1.0 / ADC0
P4.10 ADC1(1.1) In/Out UIO 1.1 / ADC1
P4.11 ADC2(1.2) In/Out UIO 1.2 / ADC2
P4.12 ADC3(1.3) In/Out UIO 1.3 / ADC3

ADC0, ADC1, ADC2 and ADC3 pins are analog input ports and each port has 12-bit resolution. The measured voltage of each port depends on a reference voltage. (0 ~ reference voltage) The reference voltage is input to the AREF pin, and the range of allowable voltage is DC 2.1V to DC 3.3V.

※ Note: The AREF pin must be connected regardless of whether the analog input port is used or not.

UART

Pin# Name I/O Description
P3.5 U0TX(0.4) In/Out UIO 0.4 / UART0 TX
P3.6 U0RX(0.5) In/Out UIO 0.5 / UART0 RX
P3.9 U0RTS(0.8) In/Out UIO 0.8 / UART0 RTS / UART0 TxDE
P3.10 U0CTS(0.9) In/Out UIO 0.9 / UART0 CTS
P3.11 U1TX(0.10) In/Out UIO 0.10 / UART1 TX
P3.12 U1RX(0.11) In/Out UIO 0.11 / UART1 RX
P4.1 U1RTS(0.12) In/Out UIO 0.12 / UART1 RTS / UART1 TxDE
P4.2 U1CTS(0.13) In/Out UIO 0.13 / UART1 CTS

There are two UART ports and each of them has RXD, TXD, RTS, CTS and TxDE.

SPI

Pin# Name I/O Description
P3.1 NSS(0.0) In/Out UIO 0.0 / SPI NSS
P3.2 SCK(0.1) In/Out UIO 0.1 / SPI SCK
P3.3 MISO(0.2) In/Out UIO 0.2 / SPI MISO
P3.4 MOSI(0.3) In/Out UIO 0.3 / SPI MOSI

There is SPI port which has NSS, SCK, MISO and MOSI.

I2C

Pin# Name I/O Description
P3.7 SCL(0.6) In/Out UIO 0.6 / I2C SCL
P3.8 SDA(0.7) In/Out UIO 0.7 / I2C SDA

There is I2C port which has SCL and SDA.

Hardware Timer/counter

Pin# Name I/O Description
P2.3 HT0(1.6) In/Out UIO 1.6 / Hardware Timer/Counter 0
P2.4 HT1(1.7) In/Out UIO 1.7 / Hardware Timer/Counter 1
P2.5 HT2(1.8) In/Out UIO 1.8 / Hardware Timer/Counter 2
P2.6 HT3(1.9) In/Out UIO 1.9 / Hardware Timer/Counter 3

There are four precision hardware timer/counters.

SPC

Pin# Name I/O Description
P2.8 SRO(0.15) Out UIO 0.15 / Slave Reset Out
P4.3 STX(1.10) Out UIO 1.10 / Slave TX
P4.4 SRX(1.11) In UIO 1.11 / Slave RX

P4M-400 does not support SPC yet. These pins are only allowed to set digital I/O ports.

※ Note: The SPC port can be used for other purposes in the future.