Datasheet

78K0/Ix2 CHAPTER 7 16-BIT TIMER/EVENT COUNTER 00
R01UH0010EJ0500 Rev.5.00 266
Feb 28, 2012
(6) Port mode register 0 (PM0)
This register sets port 0 input/output in 1-bit units.
PM0 can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets PM0 to FFH.
78K0/IA2, 78K0/IB2 (32 pins)
When using the P00/TI000/INTP0/<TOH1>/<TI51> pin for timer input, set PM00 to 1
. At this time, the output
latch of P00 may be 0 or 1.
78K0/IB2 (30 pins)
When using the P01/TO00/TI010 pin for timer output, set PM01 and the output latch of P01 to 0
.
When using the P00/TI000/INTP0 and P01/TI010/TO00 pins for timer input, set PM00 and PM01 to 1
. At this
time, the output latches of P00 and P01 may be 0 or 1.
Remark When the timer input (TI000) function is assigned to the P121 or P125 pin by setting the input switch register
(MUXSEL), the port mode register and port register are not required to be set.
Figure 7-11. 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 78K0/IB2 (30 pins). For
the format of port mode register 0 of other products, refer to (1) Port mode registers (PMxx)
in 4.3 Registers Controlling Port Function.