Meter Controller/Driver Operations; Basic Operation Of Free-Running Up Counter (Mcnt); To Update Pwm Data - NEC mPD780852 Series Preliminary User's Manual

8-bit single-chip microcontrollers
Table of Contents

Advertisement

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
0H
1H
PCE
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
CHAPTER 18 METER CONTROLLER/DRIVER
2H
• • •
N
N + 1
Count stop
Preliminary User's Manual U14581EJ3V0UM00
00H
Count start
1H
2H
3H
4H
237

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpd780851Mpd780851aMpd780852aMpd78f0852

Table of Contents