PIC18F2450 MICROCHIP [Microchip Technology], PIC18F2450 Datasheet - Page 125

no-image

PIC18F2450

Manufacturer Part Number
PIC18F2450
Description
28/40/44-Pin, High-Performance, 12 MIPS, Enhanced Flash, USB Microcontrollers with nanoWatt Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2450-I/ML
Manufacturer:
TOSHIBA
Quantity:
2 000
Part Number:
PIC18F2450-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2450-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2450-IML
Manufacturer:
MICROCHIP
Quantity:
230
13.0
PIC18F2450/4450 devices have one CCP (Capture/
Compare/PWM) module. The module contains a 16-bit
register, which can operate as a 16-bit Capture register,
a 16-bit Compare register or a PWM Master/Slave Duty
Cycle register.
REGISTER 13-1:
© 2006 Microchip Technology Inc.
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7-6
bit 5-4
bit 3-0
U-0
CAPTURE/COMPARE/PWM
(CCP) MODULE
Unimplemented: Read as ‘0’
DC1B1:DC1B0: PWM Duty Cycle for CCP Module bits
Capture mode:
Unused.
Compare mode:
Unused.
PWM mode:
These bits are the two LSbs (bit 1 and bit 0) of the 10-bit PWM duty cycle. The eight MSbs of the duty
cycle are found in CCPR1L.
CCP1M3:CCP1M0: CCP Module Mode Select bits
0000 = Capture/Compare/PWM disabled (resets CCP module)
0001 = Reserved
0010 = Compare mode: toggle output on match (CCP1IF bit is set)
0011 = Reserved
0100 = Capture mode: every falling edge
0101 = Capture mode: every rising edge
0110 = Capture mode: every 4th rising edge
0111 = Capture mode: every 16th rising edge
1000 = Compare mode: initialize CCP1 pin low; on compare match, force CCP1 pin high
1001 = Compare mode: initialize CCP1 pin high; on compare match, force CCP1 pin low
1010 = Compare mode: generate software interrupt on compare match (CCP1IF bit is set,
1011 = Compare mode: trigger special event, reset timer and start A/D conversion on CCP1 match
11xx = PWM mode
U-0
CCP1CON: CAPTURE/COMPARE/PWM CONTROL REGISTER
(CCP1IF bit is set)
(CCP1IF bit is set)
CCP1 pin reflects I/O state)
(CCP1IF bit is set)
W = Writable bit
‘1’ = Bit is set
DC1B1
R/W-0
Advance Information
DC1B0
R/W-0
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
CCP1M3
R/W-0
PIC18F2450/4450
CCP1M2
R/W-0
x = Bit is unknown
CCP1M1
R/W-0
DS39760A-page 123
CCP1M0
R/W-0
bit 0

Related parts for PIC18F2450