237
CHAPTER 18 METER CONTROLLER/DRIVER
Preliminary User’s Manual U14581EJ3V0UM00
18.4 Meter Controller/Driver Operations
18.4.1 Basic operation of free-running up counter (MCNT)
The free-running up counter (MCNT) is counted up by the count clock selected by the PCS bit of the timer mode
control register (MCNTC).
RESET input clears the value of MCNT.
The counting operation is enabled or disabled by the PCE bit of MCNTC.
Figure 18-6 shows the timing from count start to restart.
Figure 18-6. Restart Timing after Count Stop (Count Start
→
Count Stop
→
Count Start)
CLK
MCNT
PCE
0H
1H
2H
1H
2H
3H
4H
N
N + 1
00H
• • •
Count start
Count stop
Count start
Remark
N = 00H to FFH
18.4.2 To update PWM data
Confirm that bit 4 (TENn) of MCMPCn is 0, and then set 8-bit PWM data to MCMPn1 and MCMPn0, and bits
2 and 3 (ADBn1 and ADBn0) of MCMPCn, and at the same time, set TENn to 1.
The data will be automatically transferred to the slave latch when the timer overflows, and the PWM data becomes
valid. At the same time, TENn is automatically cleared to 0.
Remark
n = 1 to 4
Содержание mPD780851
Страница 2: ...2 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 8: ...8 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 12: ...12 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 26: ...26 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 46: ...46 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 74: ...74 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 90: ...90 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 100: ...100 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 136: ...136 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 142: ...142 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 186: ...186 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 222: ...222 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 230: ...230 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 240: ...240 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 262: ...262 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 296: ...296 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 304: ...304 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 314: ...314 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...