
CHAPTER 12 A/D CONVERTER
User’s Manual U19780EJ2V0UD
336
(8) Port mode registers 2 and 8 (PM2, PM8)
When using the ANI0/AMP0-/P20 to ANI6/P26, ANI8/AMP2-/P80 to ANI11/P83, ANI15/AV
REFM
/P27 pins for analog
input port, set PM20 to PM27 and PM80 to PM83 to 1. The output latches of P20 to P27 and P80 to P83 at this time
may be 0 or 1.
If PM20 to PM27 and PM80 to PM83 are set to 0, they cannot be used as analog input port pins.
PM2 and PM6 can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets this register to FFH.
Caution If a pin is set as an analog input port, not the pin level but “0” is always read.
Remark
78K0/KB2-A : ANI0 to ANI5, ANI8 to ANI11
78K0/KC2-A : ANI0 to ANI6, ANI8 to ANI11, ANI15
Figure 12-12. Format of Port Mode Registers 2 and 8 (PM2, PM8)
<1>
μ
PD78F0590, 78F0591 (30-pin products)
Address: FF22H After reset: FFH R/W
Symbol 7 6 5 4 3 2 1 0
PM2
1
1
PM25 PM24 PM23 PM22 PM21 PM20
Address: FF28H After reset: FFH R/W
Symbol 7 6 5 4 3 2 1 0
PM8
1 1 1 1
PM83
PM82
PM81
PM80
<2>
μ
PD78F0592, 78F0593 (48-pin products)
Address: FF22H After reset: FFH R/W
Symbol 7 6 5 4 3 2 1 0
PM2
PM27 PM26 PM25 PM24 PM23 PM22 PM21 PM20
Address: FF28H After reset: FFH R/W
Symbol 7 6 5 4 3 2 1 0
PM8
1 1 1 1
PM83
PM82
PM81
PM80
PMmn
Pmn pin I/O mode selection (mn = 20 to 27, 80 to 83)
0
Output mode (output buffer on)
1
Input mode (output buffer off)