![Samsung S3P80C5 Скачать руководство пользователя страница 227](http://html1.mh-extra.com/html/samsung/s3p80c5/s3p80c5_user-manual_3993739227.webp)
BASIC TIMER and TIMER 0
S3P80C5/C80C5/C80C8
10-6
Pulse Width Modulation Mode
Pulse width modulation (PWM) mode lets you program the width (duration) of the pulse that is output at the
T0PWM pin. As in interval timer mode, a match signal is generated when the counter value is identical to the
value written to the timer 0 data register. In PWM mode, however, the match signal does not clear the counter.
Instead, it runs continuously, overflowing at ‘FFH’, and then continues incrementing from ‘00H’.
Although you can use the match signal to generate a timer 0 overflow interrupt, interrupts are not typically used
in PWM-type applications. Instead, the pulse at the T0PWM pin is held to Low level as long as the reference
data value is
less than or equal to
(
≤
) the counter value and then the pulse is held to High level for as long as
the data value is
greater than
( > ) the counter value. One pulse width is equal to t
CLK
×
256 (see Figure 11-4).
Interrupt
Enable/Disable
(T0CON.1)
CTL
P2.0/
T0PWM
T0CON.5
T0CON.4
Match Signal
T0CON.3
IRQ0(T0INT)
IRQ0 (T0OVF)
CLK
Match
Data Register
Buffer Register
Comparator
Counter
T0OVF
(T0CON.0)
High level when
data > counter;
Low level when
data < counter
_
NOTE:
Interrupts are usually not used when timer 0 is configurared to operate in PWM mode
PND
Figure 10-4. Simplified Timer 0 Function Diagram: PWM Mode
Содержание S3P80C5
Страница 2: ...S3P80C5 C80C5 C80C8 8 BIT CMOS MICROCONTROLLERS USER S MANUAL Revision 1 ...
Страница 5: ......
Страница 13: ......
Страница 15: ......
Страница 17: ......
Страница 19: ......
Страница 49: ...ADDRESS SPACES S3P80C5 C80C5 C80C8 2 20 NOTES ...
Страница 197: ...INSTRUCTION SET S3P80C5 C80C5 C80C8 6 88 NOTES ...
Страница 201: ...CLOCK CIRCUITS S3P80C5 C80C5 C80C8 7 4 NOTES ...
Страница 237: ...TIMER 1 S3P80C5 C80C5 C80C8 11 6 NOTES ...
Страница 245: ...COUNTER A S3P80C5 C80C5 C80C8 12 8 NOTES ...
Страница 255: ......
Страница 257: ......
Страница 259: ......
Страница 261: ......
Страница 263: ...BOOK SPINE TEXT SAMSUNG Logo S3P80C5 C80C5 C80C8 Microcontrollers User s Manual Rev 1 May 2002 ...