Mitsubishi Electric M32R Series User Manual page 357

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

MULTIJUNCTION TIMERS
10
10.3 TOP (Output-related 16-bit Timer)
When writing to the correction register, be careful not to cause the counter to overflow. Even
when the counter overflows due to correction of counts, no interrupt is generated for the
occurrence of overflow.
In the example below, the reload register has the initial value H'8000 set in it. When the timer
starts, the reload register value is loaded into the counter causing it to start counting down. In the
example diagram here, H'4000 is written to the correction register when the counter has counted
down to H'5000. As a result of this correction, the count has been increased to H'9000, so that the
counter stops after counting a total of (H'8000 + 1 + H'4000 + 1) counts.
10-87
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents