NEC 78K0 Series User Manual page 205

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0 Series:
Table of Contents

Advertisement

CHAPTER 7 16-BIT TIMER/EVENT COUNTERS 00 AND 01
Figure 7-32. Timing Example of Clear & Start Mode Entered by TI00n Pin Valid Edge Input
(CR00n: Capture Register, CR01n: Compare Register) (2/2)
(b) TOC0n = 13H, PRM0n = 10H, CRC0n, = 03H, TMC0n = 0AH, CR01n = 0003H
TM0n register
0003H
0000H
Operable bits
(TMC0n3, TMC0n2)
Capture & count clear input
(TI00n pin input)
Compare register
(CR00n)
Compare match interrupt
(INTTM00n)
Capture register
(CR01n)
Capture interrupt
(INTTM01n)
TO0n pin output
This is an application example where the width set to CR01n (4 clocks in this example) is to be output from the
TO0n pin when the count value has been captured & cleared.
TM0n is cleared (to 0000H) at the rising edge detection of the TI00n pin and captured to CR00n at the falling
edge detection of the TI00n pin. The output level of the TO0n pin is inverted when TM0n is cleared (to 0000H)
because the rising edge of the TI00n pin has been detected or when the value of TM0n matches that of a
compare register (CR01n).
When bit 1 (CRC0n1) of capture/compare control register 0n (CRC0n) is 1, the count value of TM0n is captured
to CR00n in the phase reverse to that of the input signal of the TI00n pin, but the capture interrupt signal
(INTTM00n) is not generated. However, the INTTM00n interrupt is generated when the valid edge of the TI01n
pin is detected. Mask the INTTM00n signal when it is not used.
µ
Remark n = 0:
PD78F0531, 78F0532, 78F0533
µ
n = 0, 1:
PD78F0534, 78F0535, 78F0536, 78F0537, 78F0537D
M
00
10
0000H
L
0003H
4
Preliminary User's Manual U17260EJ3V1UD
S
N
M
N
S
4
4
P
P
4
205

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents