|
COP87L84BC Datasheet, PDF (15/54 Pages) National Semiconductor (TI) – 8-Bit CMOS OTP Microcontrollers with 16k Memory, Comparators, and CAN Interface | |||
|
◁ |
Timers (Continued)
DS101137-12
FIGURE 12. PWM Timer Capture Mode Block Diagram
FIGURE 13. PWM Timer PWM Mode Block Diagram
DS101137-13
PWM Control Register (PWMCON)(Address Xâ00A2)
Reserved ESEL PWPND PWIE PWMD PWON PWEN1 PWEN0
Bit 7
Bit 0
The PWMCON Register Bits are:
Reserved This bit is reserved and should be zero.
ESEL
Edge select bit, â1â for falling edge, â0â for rising
edge.
PWPND PWM interrupt pending bit.
PWIE PWM interrupt enable bit.
PWMD PWM Mode bit, â1â for PWM mode, â0â for fre-
quency monitor mode.
PWON PWM start Bit, â1â to start timer, â0â to stop timer.
PWEN1 Enable PWM1 output function on I/O port.
Note: The associated bits in the configuration and data register of the I/O-
port have to be setup as outputs and/or inputs in addition to setting the
PWEN bits.
PWEN0 Enable PWM0 output/input function on I/O port.
PWM Mode
The PWM timer can generate PWM signals at frequencies
up to 39 kHz (@ tc = 1 µs) with a resolution of 255 parts.
Lower PWM frequencies can be programmed via the pres-
caler.
If the PWM mode bit (PWMD) in the PWM configuration reg-
ister (PWMCON) is set to â1â the timer operates in PWM
mode. In this mode, the timer generates a PWM signal with
15
www.national.com
|
▷ |