![NEC mPD780065 Series Скачать руководство пользователя страница 116](http://html.mh-extra.com/html/nec/mpd780065-series/mpd780065-series_preliminary-users-manual_249264116.webp)
116
CHAPTER 6 16-BIT TIMER/EVENT COUNTER
Preliminary User’s Manual U13420EJ2V0UM00
6.5.2 PPG output operations
Setting 16-bit timer mode control register 0 (TMC0) and capture/compare control register 0 (CRC0) as shown in
Figure 6-10 allows operation as PPG (Programmable Pulse Generator) output.
In the PPG output operation, square waves are output from the TO0/TI00/P20 pin with the pulse width and the
cycle that corresponds to the count values set beforehand in 16-bit timer capture/compare register 01 (CR01) and
in 16-bit timer capture/compare register 00 (CR00), respectively.
Figure 6-10. Control Register Settings for PPG Output Operation
(a) 16-bit timer mode control register 0 (TMC0)
(b) Capture/compare control register 0 (CRC0)
(c) 16-bit timer output control register 0 (TOC0)
Cautions 1. Values in the following range should be set in CR00 and CR01:
0000H < CR01 < CR00
≤
FFFFH
2. The cycle of the pulse generated through PPG output (CR00 setting value + 1) has a duty of
(CR01 setting value + 1)/(CR00 setting value + 1).
Remark
×
: don’t care
0
0
0
0
TMC03
1
TMC02
1
TMC01
0
OVF0
0
TMC0
Clears and starts on coincidence between TM0 and CR00.
0
0
0
0
0
CRC02
0
CRC01
×
CRC00
0
CRC0
CR00 as compare register
CR01 as compare register
0
OSPT
0
OSPE
0
TOC04
1
LVS0
0/1
LVR0
0/1
TOC01
1
TOE0
1
TOC0
Enables TO0 output
Reverses output on coincidence between TM0 and CR00
Specifies initial value of TO0 output F/F
Reverse output on coincidence between TM0 and CR01
Disables one-shot pulse output
Содержание mPD780065 Series
Страница 2: ...Preliminary User s Manual U13420EJ2V0UM00 2 MEMO ...
Страница 10: ...10 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 22: ...22 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 134: ...134 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 154: ...154 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 160: ...160 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 186: ...186 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 326: ...326 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 342: ...342 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 350: ...350 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...