UPD78F0838 Renesas Electronics Corporation., UPD78F0838 Datasheet - Page 673

no-image

UPD78F0838

Manufacturer Part Number
UPD78F0838
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
<R>
(2) Compare registers for sine side (MCMPk0) (k = 1 to 4)
(3) Compare registers for cosine side (MCMPk1) (k = 1 to 4)
Remarks 1. New data must only be written to registers MCMPk0 if the corresponding bit MCMPCk.TEN = 0.
Remarks 1. New data must only be written to registers MCMPk1 if the corresponding bit MCMPCk.TEN = 0.
The 8-bit MCMPk0 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:
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 MCMPk0 register contents is output to the sine side of the connected
meter.
These registers can be read/written in 8-bit units.
This register is cleared by any reset.
The 8-bit MCMPk1 registers hold the values that define the PWM pulse width for the cosine side of the connected
meters.
The contents of the registers are continuously compared to the timer counter value:
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 MCMPk1 register contents is output to the cosine side of the connected
meter.
These registers can be read/written in 8-bit units.
This register is cleared by any reset.
Address: F9C2H, F9C4H, F9C6H, F9C8H
Symbol
MCMPk0
Address: F9C3H, F9C5H, F9C7H, F9C9H
Symbol
MCMPk1
Registers MCMP10 to MCMP40 are compared to CNT0.
Registers MCMP11 to MCMP41 are compared to CNT0.
2. Don't write to the compare register MCMPk0, until the corresponding bit MCMPCk.TEN has been
3. To enable master-to-slave register copy upon next CNTm overflow set MCMPCk.TEN = 1.
2. Don't write to the compare register MCMPk1, until the corresponding bit MCMPCk.TEN has been
3. To enable master-to-slave register copy upon next CNTm overflow set MCMPCk.TEN = 1.
reset to 0 automatically.
reset to 0 automatically.
7
7
CHAPTER 16 STEPPER MOTOR CONTROLLER/DRIVER
6
6
Preliminary User’s Manual U19748EJ1V0UD
After reset: 00H
After reset: 00H
5
5
4
cosine DATA
4
sine DATA
R/W
R/W
3
3
2
2
1
1
0
0
671

Related parts for UPD78F0838