NEC 78K0S/KA1+ User Manual page 389

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0S/KA1+:
Table of Contents

Advertisement

Function
Details of
Function
16-bit
CR010: 16-bit
If the register read period and the input of the capture trigger conflict when CR010
timer/
capture/
is used as a capture register, the capture trigger input takes precedence and the
event
compare
read data is undefined. Also, if the timer count stop and the input of the capture
counters
register 010
trigger conflict, the capture data is undefined.
00
Changing the CR010 setting during TM00 operation may cause a malfunction. To
change the setting, refer to 6.5 Cautions Related to 16-Bit Timer/Event Counter
00 (17) Changing compare register during timer operation.
TMC00: 16-bit
16-bit timer counter 00 (TM00) starts operation at the moment TMC002 and
timer mode
TMC003 (operation stop mode) are set to a value other than 0, 0, respectively.
control register
Set TMC002 and TMC003 to 0, 0 to stop the operation.
00
The timer operation must be stopped before writing to bits other than the OVF00
flag.
If the timer is stopped, timer counts and timer interrupts do not occur, even if a
signal is input to the TI000/TI010 pins.
Except when TI000 pin valid edge is selected as the count clock, stop the timer
operation before setting STOP mode or system clock stop mode; otherwise the
timer may malfunction when the system clock starts.
Set the valid edge of the TI000 pin with bits 4 and 5 of prescaler mode register 00
(PRM00) after stopping the timer operation.
If the clear & start mode entered on a match between TM00 and CR000, clear &
start mode at the valid edge of the TI000 pin, or free-running mode is selected,
when the set value of CR000 is FFFFH and the TM00 value changes from FFFFH
to 0000H, the OVF00 flag is set to 1.
Even if the OVF00 flag is cleared before the next count clock is counted (before
TM00 becomes 0001H) after the occurrence of a TM00 overflow, the OVF00 flag
is re-set newly and clear is disabled.
The capture operation is performed at the fall of the count clock. An interrupt
request input (INTTM0n0), however, occurs at the rise of the next count clock.
CRC00:
The timer operation must be stopped before setting CRC00.
Capture/
compare control
When the clear & start mode entered on a match between TM00 and CR000 is
register 00
selected by 16-bit timer mode control register 00 (TMC00), CR000 should not be
specified as a capture register.
To ensure the reliability of the capture operation, the capture trigger requires a
pulse longer than two cycles of the count clock selected by prescaler mode
register 00 (PRM00) (refer to Figure 6-17).
TOC00: 16-bit
Timer operation must be stopped before setting other than OSPT00.
timer output
control register
If LVS00 and LVR00 are read, 0 is read.
00
OSPT00 is automatically cleared after data is set, so 0 is read.
Do not set OSPT00 to 1 other than in one-shot pulse output mode.
A write interval of two cycles or more of the count clock selected by prescaler
mode register 00 (PRM00) is required to write to OSPT00 successively.
When the TOE00 is 0, set the TOE00, LVS00, and LVR00 at the same time with
the 8-bit memory manipulation instruction. When the TOE00 is 1, the LVS00 and
LVR00 can be set with the 1-bit memory manipulation instruction.
APPENDIX D LIST OF CAUTIONS
Cautions
User's Manual U16898EJ3V0UD
(3/17)
Page
pp. 86,
119
p. 86
pp. 87,
116
pp. 88,
117
pp. 88,
116
pp. 88,
121
pp. 88,
117
p. 88
pp. 88,
118
pp. 88,
119
pp. 89,
117
pp. 89,
116
pp. 89,
119
pp. 90,
117
pp. 90,
117
pp. 90,
117
pp. 90,
117
pp. 90,
117
p. 90
389

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents