Program Example For Timer Function Of Pulse Width Count Timer - Fujitsu Semiconductor Controller MB89950/950A Hardware Manual

F2mc-8l 8-bit microcontroller
Table of Contents

Advertisement

8.10
Program Example for Timer Function of Pulse Width Count
Timer
This section gives two program examples for the timer function of the pulse width
count timer.
I Program example 1 for interval timer function (reload timer mode)
G
Processing description
• Generates repeated interval timer interrupts at 3 ms intervals (reload timer mode).
• The TO bit will be inverted after each interval time cycle. The initial value of TO bit is "0" level.
• 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
RLBR register value = 3 ms/(32 x 4/5 MHz) = 117.2 (075
CHAPTER 8 PULSE WIDTH COUNT TIMER (PWC)
(t
inst
inst
)
H
: Instruction cycle).
165

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb89950 seriesMb89950a series

Table of Contents