Square-Wave Output Operation - NEC mPD780065 Series Preliminary User's Manual

8-bit single-chip microcontrollers
Table of Contents

Advertisement

Figure 6-22. External Event Counter Configuration Diagram
Noise elimination
3
f
/2
X
circuit
Valid edge of TI00
Figure 6-23. External Event Counter Operation Timings (with Rising Edge Specified)
TI00 pin input
TM0 count value
0000H 0001H 0002H 0003H 0004H 0005H
CR00
INTTM00
Caution
When reading the external event counter count value, TM0 should be read.

6.5.5 Square-wave output operation

A square wave with any selected frequency to be output at intervals of the count value preset to 16-bit timer capture/
compare register 00 (CR00) operates.
The TO0 pin output status is reversed at intervals of the count value preset to CR00 by setting bit 0 (TOE0) and
bit 1 (TOC01) of the 16-bit timer output control register 0 (TOC0) to 1. This enables a square wave with any selected
frequency to be output.
CHAPTER 6 16-BIT TIMER/EVENT COUNTER
16-bit timer capture/compare
register (CR00)
f
X
2
f
/2
X
6
f
/2
X
16-bit timer capture/compare
register (CR01)
N
Preliminary User's Manual U13420EJ2V0UM00
Coincidence
Clear
16-bit timer/counter 0 (TM0)
Internal bus
N–1
N
0000H 0001H 0002H 0003H
INTTM00
OVF0
125

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpd780065Mpd78f0066

Table of Contents