upd78f0114m6gb-8es Renesas Electronics Corporation., upd78f0114m6gb-8es Datasheet - Page 511

no-image

upd78f0114m6gb-8es

Manufacturer Part Number
upd78f0114m6gb-8es
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
16-bit
timer/
event
counter
00
(TM00)
Function
CR000: 16-bit
timer
capture/compare
register 000
CR010: 16-bit
timer
capture/compare
register 010
TMC00: 16-bit
timer mode
control register
00
CRC00:
Capture/
compare control
register 00
Details of
Function
Set a value other than 0000H to CR000 in the mode in which clear & start occurs
on a match of TM00 and CR000.
If CR000 is set to 0000H in the free-running mode and in the clear mode using
the valid edge of the TI000 pin, an interrupt request (INTTM000) is generated
when the value of CR000 changes from 0000H to 0001H following TM00
overflow (FFFFH). Moreover, INTTM000 is generated after a match of TM00
and CR000 is detected, a valid edge of the TI010 pin is detected, and the timer
is cleared by a one-shot trigger.
When P01 is used as the valid edge input pin of TI010, it cannot be used as the
timer output (TO00). Moreover, when P01 is used as TO00, it cannot be used as
the valid edge input pin of TI010.
When CR000 is used as a capture register, read data is undefined if the register
read time and capture trigger input conflict (the capture data itself is the correct
value).
If timer count stop and capture trigger input conflict, the captured data is
undefined.
Do not rewrite CR000 during TM00 operation.
If the CR010 register is cleared to 0000H, an interrupt request (INTTM010) is
generated when the value changes from 0000H to 0001H after an overflow
(FFFFH) of TM00. Moreover, INTTM010 is generated after a match of TM00 and
CR010, after the valid edge of the TI000 pin is detected, and after clearing by the
one-shot trigger.
When CR010 is used as a capture register, read data is undefined if the register
read time and capture trigger input conflict (the capture data itself is the correct
value).
If count stop input and capture trigger input conflict, the captured data is
undefined.
CR010 can be rewritten during TM00 operation. For details, see Caution 2 in
Figure 6-15.
16-bit timer counter 00 (TM00) starts operation at the moment TMC002 and
TMC003 are set to values other than 0, 0 (operation stop mode), respectively. Set
TMC002 and TMC003 to 0, 0 to stop the operation.
Timer operation must be stopped before writing to bits other than the OVF00 flag.
Set the valid edge of the TI000/P00 pin using prescaler mode register 00
(PRM00).
If any of the following modes is selected: the mode in which clear & start occurs
on match between TM00 and CR000, the mode in which clear & start occurs at
the TI000 valid edge, or free-running mode, when the set value of CR000 is
FFFFH and the TM00 value changes from FFFFH to 0000H, the OVF00 flag is set
to 1.
Timer operation must be stopped before setting CRC00.
When the mode in which clear & start occurs on a match between TM00 and
CR000 is selected with 16-bit timer mode control register 00 (TMC00), CR000
should not be specified as a capture register.
To ensure that the capture operation is performed properly, the capture trigger
requires a pulse two cycles longer than the count clock selected by prescaler mode
register 00 (PRM00).
APPENDIX D LIST OF CAUTIONS
User’s Manual U16227EJ3V0UD
Cautions
p. 130
p. 130
p. 130
p. 130
pp. 130,
138
142,
153
p. 131
p. 131
p. 131
p. 132
p. 133
p. 133
p. 133
p. 134
p. 134
p. 134
Page
(4/22)
511

Related parts for upd78f0114m6gb-8es