165
CHAPTER 8 PULSE WIDTH COUNT TIMER (PWC)
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.
■
Program example 1 for interval timer function (reload timer mode)
●
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
inst
(t
inst
: Instruction cycle).
RLBR register value = 3 ms/(32 x 4/5 MHz) = 117.2 (075
H
)
Summary of Contents for MB89950 Series
Page 2: ......
Page 3: ...FUJITSU LIMITED F2MC 8L 8 BIT MICROCONTROLLER MB89950 950A Series HARDWARE MANUAL ...
Page 4: ......
Page 10: ...vi ...
Page 34: ...20 CHAPTER 2 HANDLING DEVICES ...
Page 134: ...120 CHAPTER 6 WATCHDOG TIMER ...
Page 236: ...222 CHAPTER 10 UART ...
Page 276: ...262 CHAPTER 12 LCD CONTROLLER DRIVER ...
Page 310: ...296 APPENDIX ...
Page 311: ...297 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 316: ...302 INDEX ...
Page 318: ......