CHAPTER 10 A/D CONVERTER
User’s Manual U16898EJ3V0UD
164
(4) 8-bit A/D conversion result register (ADCRH)
This register is an 8-bit register that stores the A/D conversion result. It stores the higher 8 bits of a 10-bit
resolution result.
ADCRH can be read by an 8-bit memory manipulation instruction.
Reset signal generation makes ADCRH undefined.
Figure 10-7. Format of 8-Bit A/D Conversion Result Register (ADCRH)
Symbol
ADCRH
7
6
5
4
3
2
1
0
Address: FF1AH After reset: Undefined R
(5) Port mode control register 2 (PMC2) and port mode register 2 (PM2)
When using the P20/ANI0 to P23/ANI3 pins for analog input, set PMC20 to PMC23 and PM20 to PM23 to 1. At
this time, the output latches of P20 to P23 may be 0 or 1.
PMC2 and PM2 are set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation clears PMC2 to 00H and sets PM2 to FFH.
Figure 10-8. Format of Port Mode Control Register 2 (PMC2)
Address: FF84H After reset: 00H R/W
Symbol
7 6 5 4 3 2 1 0
PMC2
0 0 0 0
PMC23
PMC22
PMC21
PMC20
PMC2n
Operation mode specification (n = 0 to 3)
0 Port
mode
1
A/D converter mode
Figure 10-9. Format of Port Mode Register 2 (PM2)
Address: FF22H After reset: FFH R/W
Symbol
7 6 5 4 3 2 1 0
PM2
1 1 1 1
PM23
PM22
PM21
PM20
PM2n
P2n pin I/O mode selection (n = 0 to 3)
0
Output mode (output buffer on)
1
Input mode (output buffer off)
Caution When PMC20 to PMC23 are set to 1, the P20/ANI0 to P23/ANI3 pins cannot be used as port
pins.