|
|
| III PERIPHERAL BLOCK: INPUT/OUTPUT PORTS | ||
|
|
|
|
| |
Pin name | I/O | Function | Function select bit |
| |
P20/#DRD | I/O | – | I/O port / #DRD output | CFP20(D0)/P2 function select register(0x402D8) |
|
P21/#DWE/ | I/O | – | I/O port / #DWE output / | CFP21(D1)/P2 function select register(0x402D8) |
|
#GAAS |
|
| GA address strobe output (Ex) | CFEX2(D2)/Port function extension register(0x402DF) |
|
P22/TM0 | I/O | – | I/O port / | CFP22(D2)/P2 function select register(0x402D8) |
|
P23/TM1 | I/O | – | I/O port / | CFP23(D3)/P2 function select register(0x402D8) |
|
P24/TM2/ | I/O | – | I/O port / | CFP24(D4)/P2 function select register(0x402D8) |
|
#SRDY2 |
|
| ready input/output |
|
|
P25/TM3/ | I/O | – | I/O port / | CFP25(D5)/P2 function select register(0x402D8) |
|
#SCLK2 |
|
| clock input/output |
|
|
P26/TM4/ | I/O | – | I/O port / | CFP26(D6)/P2 function select register(0x402D8) |
|
SOUT2 |
|
| data output |
|
|
P27/TM5/SIN2 | I/O | – | I/O port / | CFP27(D7)/P2 function select register(0x402D8) |
|
|
|
| data input |
|
|
P30/#WAIT/ | I/O | – | I/O port / #WAIT input (I) / #CE4&5 output (O) | CFP30(D0)/P3 function select register(0x402DC) |
|
#CE4&5 |
|
|
|
|
|
P31/#BUSGET/ | I/O | – | I/O port / #BUSGET output / | CFP31(D1)/P3 function select register(0x402DC) |
|
#GARD |
|
| GA read signal output (Ex) | CFEX3(D3)/Port function extension register(0x402DF) |
|
P32/#DMAACK0 | I/O | – | I/O port / #DMAACK0 output / Serial IF Ch.3 | CFP32(D2)/P3 function select register(0x402DC) |
|
/#SRDY3 |
|
| ready input/output |
|
|
P33/#DMAACK1 | I/O | – | I/O port / #DMAACK1 output / Serial IF Ch.3 | CFP33(D3)/P3 function select register(0x402DC) |
|
/SIN3 |
|
| data input |
|
|
P34/#BUSREQ/ | I/O | – | I/O port / #BUSREQ input (I) / #CE6 output | CFP34(D4)/P3 function select register(0x402DC) |
|
#CE6 |
|
| (O) |
|
|
P35/#BUSACK | I/O | – | I/O port / #BUSACK output | CFP35(D5)/P3 function select register(0x402DC) |
|
(I): Input mode, (O): Output mode, (Ex): Extended function
At cold start, all pins are set for I/O ports Pxx (function select register CFPxx = "0"). When these pins are used for the internal peripheral circuits, write "1" to CFPxx. For details on pin functions in this case, refer to the description of each peripheral circuit in this manual.
At hot start, the pins retain their state from prior to the reset.
In addition to being an I/O port, the
the direction (input or output) in which the pin is set using an I/O control register, as will be described later.B-IIIThe
selected by writing "1" to CFEXx / Port function extension register (0x402DF). The setting of CFEXx has priority over the CFPxx.
At cold start, CFEX1 and CFEX0 are set to "1", so the
I/O Control Register and I/O Modes
The I/O ports are directed for input or output modes by writing data to an I/O control register corresponding to each port bit.
I/O
To set an I/O port for input, write "0" to the I/O control bit. I/O ports set for input mode are placed in the high- impedance state, and thus function as input ports.
In the input mode, the state of the input pin is read directly, so the data is "1" when the pin state is high (VDD level) or "0" when the pin state is low (VSS level).
Even in the input mode, data can be written to the data register without affecting the pin state.
To set an I/O port for output, write "1" to the I/O control bit. I/O port set for output function as output ports. When the port output data is "1", the port outputs a high level (VDD level); when the data is "0", the port outputs a low level (VSS level).
At cold start, the I/O control register is set to "0" (input mode).
At hot start, the pins retain their state from prior to the reset.
Note: If pins
S1C33L03 FUNCTION PART | EPSON |