FUJITSU Semiconductor Controller MB89950/950A User Manual

Page 181

Advertising
background image

167

CHAPTER 8 PULSE WIDTH COUNT TIMER (PWC)

■ Program example 2 for interval timer function (one-shot timer mode)

●

Processing description

•

Generates a single 1.5 ms interval timer interrupt (one-shot timer mode).

•

The TO bit is initialized to "1" and inverted after the interval time.

•

The following shows the RLBR register value that results in an interval time of approximately 3 ms for

a 5 MHz main clock oscillation frequency. The count clock is 32 t

inst

(t

inst

: Instruction cycle).

RLBR register value = 3 ms/(32 x 4/5 MHz) = 117.2 (075

H

)

Advertising