NEC 78K0S/KA1+ User Manual page 392

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

Advertisement

Function
Details of
Function
8-bit timer
CR80: compare
80
register 80
TMC80: 8-bit
timer mode
control register
80
Iterval timer
Error when
timer start
CR80: compare
register 80
Stting STOP
mode
8-bit timer
CMP01: 8-bit
H1
timer H
compare
register 01
CMP11: 8-bit
timer H
compare
register 11
TMHMD1: 8-bit
timer H mode
register 1
PWM output
392
APPENDIX D LIST OF CAUTIONS
When changing the value of CR80, be sure to stop the timer operation. If the
value of CR80 is changed with the timer operation enabled, a match interrupt
request signal is generated immediately and the timer may be cleared.
Be sure to set TMC80 after stopping the timer operation.
Be sure to clear bits 0 and 6 to 0.
When changing the value of CR80, be sure to stop the timer operation. If the
value of CR80 is changed with the timer operation enabled, a match interrupt
request signal may be generated immediately.
If the count clock of TMC80 is set and the operation of TM80 is enabled at the
same time by using an 8-bit memory manipulation instruction, the error of one
cycle after the timer is started may be 1 clock or more (refer to 7.5 (1) Error when
timer starts). Therefore, be sure to follow the above sequence when using TM80
as an interval timer.
The time from starting the timer to generation of the match signal includes an
error of up to 1.5 clocks. This is because, if the timer is started while the count
clock is high, the rising edge may be immediately detected and the counter may
be incremented (refer to Figure 7-6).
8-bit compare register 80 (CR80) can be set to 00H.
Before executing the STOP instruction, be sure to stop the timer operation
(TCE80 = 0).
CMP01 cannot be rewritten during timer count operation.
In the PWM output mode, be sure to set CMP11 when starting the timer count
operation (TMHE1 = 1) after the timer count operation was stopped (TMHE1 = 0)
(be sure to set again even if setting the same value to CMP11).
When TMHE1 = 1, setting the other bits of the TMHMD1 register is prohibited.
In the PWM output mode, be sure to set 8-bit timer H compare register 11
(CMP11) when starting the timer count operation (TMHE1 = 1) after the timer
count operation was stopped (TMHE1 = 0) (be sure to set again even if setting
the same value to the CMP11 register).
In PWM output mode, the setting value for the CMP11 register can be changed
during timer count operation. However, three operation clocks (signal selected
using the CKS12 to CKS10 bits of the TMHMD1 register) or more are required to
transfer the register value after rewriting the CMP11 register value.
Be sure to set the CMP11 register when starting the timer count operation
(TMHE1 = 1) after the timer count operation was stopped (TMHE1 = 0) (be sure
to set again even if setting the same value to the CMP11 register).
Make sure that the CMP11 register setting value (M) and CMP01 register setting
value (N) are within the following range.
00H ≤ CMP11 (M) < CMP01 (N) ≤ FFH
User's Manual U16898EJ3V0UD
Cautions
(6/17)
Page
p. 124
p. 125
p. 125
p. 126
p. 126
p. 128
p. 128
p. 128
p. 131
p. 131
p. 133
p. 133
p. 139
p. 139
p. 140

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents