Datasheet
78K0/Ix2 CHAPTER 4 PORT FUNCTIONS
R01UH0010EJ0500 Rev.5.00 129
Feb 28, 2012
4.2.5 Port 7
78K0/IY2 78K0/IA2 78K0/IB2
16 Pins 20 Pins 30 Pins/32 Pins
P70/ANI8
Port 7 is an I/O port with an output latch. Port 7 can be set to the input mode or output mode in 1-bit units using port
mode register 7 (PM7).
This port can also be used for A/D converter analog input.
When using P70/AM8, set the registers according to the pin function to be used (refer to Table 4-12).
Table 4-12. Setting Functions of P70/ANI8 Pins
ADPC1 Register PM7 Register ADS Register P70/ANI8 Pin
Selects ANI8. Setting prohibited Input mode
Does not select ANI8. Digital input
Selects ANI8. Setting prohibited
Digital I/O selection
Output mode
Does not select ANI8. Digital output
Selects ANI8. Analog input (to be converted into digital signal) Input mode
Does not select ANI8. Analog input (not to be converted into digital signal)
Analog input
selection
Output mode
Setting prohibited
Remark ADPC1: A/D port configuration register 1
PM7: Port mode register 7
ADS: Analog input channel specification register
Reset signal generation sets port 7 to analog input.
Figure 4-22 shows a block diagram of port 7.