21.07.2015 Views

M16C User Manual.pdf

M16C User Manual.pdf

M16C User Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Timer BMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTER2.3.6 Precautions for Timer B (timer mode, event counter mode)(1) To clear reset, the count start flag is set to “0”. Set a value in the timer Bi register, then set theflag to “1”.(2) Reading the timer Bi register while a count is in progress allows reading, with arbitrary timing,the value of the counter. Reading the timer Bi register with the reload timing shown in Figure2.3.12 gets “FFFF16”. Reading the timer Bi register after setting a value in the timer Bi registerwith a count halted but before the counter starts counting gets a proper value.ReloadCounter value (Hex.)2 1 0 n n – 1Read value (Hex.)2 1 0 FFFF n – 1n = reload register contentTimeFigure 2.3.12. Reading timer Bi register324

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

Saved successfully!

Ooh no, something went wrong!