English
Language : 

UPD78F1502AGK-GAK-AX Datasheet, PDF (325/1031 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcontrollers
78K0R/Lx3
CHAPTER 6 TIMER ARRAY UNIT
Figure 6-44. Operation Procedure When External Event Counter Function Is Used
TAU
default
setting
Software Operation
Sets the TAU0EN or TAU1EN bits of the PER0
register to 1.
Sets the TPSp register.
Determines clock frequencies of CKp0 and CKp1.
Channel
default
setting
Sets the TMRpq register (determines operation mode of
channel).
Sets number of counts to the TDRpq register.
Clears the TOEpq bit of the TOEp register to 0.
Operation Sets the TSpq bit to 1.
start
The TSpq bit automatically returns to 0 because it is a
trigger bit.
During
operation
Set value of the TDRpq register can be changed.
The TCRpq register can always be read.
The TSRpq register is not used.
Set values of TMRpq, TOMp, TOLp, TOp, and TOEp
registers cannot be changed.
Operation The TTpq bit is set to 1.
stop
The TTpq bit automatically returns to 0 because it is a
trigger bit.
TAU stop The TAU0EN or TAU1EN bits of the PER0 register is
cleared to 0.
Hardware Status
Power-off status
(Clock supply is stopped and writing to each register is
disabled.)
Power-on status. Each channel stops operating.
(Clock supply is started and writing to each register is
enabled.)
Channel stops operating.
(Clock is supplied and some power is consumed.)
TEpq = 1, and count operation starts.
Value of TDRpq is loaded to TCRpq and detection of
the TIpq pin input edge is awaited.
Counter (TCRpq) counts down each time input edge of the
TIpq pin has been detected. When count value reaches
0000H, the value of TDRpq is loaded to TCRpq again, and
the count operation is continued. By detecting TCRpq =
0000H, the INTTMpq output is generated.
After that, the above operation is repeated.
TEpq = 0, and count operation stops.
TCRpq holds count value and stops.
Power-off status
All circuits are initialized and SFR of each channel is
also initialized.
Remark
pq: Unit number + Channel number (only for channels provided with timer I/O pins)
78K0R/LF3: p = 0, pq = 00 to 04, 07
78K0R/LG3: p = 0, pq = 00 to 07
78K0R/LH3: p = 0, 1, pq = 00 to 07, 10 to 13
R01UH0004EJ0501 Rev.5.01
309
Jun 20, 2011