English
Language : 

PIC18F44J50-I Datasheet, PDF (247/562 Pages) Microchip Technology – 28/44-Pin, Low-Power, High-Performance USB Microcontrollers
PIC18F46J50 FAMILY
In addition to the expanded range of modes available
through the CCPxCON and ECCPxAS registers, the
ECCP modules have two additional registers associated
with Enhanced PWM operation and auto-shutdown
features. They are:
• ECCPxDEL (Enhanced PWM Control)
• PSTRxCON (Pulse Steering Control)
18.1 ECCP Outputs and Configuration
The Enhanced CCP module may have up to four PWM
outputs, depending on the selected operating mode.
These outputs, designated PxA through PxD, are
routed through the Peripheral Pin Select (PPS)
module. Therefore, individual functions may be
mapped to any of the remappable I/O pins, RPn. The
outputs that are active depend on the ECCP operating
mode selected. The pin assignments are summarized
in Table 18-4.
To configure the I/O pins as PWM outputs, the proper
PWM mode must be selected by setting the PxM<1:0>
and CCPxM<3:0> bits. The appropriate TRIS direction
bits for the port pins must also be set as outputs and the
output functions need to be assigned to I/O pins in the
PPS module. (For details on configuring the module,
see Section 10.7 “Peripheral Pin Select (PPS)”.)
18.1.1
ECCP MODULE AND TIMER
RESOURCES
The ECCP modules utilize Timers 1, 2, 3 or 4, depending
on the mode selected. Timer1 and Timer3 are available
to modules in Capture or Compare modes, while Timer2
and Timer4 are available for modules in PWM mode.
TABLE 18-1: ECCP MODE – TIMER
RESOURCE
ECCP Mode
Timer Resource
Capture
Compare
PWM
Timer1 or Timer3
Timer1 or Timer3
Timer2 or Timer4
The assignment of a particular timer to a module is
determined by the Timer-to-ECCP enable bits in the
TCLKCON register (Register 13-3). The interactions
between the two modules are depicted in Figure 18-1.
Capture operations are designed to be used when the
timer is configured for Synchronous Counter mode.
Capture operations may not work as expected if the
associated timer is configured for Asynchronous Counter
mode.
 2011 Microchip Technology Inc.
DS39931D-page 247