Datasheet

78K0/Ix2 CHAPTER 11 A/D CONVERTER
R01UH0010EJ0500 Rev.5.00 378
Feb 28, 2012
Figure 11-12. Format of A/D Port Configuration Register 1 (ADPC1) (78K0/IB2 Only)
Address: FF2FH After reset: 00H R/W
Symbol 7 6 5 4 3 2 1 0
ADPC1 0 0 0 0 0 0 0 ADPC8
ADPCS8 Digital I/O or analog input selection
0 Analog input
1 Digital I/O
Cautions 1. Set the pin set to analog input to the input mode by using port mode register 7 (PM7).
2. If data is written to ADPC1, a wait cycle is generated. Do not write data to ADPC1 when the
peripheral hardware clock is stopped. For details, refer to CHAPTER 31 CAUTIONS FOR WAIT.
(9) Port mode registers 2, 7 (PM2, PM7)
When using the ANI0/AMP-/P20 to ANI7/P27 and ANI8/P70 pins for analog input port, set PM20 to PM27 and PM70
to 1. The output latches of P20 to P27 and P70 at this time may be 0 or 1.
If PM20 to PM27 and PM70 are set to 0, they cannot be used as analog input port pins.
PM2 and PM7 can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets PM2 and PM7 to FFH.
Remark A/D converter analog input pins differ depending on products.
78K0/IY2: ANI0, ANI1, ANI3 to ANI5
78K0/IA2: ANI0 to ANI5
78K0/IB2: ANI0 to ANI8