Square-Wave Output Operation; Control Register Settings In Square-Wave Output Mode - NEC PD78052 User Manual

Pd78054 series; pd78054y series 8-bit single-chip microcontrollers
Table of Contents

Advertisement

8.5.6 Square-wave output operation

Operates as square wave output with any selected frequency at intervals of the count value preset to the 16-bit
capture/compare register 00 (CR00).
The TO0/P30 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 (TOC0) to 1. This enables a square wave with any selected
frequency to be output.
Figure 8-29. Control Register Settings in Square-Wave Output Mode
TMC0
0
0
CRC0
0
0
OSPT OSPE TOC04 LVS0
TOC0
0
0
Remark
0/1: Setting 0 or 1 allows another function to be used simultaneously with square-wave output.
See the description of the respective control registers for details.
206
CHAPTER 8 16-BIT TIMER/EVENT COUNTER
(a) 16-bit timer mode control register (TMC0)
TMC03
TMC02
TMC01
0
0
1
1
0/1
(b) Capture/compare control register 0 (CRC0)
CRC02
CRC01
0
0
0
0/1
0/1
(c) 16-bit timer output control register (TOC0)
LVR0
TOC01
0
0
0/1
0/1
1
OVF0
0
Clear & start on match of TM0 and CR00
CRC00
0
CR00 set as compare register
TOE0
1
TO0 Output Enabled
Inversion of output on match of TM0 and CR00
Specified TO0 output F/F initial value
No inversion of output on match of TM0 and CR01
One-shot pulse output disabled

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents