
III PERIPHERAL BLOCK: INPUT/OUTPUT PORTS
Register name | Address | Bit | Name | Function |
|
| Setting | Init. | R/W | Remarks | ||
|
|
|
|
|
|
|
|
|
|
|
|
|
Port function | 00402DF | – | reserved | 1 |
| – |
| – | – | Undefined when read. | ||
extension | (B) | D5 | CFEX5 | P05 port extended function | 1 | – |
| 0 | P05, etc. | 0 | R/W | Always set to 0. |
register |
| D4 | CFEX4 | P04 port extended function | 1 | – |
| 0 | P04, etc. | 0 | R/W | Always set to 0. |
|
| D3 | CFEX3 | P31 port extended function | 1 | #GARD |
| 0 | P31, etc. | 0 | R/W |
|
|
| D2 | CFEX2 | P21 port extended function | 1 | #GAAS |
| 0 | P21, etc. | 0 | R/W |
|
|
| D1 | CFEX1 | P10, P11, P13 port extended | 1 | DST0 |
| 0 | P10, etc. | 1 | R/W |
|
|
|
|
| function |
| DST1 |
|
| P11, etc. |
|
|
|
|
|
|
|
|
| DPC0 |
|
| P13, etc. |
|
|
|
|
| D0 | CFEX0 | P12, P14 port extended function | 1 | DST2 |
| 0 | P12, etc. | 1 | R/W |
|
|
|
|
|
|
| DCLK |
|
| P14, etc. |
|
|
|
Selects the function of each I/O port pin.
Write "1": Used for peripheral circuit
Write "0": I/O port pin
Read: Valid
When a bit of the CFP register is set to "1", the corresponding pin is set for use with peripheral circuits (see Table 9.3). The pins for which register bits are set to "0" can be used as
At cold start, CFP is set to "0" (I/O port). At hot start, CFP retains its state from prior to the initial reset.
This register reads data from
When writing data
Write "1": High level
Write "0": Low level
When an I/O port is set for output, the data written to it is directly output to the I/O port pin. If the data written to the port is "1", the port pin is set high (VDD level); if the data is "0", the port pin is set low (VSS level).
Even in the input mode, data can be written to the port data register.
When reading data
Read "1": High level
Read "0": Low level
The voltage level on the port pin is read out regardless of whether an I/O port is set for input or output mode.If the pin voltage is high (VDD level), "1" is read out as input data; if the pin voltage is low (VSS level), "0" is read out as input data.
At cold start, all data bits are set to "0". At hot start, they retain their state from prior to the initial reset.
EPSON | S1C33210 FUNCTION PART |