English
Language : 

UPD78F1502AGK-GAK-AX Datasheet, PDF (416/1031 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcontrollers
78K0R/Lx3
CHAPTER 10 12-BIT A/D CONVERTER (μ PD78F150xA),
10-BIT A/D CONVERTER (μ PD78F151xA)
(10) Port mode registers 2, 15 (PM2, PM15)
When using ANI0/AMP0-/P20 to ANI7/AMP2O/P27, ANI8/AMP2+/P150 to ANI10/P152 and ANI15/AVREFM/P157 pins
for analog input port, set PM20 to PM27, PM150 to PM152, and P157 to 1. The output latches of P20 to P27, P150 to
P152 and P157 at this time may be 0 or 1.
If PM20 to PM27, PM150 to PM152 and PM157 are set to 0, they cannot be used as analog input port pins.
PM2 and PM15 can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets these registers to FFH.
Remark 78K0R/LF3:
ANI0-ANI6, ANI15
78K0R/LG3, 78K0R/LH3: ANI0-ANI10, ANI15
Caution If a pin is set as an analog input port, not the pin level but “0” is always read.
Figure 10-15. Formats of Port Mode Registers 2, 15 (PM2, PM15)
• 78K0R/LF3
Address: FFF22H After reset: FFH R/W
Symbol
7
6
5
PM2
1
PM26
PM25
4
PM24
3
PM23
2
PM22
1
PM21
0
PM20
Address: FFF2FH After reset: FFH R/W
Symbol
7
6
5
4
3
2
1
0
PM15 PM157
1
1
1
1
1
1
1
• 78K0R/LG3, 78K0R/LH3
Address: FFF22H After reset: FFH R/W
Symbol
7
6
5
PM2
PM27
PM26
PM25
4
PM24
3
PM23
2
PM22
1
PM21
0
PM20
Address: FFF2FH After reset: FFH R/W
Symbol
7
6
5
4
3
2
1
0
PM15 PM157
1
1
1
1
PM152
PM151
PM150
PMmn
0
1
Pmn pin I/O mode selection (mn = 20 to 27, 150 to 152, 157)
Output mode (output buffer on)
Input mode (output buffer off)
R01UH0004EJ0501 Rev.5.01
400
Jun 20, 2011