English
Language : 

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