213
CHAPTER 8 16-BIT TIMER/EVENT COUNTER
8.5.6 Square-wave output operation
16-bit timer/event counter operates as a 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
(a) 16-bit timer mode control register (TMC0)
(b) Capture/compare control register 0 (CRC0)
TMC0
0
0/1
1
1
0
0
0
0
OVF0
TMC01
TMC02
TMC03
Clear & start on match of TM0 and CR00
CRC0
0
0/1
0/1
0
0
0
0
0
CRC00
CRC01
CRC02
CR00 set as compare register
(c) 16-bit timer output control register (TOC0)
TOC0
1
1
0/1
0/1
0
0
0
0
TOE0
TOC01
LVR0
OSPT OSPE TOC04 LVS0
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
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.
Содержание PD78076
Страница 2: ...2 MEMO ...
Страница 12: ...12 MEMO ...
Страница 48: ...48 MEMO ...
Страница 64: ...64 MEMO ...
Страница 82: ...82 MEMO ...
Страница 100: ...100 MEMO ...
Страница 130: ...130 MEMO ...
Страница 180: ...180 MEMO ...
Страница 222: ...222 MEMO ...
Страница 248: ...248 MEMO ...
Страница 288: ...288 MEMO ...
Страница 308: ...308 MEMO ...
Страница 364: ...364 MEMO ...
Страница 494: ...494 MEMO ...
Страница 526: ...526 MEMO ...
Страница 544: ...544 MEMO ...
Страница 558: ...558 MEMO ...
Страница 580: ...580 MEMO ...
Страница 596: ...596 MEMO ...
Страница 598: ...598 MEMO ...
Страница 626: ...626 MEMO ...