EasyManuals Logo

Renesas RL78/G13 User Manual

Renesas RL78/G13
1092 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #351 background imageLoading...
Page #351 background image
RL78/G13 CHAPTER 6 TIMER ARRAY UNIT
R01UH0146EJ0100 Rev.1.00 332
Sep 22, 2011
The count value can be read by reading timer count register mn (TCRmn).
The count value is set to FFFFH in the following cases.
• When the reset signal is generated
• When the TAUmEN bit of peripheral enable register 0 (PER0) is cleared
• When counting of the slave channel has been completed in the PWM output mode
• When counting of the slave channel has been completed in the delay count mode
• When counting of the master/slave channel has been completed in the one-shot pulse output mode
• When counting of the slave channel has been completed in the multiple PWM output mode
The count value is cleared to 0000H in the following cases.
• When the start trigger is input in the capture mode
• When capturing has been completed in the capture mode
Caution The count value is not captured to timer data register mn (TDRmn) even when the TCRmn
register is read.
The TCRmn register read value differs as follows according to operation mode changes and the operating status.
Table 6-3. Timer Count Register mn (TCRmn) Read Value in Various Operation Modes
Timer count register mn (TCRmn) Read Value
Note
Operation Mode Count Mode
Value if the
operation mode
was changed after
releasing reset
Value if the
operation mode was
changed after count
operation paused
(TTmn = 1)
Value if the
Operation was
restarted after count
operation paused
(TTmn = 1)
Value when waiting
for a start trigger
after one count
Interval timer
mode
Count down FFFFH Undefined Stop value
−
Capture mode Count up 0000H Undefined Stop value
−
Event counter
mode
Count down FFFFH Undefined Stop value
−
One-count mode Count down FFFFH Undefined Stop value FFFFH
Capture & one-
count mode
Count up 0000H Undefined Stop value Capture value of
TDRmn register + 1
Note This indicates the value read from the TCRmn register when channel n has stopped operating as a timer (TEmn = 0)
and has been enabled to operate as a counter (TSmn = 1). The read value is held in the TCRmn register until the
count operation starts.
Remark m: Unit number (m = 0, 1), n: Channel number (n = 0 to 7)
<R>

Table of Contents

Other manuals for Renesas RL78/G13

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78/G13 and is the answer not in the manual?

Renesas RL78/G13 Specifications

General IconGeneral
BrandRenesas
ModelRL78/G13
CategoryComputer Hardware
LanguageEnglish

Related product manuals