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

15.4 Timing<br />

This section starts with the timing of the timer counter and general output timing behaviour. This section describes the<br />

timing at which the timer counter increments and when the count value is generally output. An example showing<br />

automatic phase shifting is also provided.<br />

15.4.1 Timer counter<br />

The free running up counter is clocked by the timer count clock selected in register MCNTC0.<br />

The counting operation is enabled or disabled by the MCNTC0.PCE bit.<br />

CLK<br />

CNT0<br />

PCE<br />

Figure 15-11. Restart Timing after Count Stop (Count Start—Count Stop—Count Start)<br />

0H 1H 2H 7H 8H 00H<br />

1H 2H 3H 4H<br />

Count Start<br />

Count Stop<br />

Count Start<br />

Sequence<br />

Count Start:<br />

– Enable counting operation (MCNTC0.PCE = 1)<br />

– Timer counter starts with value 00H. Depending on bit MCNTC0.FULL, all following counter cycles start with<br />

00H or 01H, respectively.<br />

Count Stop:<br />

– Disable counting operation (MCNTC0.PCE = 0)<br />

– Counting is stopped and timer counter is set to 00H.<br />

R01UH0317EJ0004 Rev. 0.04 962<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!