29.01.2013 Views

uPD780065 Subseries PUM - Renesas Electronics

uPD780065 Subseries PUM - Renesas Electronics

uPD780065 Subseries PUM - Renesas Electronics

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.

CHAPTER 7 8-BIT TIMER/EVENT COUNTER<br />

(2) Operation after compare register transition during timer count operation<br />

If the value after 8-bit compare register 5n (CR5n) is transmitted is smaller than the value of 8-bit counter 5n<br />

(TM5n), TM5n continues counting, overflows and then restarts counting from 0. Thus, if the value (M) after CR5n<br />

is smaller than value (N) before transition, it is necessary to restart the timer after transiting CR5n.<br />

Figure 7-14. Timing after Compare Register Transition during Timer Count Operation<br />

Count pulse<br />

CR5n<br />

TM5 count value<br />

Caution Except when the TI5n input is selected, always set TCE5n = 0 before setting the stop state.<br />

Remarks 1. N > X > M<br />

2. n = 0, 1<br />

(3) TM5n (n = 0, 1) reading during timer operation<br />

When reading TM5n during operation, select count clock having high/low level wave form longer than two cycles<br />

of CPU clock because count clock stops temporary. For example, in the case where CPU clock (fCPU) is fx, when<br />

the selected count clock is fx/4 or below, it can be read.<br />

Remark n = 0, 1<br />

N M<br />

X–1 X FFH 00H 01H 02H<br />

Preliminary User’s Manual U13420EJ2V0UM00<br />

153

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

Saved successfully!

Ooh no, something went wrong!