NEC V850E/Dx3 Preliminary User's Manual page 800

32-bit single-chip microcontroller
Table of Contents

Advertisement

Chapter 21
Power save mode
800
Downloaded from
Elcodis.com
electronic components distributor
Caution
In register MCNTCn0, bits 3 and 6 must be 0.
In register MCNTCn1, bits 3, 6 and 7 must be 0.
Before entering any power save mode the Stepper-C/D must be shut down in
preparation
advance in order to minimize power consumption.
Apply following sequence to shut down the Stepper-C/D:
1. Stop the counter CNT1 by setting MCNTCn1.PCE = 0.
2. Stop the counter CNT0 by setting MCNTCn0.PCE = 0.
3. Disable the Stepper-C/D operation by setting MCNTCn0.CAE = 0.
Note that the MCNTCn0.PCE and MCNTCn0.CAE bits must not be cleared to
0 by a single write instruction. Perform two write instructions as shown above.
(2)
MCMPnk0 - Compare registers for sine side (k = 1 to 6)
The 8-bit MCMPnk0 registers hold the values that define the PWM pulse width
for the sine side of the connected meters.
The contents of the registers are continuously compared to the timer counter
value:
• Registers MCMP10 to MCMP40 are compared to CNT0.
• Registers MCMP50 to MCMP60 are compared to CNT1.
When the register contents match the timer counter contents, a match signal is
generated. Thus a PWM pulse with a pulse width corresponding to the
MCMPnk0 register contents is output to the sine side of the connected meter.
Access
These registers can be read/written in 8-bit units.
Address
<base> + 2
, 4
H
Initial Value
00
. This register is cleared by any reset.
H
7
Note
1.
New data must only be written to registers MCMPnk0 if the corresponding
bit MCMPCnk.TEN = 0.
2.
Don't write to the compare register MCMPnk0, until the corresponding bit
MCMPCnk.TEN has been reset to 0 automatically.
3.
To enable master-to-slave register copy upon next CNTm overflow set
MCMPCnk.TEN = 1.
Preliminary User's Manual U17566EE1V2UM00
Stepper Motor Controller/Driver (Stepper-C/D)
, 6
, 8
, 16
, 18
H
H
H
H
H
6
5
4
sine DATA
R/W
3
2
1
0

Advertisement

Table of Contents
loading

Table of Contents