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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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 />

(4) Combined compare registers (MCMPkHW) (k = 1 to 4)<br />

The 16-bit MCMPkHW registers combine the sine and cosine registers MCMPk0 and MCMPk1. Via these registers it<br />

is possible to read or write the contents of MCMPk0 and MCMPk1 in a single instruction.<br />

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

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

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

Symbol 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

MCMPkHW cosine DATA sine DATA<br />

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

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

to 0 automatically.<br />

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

R01UH0317EJ0004 Rev. 0.04 952<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!