NEC 78K0S/KB1+ User Manual page 168

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0S/KB1+:
Table of Contents

Advertisement

(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.
Address: FF1AH
Symbol
ADCRH
(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.
Address: FF84H
After reset: 00H
Symbol
7
PMC2
0
PMC2n
0
1
<R>
Caution When PMC20 to PMC23 are set to 1, the P20/ANI0 to P23/ANI3 pins cannot be used as port
pins. Be sure to set the pull-up resistor option registers (PU20 to PU23) to 0 for the pins
set to A/D converter mode.
Address: FF22H
After reset: FFH
Symbol
7
PM2
1
PM2n
0
1
168
CHAPTER 10 A/D CONVERTER
Figure 10-7. Format of 8-bit A/D Conversion Result Register (ADCRH)
After reset: Undefined
7
6
Figure 10-8. Format of Port Mode Control Register 2 (PMC2)
R/W
6
5
0
0
Port mode
A/D converter mode
Figure 10-9. Format of Port Mode Register 2 (PM2)
R/W
6
5
1
1
Output mode (output buffer on)
Input mode (output buffer off)
User's Manual U17446EJ3V1UD
R
5
4
3
4
3
0
PMC23
Operation mode specification (n = 0 to 3)
4
3
1
PM23
Pmn pin I/O mode selection (n = 0 to 3)
2
1
0
2
1
PMC22
PMC21
2
1
PM22
PM21
0
PMC20
0
PM20

Advertisement

Table of Contents
loading

Table of Contents