EasyManuals Logo

Abov A96G166 User Manual

Default Icon
247 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #86 background imageLoading...
Page #86 background image
11. Timer 0/1/2 A96G166/A96A166/A96S166 User’s manual
86
11.1.2 8-bit PWM mode
Timer 0 has a high speed PWM (Pulse Width Modulation) function. In PWM mode, T0O/PWM0O pin
outputs up to 8-bit resolution PWM output. This pin should be configured as a PWM output by setting
the T0O/PWM0O function by P3FSRH[0] or P3FSRL[4] bits.
In 8-bit timer/counter mode, a match signal is generated when the counter value is identical to the
value of T0DR. When values of T0CNT and T0DR are identical to each other in timer 0, a match
signal is generated and the interrupt of timer 0 occurs.
In PWM mode, the match signal does not clear the counter. Instead, it runs continuously, overflowing
at FFH. Then the counter continues incrementing from 00H. The timer 0 overflow interrupt is
generated whenever a counter overflow occurs. T0CNT value is cleared by software (T0CC) bit.
P
r
e
s
c
a
l
e
r
fx
M
U
X
fx/2
T0CNT(8Bit)
EC0
fx/4
fx/8
fx/32
fx/128
fx/512
fx/2048
3
T0CK[2:0]
T0EN
8-bit Timer 0 Counter
T0DR(8Bit)
Comparator
T0IFR
T0O/PWM0O
8-bit Timer 0 Data Register
INT_ACK
Clear
Clear
Match
MUX
T0MS[1:0]
2
To interrupt
block
T0EN - T0MS1 T0MS0 T0CK2 T0CK1 T0CK0 T0CCT0CR
1 - 0 1 x x x x
ADDRESS : B2H
INITIAL VALUE: 0000_0000B
Match signal
T0CC
Figure 33. 8-bit PWM Mode for Timer 0

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Abov A96G166 and is the answer not in the manual?

Abov A96G166 Specifications

General IconGeneral
BrandAbov
ModelA96G166
CategoryComputer Hardware
LanguageEnglish

Related product manuals