04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 15 STEPPER MOTOR CONTROLLER/DRIVER<br />

(2) Compare registers for sine side (MCMPk0) (k = 1 to 4)<br />

The 8-bit MCMPk0 registers hold the values that define the PWM pulse width for the sine side of the connected<br />

meters.<br />

The contents of the registers are continuously compared to the timer counter value:<br />

Registers MCMP10 to MCMP40 are compared to CNT0.<br />

When the register contents match the timer counter contents, a match signal is generated. Thus a PWM pulse with a<br />

pulse width corresponding to the MCMPk0 register contents is output to the sine side of the connected meter.<br />

These registers can be read/written in 8-bit units.<br />

This register is cleared by any reset.<br />

Address: F0162H, F0164H, F0166H, F0168H After reset: 00H R/W<br />

Symbol 7 6 5 4 3 2 1 0<br />

MCMPk0 sine DATA<br />

Remarks 1. New data must only be written to registers MCMPk0 if the corresponding bit MCMPCk.TEN = 0.<br />

2. Don't write to the compare register MCMPk0, until the corresponding bit MCMPCk.TEN has been reset to<br />

0 automatically.<br />

3. To enable master-to-slave register copy upon next CNTm overflow set MCMPCk.TEN = 1.<br />

(3) Compare registers for cosine side (MCMPk1) (k = 1 to 4)<br />

The 8-bit MCMPk1 registers hold the values that define the PWM pulse width for the cosine side of the connected<br />

meters.<br />

The contents of the registers are continuously compared to the timer counter value:<br />

Registers MCMP11 to MCMP41 are compared to CNT0.<br />

When the register contents match the timer counter contents, a match signal is generated. Thus a PWM pulse with a<br />

pulse width corresponding to the MCMPk1 register contents is output to the cosine side of the connected meter.<br />

These registers can be read/written in 8-bit units.<br />

This register is cleared by any reset.<br />

Address: F0163H, F0165H, F0167H, F0169H After reset: 00H R/W<br />

Symbol 7 6 5 4 3 2 1 0<br />

MCMPk1 cosine DATA<br />

Remarks 1. New data must only be written to registers MCMPk1 if the corresponding bit MCMPCk.TEN = 0.<br />

2. Don't write to the compare register MCMPk1, until the corresponding bit MCMPCk.TEN has been reset to<br />

0 automatically.<br />

3. To enable master-to-slave register copy upon next CNTm overflow set MCMPCk.TEN = 1.<br />

R01UH0317EJ0004 Rev. 0.04 951<br />

Feb. 22, 2013

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!