PIC18F-LF1XK50 MICROCHIP [Microchip Technology], PIC18F-LF1XK50 Datasheet - Page 118

no-image

PIC18F-LF1XK50

Manufacturer Part Number
PIC18F-LF1XK50
Description
20-Pin USB Flash Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC18F/LF1XK50
In addition to the expanded range of modes available
through the CCP1CON register and ECCP1AS
register, the ECCP module has two additional registers
associated with Enhanced PWM operation and
auto-shutdown features. They are:
• PWM1CON (Dead-band delay)
• PSTRCON (output steering)
14.1
The enhanced CCP module may have up to four PWM
outputs, depending on the selected operating mode.
These outputs, designated P1A through P1D, are
multiplexed with I/O pins on PORTC. The outputs that
are active depend on the CCP operating mode
selected. The pin assignments are summarized in
Table
To configure the I/O pins as PWM outputs, the proper
PWM mode must be selected by setting the P1M<1:0>
and CCP1M<3:0> bits. The appropriate TRISC
direction bits for the port pins must also be set as
outputs.
14.1.1
The CCP modules utilize Timers 1, 2 or 3, depending
on the mode selected. Timer1 and Timer3 are available
to modules in Capture or Compare modes, while
Timer2 is available for modules in PWM mode.
TABLE 14-1:
The assignment of a particular timer to a module is
determined by the Timer-to-CCP enable bits in the
T3CON register
between
Figure
capture operation will not work reliably.
DS41350E-page 118
CCP/ECCP Mode
14-2.
14-1. In Asynchronous Counter mode, the
Compare
Capture
ECCP Outputs and Configuration
PWM
the two modules are
CCP MODULE AND TIMER
RESOURCES
CCP MODE – TIMER
RESOURCE
(Register
13-1). The interactions
Timer1 or Timer3
Timer1 or Timer3
Timer Resource
Timer2
summarized in
Preliminary
 2010 Microchip Technology Inc.

Related parts for PIC18F-LF1XK50