CHAPTER 6 16-BIT TIMER/EVENT COUNTERS 00 AND 01
User’s Manual U16899EJ2V0UD
152
Cautions 1. When the Ring-OSC clock is selected as the clock to be supplied to the CPU, the clock of the
Ring-OSC oscillator is divided and supplied as the count clock. If the count clock is the
Ring-OSC clock, the operation of 16-bit timer/event counter 01 is not guaranteed. When an
external clock is used and when the Ring-OSC clock is selected and supplied to the CPU, the
operation of 16-bit timer/event counter 01 is not guaranteed, either, because the Ring-OSC
clock is supplied as the sampling clock to eliminate noise.
2. Always set data to PRM01 after stopping the timer operation.
3. If the valid edge of the TI001 pin is to be set for the count clock, do not set the clear & start
mode using the valid edge of the TI001 pin and the capture trigger.
4. If the TI001 or TI011 pin is high level immediately after system reset, the rising edge is
immediately detected after the rising edge or both the rising and falling edges are set as the
valid edge(s) of the TI001 pin or TI011 pin to enable the operation of 16-bit timer counter 01
(TM01). Care is therefore required when pulling up the TI001 or TI011 pin. However, if the
TI001 or TI011 pin is high level when re-enabling operation after the operation has been
stopped, the rising edge is not detected.
5. When the valid edge of the TI011 pin is used, P06 cannot be used as the timer output pin
(TO01). When P06 is used as the TO01 pin, the valid edge of the TI011 pin cannot be used.
Remarks 1. f
X
: High-speed system clock oscillation frequency
2. Figures in parentheses are for operation with f
X
= 10 MHz.
(5) Port mode register 0 (PM0)
This register sets port 0 input/output in 1-bit units.
When using the P01/TO00/TI010 and P06/TO01
Note
/TI011
Note
pins for timer output, set PM01 and PM06 and the
output latch of P01 and P06 to 0.
When using the P01/TO00/TI010 and P06/TO01
Note
/TI011
Note
pins for timer input, set PM01 and PM06 to 1. At this
time, the output latch of P01 and P06 may be 0 or 1.
PM0 can be set by a 1-bit or 8-bit memory manipulation instruction.
RESET input sets PM0 to FFH.
Figure 6-14. Format of Port Mode Register 0 (PM0)
7
1
6
PM06
5
PM05
4
PM04
3
PM03
2
PM02
1
PM01
0
PM00
Symbol
PM0
Address: FF20H After reset: FFH R/W
PM0n
0
1
P0n pin I/O mode selection (n = 0 to 6)
Output mode (output buffer on)
Input mode (output buffer off)
Note Available only for the
µ
PD78F0133H, 78F0134H, 78F0136H, 78F0138H, and 78F0138HD.