PIC18F2480 MICROCHIP [Microchip Technology], PIC18F2480 Datasheet - Page 176

no-image

PIC18F2480

Manufacturer Part Number
PIC18F2480
Description
28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2480-E/ML
Manufacturer:
MICROCHIP
Quantity:
1 001
Part Number:
PIC18F2480-E/SO
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC18F2480-I/SO
Manufacturer:
Microchi
Quantity:
9 999
Part Number:
PIC18F2480-I/SO
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC18F2480-I/SO
0
Part Number:
PIC18F2480-I/SP
Manufacturer:
TDK
Quantity:
64
Part Number:
PIC18F2480-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC18F2480/2580/4480/4580
In addition to the expanded range of modes available
through the CCP1CON register, the ECCP module has
two additional registers associated with Enhanced
PWM operation and auto-shutdown features. They are:
• ECCP1DEL (Dead-band delay)
• ECCP1AS (Auto-shutdown configuration)
16.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 and PORTD. The
outputs that are active depend on the CCP operating
mode selected. The pin assignments are summarized
in Table 16-1.
To configure the I/O pins as PWM outputs, the proper
PWM mode must be selected by setting the
EPWM1M1:EPWM1M0 and CCP1M3:CCP1M0 bits.
The appropriate TRISC and TRISD direction bits for the
port pins must also be set as outputs.
16.1.1
Like the standard CCP modules, the ECCP module can
utilize Timers 1, 2 or 3, depending on the mode
selected. Timer1 and Timer3 are available for modules
in Capture or Compare modes, while Timer2 is
available for modules in PWM mode. Interactions
between the standard and Enhanced CCP modules are
identical to those described for standard CCP modules.
Additional details on timer resources are provided in
Section 15.1.1
Resources”.
TABLE 16-1:
DS39637A-page 174
Compatible CCP
Dual PWM
Quad PWM
Legend: x = Don’t care. Shaded cells indicate pin assignments not used by ECCP1 in a given mode.
ECCP Mode
ECCP Outputs and Configuration
ECCP MODULES AND TIMER
RESOURCES
PIN ASSIGNMENTS FOR VARIOUS ECCP1 MODES
“CCP
Configuration
Modules
00xx 11xx
10xx 11xx
x1xx 11xx
CCP1CON
and
All PIC18F4480/4580 devices:
Timer
Preliminary
CCP1
RD4
P1A
P1A
16.2
Except for the operation of the special event trigger dis-
cussed below, the Capture and Compare modes of the
ECCP1 module are identical in operation to that of
CCP1. These are discussed in detail in Section 15.2
“Capture
Mode”.
16.2.1
The special event trigger output of ECCP1 resets the
TMR1 or TMR3 register pair, depending on which timer
resource is currently selected. This allows the ECCP1
register to effectively be a 16-bit programmable period
register for Timer1 or Timer3. The special event trigger
for ECCP1 can also start an A/D conversion. In order to
start the conversion, the A/D converter must be
previously enabled.
16.3
When configured in Single Output mode, the ECCP
module functions identically to the standard CCP
module in PWM mode, as described in Section 15.4
“PWM Mode”. This is also sometimes referred to as
“Compatible CCP” mode, as in Table 16-1.
Note:
RD5/PSP5
RD5
P1B
P1B
Capture and Compare Modes
Standard PWM Mode
SPECIAL EVENT TRIGGER
When setting up single output PWM opera-
tions, users are free to use either of the
processes described in Section 15.4.4
“Setup
Section 16.4.9 “Setup for PWM Opera-
tion”. The latter is more generic, but will
work for either single or multi-output PWM.
Mode”
and
for
RD6/PSP6
RD6/PSP6
 2004 Microchip Technology Inc.
RD6
P1C
Section 15.3
PWM
Operation”
RD7/PSP7
RD7/PSP7
“Compare
RD7
P1D
or

Related parts for PIC18F2480