English
Language : 

UPD78F0411GA-GAM-AX Datasheet, PDF (163/564 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
CHAPTER 6 16-BIT TIMER/EVENT COUNTERS 00
6.4.2 Square wave output operation
When 16-bit timer/event counter 00 operates as an interval timer (see 6.4.1), a square wave can be output from the
TO00 pin by setting the 16-bit timer output control register 00 (TOC00) to 03H.
When TMC003 and TMC002 are set to 11 (count clear & start mode entered upon a match between TM00 and
CR000), the counting operation is started in synchronization with the count clock.
When the value of TM00 later matches the value of CR000, TM00 is cleared to 0000H, an interrupt signal
(INTTM000) is generated, and TO00 output is inverted. This TO00 output that is inverted at fixed intervals enables
TO00 to output a square wave.
Remarks 1. For the setting of I/O pins, see 6.3 (6) Port mode register 3 (PM3).
2. For how to enable the INTTM000 signal interrupt, see CHAPTER 17 INTERRUPT FUNCTIONS.
Figure 6-16. Block Diagram of Square Wave Output Operation
Count clock
Operable bits
TMC003, TMC002
Clear
16-bit counter (TM00)
Match signal
CR000 register
TO00
Output output
controller
TO00 pin
INTTM000 signal
Figure 6-17. Basic Timing Example of Square Wave Output Operation
TM00 register
N
N
N
N
0000H
Operable bits
(TMC003, TMC002) 00
11
Compare register
(CR000)
N
TO00 output
Compare match interrupt
(INTTM000)
Interval
(N + 1)
Interval
(N + 1)
Interval
(N + 1)
Interval
(N + 1)
User’s Manual U18698EJ1V0UD
161