NEC 78K0S/KU1+ User Manual page 313

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

Advertisement

Function
Details of
Function
16-bit
Capture
When the CRC001 bit value is 1, capture is not performed in the CR000 register if
timer/
operation
both the rising and falling edges have been selected as the valid edges of the
event
TI000 pin.
counters
When the CRC001 bit value is 1, the TM00 count value is not captured in the
00
CR000 register when a valid edge of the TI010 pin is detected, but the input from
the TI010 pin can be used as an external interrupt source because INTTM000 is
generated at that timing.
Changing
With the 16-bit timer capture/compare register 0n0 (CR0n0) used as a compare
compare
register, when changing CR0n0 around the timing of a match between 16-bit timer
register during
counter 00 (TM00) and 16-bit timer capture/compare register 0n0 (CR0n0) during
timer operation
timer counting, the change timing may conflict with the timing of the match, so the
operation is not guaranteed in such cases. To change CR0n0 during timer
counting, INTTM000 interrupt servicing performs the following operation.
If CR010 is changed during timer counting without performing processing <1>
above, the value in CR010 may be rewritten twice or more, causing an inversion
of the output level of the TO00 pin at each rewrite.
External event
The timing of the count start is after two valid edge detections.
counter
External clock
When using an input pulse of the TI000 pin as a count clock (external trigger), be
limitation
sure to input the pulse width which satisfies the AC characteristics. For the AC
characteristics, refer to CHAPTER 19 ELECTRICAL SPECIFICATIONS.
When an external waveform is input to 16-bit timer/event counter 00, it is sampled
by the noise limiter circuit and thus an error occurs on the timing to become valid
inside the device.
8-bit timer
CMP01: 8-bit
CMP01 cannot be rewritten during timer count operation.
H1
timer H
compare
register 01
CMP11: 8-bit
In the PWM output mode, be sure to set CMP11 when starting the timer count
timer H
operation (TMHE1 = 1) after the timer count operation was stopped (TMHE1 = 0)
compare
(be sure to set again even if setting the same value to CMP11).
register 11
TMHMD1: 8-bit
When TMHE1 = 1, setting the other bits of the TMHMD1 register is prohibited.
timer H mode
In the PWM output mode, be sure to set 8-bit timer H compare register 11
register 1
(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).
PWM output
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.
APPENDIX D LIST OF CAUTIONS
00H ≤ CMP11 (M) < CMP01 (N) ≤ FFH
User's Manual U18172EJ2V0UD
Cautions
(6/15)
Page
p. 118
p. 118
p. 119
p. 119
p. 120
p. 121
p. 121
p. 124
p. 124
p. 126
p. 126
p. 132
p. 132
p. 132
313

Advertisement

Table of Contents
loading

Table of Contents