Notes On Using 8-Bit Pwm Timer - Fujitsu Semiconductor Controller MB89950/950A Hardware Manual

F2mc-8l 8-bit microcontroller
Table of Contents

Advertisement

7.8

Notes on Using 8-bit PWM Timer

This section lists points to note when using the 8-bit PWM timer.
I Notes on using 8-bit PWM timer
G
Error
Activating the counter by program is not synchronized with the start of counting-up using the selected
count clock. Therefore, the time from activating the counter until a match with the PWM compare register
(COMR) is detected may be shorter than the theoretical time by a maximum of one cycle count clock.
Figure 7.8-1 "Error on starting counter operation" shows the error that occurs on starting counter operation.
Counter value
00
H
Count clock
One cycle
Error
Cycle for 00
Counter activate
G
Notes on setting by program
• Do not change the count clock cycle (CNTR: P1, P0) when the interval timer function or PWM timer
function is operating (CNTR: TPE = "1").
• Stop the counter (CNTR: TPE = "0"), disable interrupts (TIE = "0") and clear the interrupt request flag
(TIR = "0") before switching between the interval timer function and PWM timer function (CNTR: P/
T).
• Interrupt processing cannot return if the interrupt request flag bit (CNTR: TIR) is "1" and the interrupt
request enable bit is enabled (CNTR: TIE = "1"). Always clear the TIR bit.
• The TIR bit is not set if the counter is disabled (TPE = "0") at the same time as the counter and COMR
register values match.
Figure 7.8-1 Error on starting counter operation
01
H
H
02
03
H
H
CHAPTER 7 8-BIT PWM TIMER
04
H
137

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb89950 seriesMb89950a series

Table of Contents