Datasheet

PIC18F97J94 FAMILY
DS30575A-page 320 2012 Microchip Technology Inc.
In addition to the expanded range of modes available
through the CCPxCON, the ECCP modules have three
additional registers associated with Enhanced PWM
operation, Pulse Steering Control and auto-shutdown
features. They are:
ECCPxDEL – Enhanced PWM x Control
PSTRxCON – Pulse Steering x Control
ECCPxAS – Auto-Shutdown x 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 as PxA through PxD, are
routed through the PPS-Lite module. Therefore, individ-
ual functions can 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-3.
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
Table 18-3.
18.1.1 ECCP MODULE AND TIMER
RESOURCES
The ECCP modules use Timers, 1, 2, 3, 4, 6 or 8,
depending on the mode selected. These timers are
available to CCP modules in Capture, Compare or PWM
modes, as shown in Table 18-1.
TABLE 18-1: ECCP MODE – TIMER
RESOURCE
The assignment of a particular timer to a module is
determined by the timer to ECCP enable bits in the
CCPTMRS0 register (Register 18-2). 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.
ECCP Mode Timer Resource
Capture Timer1 or Timer3
Compare Timer1 or Timer3
PWM Timer2, Timer4, Timer6 or Timer8