Datasheet

78K0/Kx2-L CHAPTER 8 8-BIT TIMERS H0 AND H1
R01UH0028EJ0400 Rev.4.00 345
Sep 27, 2010
(4) Port mode register 0 (PM0), port mode register 1 (PM1), port mode register 3 (PM3)
This register sets port 0 input/output, port 1 input/output, and port 3 input/output in 1-bit units.
78K0/KY2-L, 78K0/KA2-L (20-pin products)
When using the P30/TOH1/TI51/INTP1 pins for timer output, clear PM30 and the output latches of P30 to 0.
78K0/KA2-L (25-pin products)
When using the P34(/TOH1)(/TI51)/INTP4 pins for timer output, clear PM34 and the output latches of P34 to 0.
When using the P00(/TOH1)(/TI51)/INTP0/TI000 pins for timer output, clear PM00 and the output latches of P00 to 0.
78K0/KA2-L (32-pin products)
When using the P34(/TOH1)/INTP4 pins for timer output, clear PM34 and the output latches of P34 to 0.
78K0/KB2-L, 78K0/KC2-L
When using the P15/TOH0 and P16/TOH1/INTP5 pins for timer output, clear PM15 and PM16 and the output latches
of P15 and P16 to 0.
PM0, PM1, and PM3 can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets this register to FFH.
Figure 8-9. Format of Port Mode Register 0 (PM0)
Address: FF20H After reset: FFH R/W
Symbol 7 6 5 4 3 2 1 0
PM0 1 1 1 1 1 PM02 PM01 PM00
PM0n P0n pin I/O mode selection (n = 0 to 2)
0 Output mode (output buffer on)
1 Input mode (output buffer off)
Remark The figure shown above presents the format of port mode register 0 of the 78K0/KA2-L (25-pin
products).
Figure 8-10. Format of Port Mode Register 1 (PM1)
Address: FF21H After reset: FFH R/W
Symbol 7 6 5 4 3 2 1 0
PM1 PM17 PM16 PM15 PM14 PM13 PM12 PM11 PM10
PM1n P1n pin I/O mode selection (n = 0 to 7)
0 Output mode (output buffer on)
1 Input mode (output buffer off)
Remark The figure shown above presents the format of port mode register 1 of the 78K0/KB2-L and
78K0/KC2-L.
<R>
<R>