PIC16LF874-04/PQ Microchip Technology, PIC16LF874-04/PQ Datasheet - Page 64
![IC PIC MCU FLASH 4KX14 44MQFP](/photos/6/59/65984/150-44-pqfp_sml.jpg)
PIC16LF874-04/PQ
Manufacturer Part Number
PIC16LF874-04/PQ
Description
IC PIC MCU FLASH 4KX14 44MQFP
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheet
1.PIC16F873-04SO.pdf
(218 pages)
Specifications of PIC16LF874-04/PQ
Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
33
Program Memory Size
7KB (4K x 14)
Program Memory Type
FLASH
Eeprom Size
128 x 8
Ram Size
192 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
44-MQFP, 44-PQFP
Core
PIC
Processor Series
PIC16LF
Data Bus Width
8 bit
Maximum Clock Frequency
20 MHz
Data Ram Size
192 B
Data Rom Size
128 B
On-chip Adc
8
Number Of Programmable I/os
33
Number Of Timers
3 bit
Operating Supply Voltage
2 V to 5.5 V
Mounting Style
SMD/SMT
Height
2 mm
Interface Type
MSSP, PSP, USART
Length
10 mm
Maximum Operating Temperature
+ 70 C
Minimum Operating Temperature
0 C
Supply Voltage (max)
5.5 V
Supply Voltage (min)
2 V
Width
10 mm
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16LF874-04/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
- Current page: 64 of 218
- Download datasheet (4Mb)
PIC16F87X
8.3.3
The following steps should be taken when configuring
the CCP module for PWM operation:
1.
2.
TABLE 8-3:
TABLE 8-4:
DS30292C-page 62
0Bh,8Bh,
10Bh, 18Bh
0Ch
0Dh
8Ch
8Dh
87h
0Eh
0Fh
10h
15h
16h
17h
1Bh
1Ch
1Dh
Legend:
Note 1: The PSP is not implemented on the PIC16F873/876; always maintain these bits clear.
Timer Prescaler (1, 4, 16)
PR2 Value
Maximum Resolution (bits)
Address
Set the PWM period by writing to the PR2
register.
Set the PWM duty cycle by writing to the
CCPR1L register and CCP1CON<5:4> bits.
x = unknown, u = unchanged, - = unimplemented, read as '0'. Shaded cells are not used by Capture and Timer1.
PWM Frequency
SETUP FOR PWM OPERATION
INTCON
PIR1
PIR2
PIE1
PIE2
TRISC
TMR1L
TMR1H
T1CON
CCPR1L
CCPR1H
CCP1CON
CCPR2L
CCPR2H
CCP2CON
Name
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS AT 20 MHz
REGISTERS ASSOCIATED WITH CAPTURE, COMPARE, AND TIMER1
PORTC Data Direction Register
Holding Register for the Least Significant Byte of the 16-bit TMR1 Register
Holding Register for the Most Significant Byte of the 16-bit TMR1 Register
Capture/Compare/PWM Register1 (LSB)
Capture/Compare/PWM Register1 (MSB)
Capture/Compare/PWM Register2 (LSB)
Capture/Compare/PWM Register2 (MSB)
PSPIF
PSPIE
Bit 7
GIE
—
—
—
—
—
(1)
(1)
PEIE
ADIF
ADIE
Bit 6
—
—
—
—
—
T1CKPS1 T1CKPS0 T1OSCEN T1SYNC TMR1CS TMR1ON --00 0000 --uu uuuu
1.22 kHz
CCP1X
CCP2X
0xFFh
RCIE
Bit 5
RCIF
T0IE
—
—
16
10
CCP1Y
CCP2Y
Bit 4
INTE
TXIF
TXIE
4.88 kHz
—
—
0xFFh
10
4
CCP1M3 CCP1M2 CCP1M1 CCP1M0 --00 0000 --00 0000
CCP2M3 CCP2M2 CCP2M1 CCP2M0 --00 0000 --00 0000
SSPIE
SSPIF
RBIE
Bit 3
—
—
3.
4.
5.
19.53 kHz
0xFFh
Make the CCP1 pin an output by clearing the
TRISC<2> bit.
Set the TMR2 prescale value and enable Timer2
by writing to T2CON.
Configure the CCP1 module for PWM operation.
10
1
CCP1IE
CCP1IF
Bit 2
T0IF
—
—
78.12kHz
TMR2IF
TMR2IE
0x3Fh
Bit 1
INTF
—
—
1
8
TMR1IF 0000 0000 0000 0000
TMR1IE 0000 0000 0000 0000
CCP2IE ---- ---0 ---- ---0
CCP2IF ---- ---0 ---- ---0
2001 Microchip Technology Inc.
Bit 0
RBIF
156.3 kHz
0x1Fh
1
7
0000 000x 0000 000u
1111 1111 1111 1111
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
Value on:
POR,
BOR
208.3 kHz
0x17h
5.5
1
Value on
RESETS
all other
Related parts for PIC16LF874-04/PQ
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC16LF874-04I/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 4KX14 EE A/D 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LF874-04/PT](/photos/6/82/68251/c04-076_pt_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 4KX14 44TQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LF874-04I/PQ](/photos/6/59/65984/150-44-pqfp_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 4KX14 44MQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LF874-04/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 4KX14 EE A/D 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LF874-04I/PT](/photos/6/82/68251/c04-076_pt_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 4KX14 44TQFP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LF874-04/L](/photos/6/63/66325/150-44-plcc_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 4KX14 EE A/D 44PLCC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LF874-04I/P](/photos/6/61/66192/150-40-dip_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 4KX14 EE A/D 40DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LF87-I/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 4KX14 EEPROM 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LF87-I/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU FLASH 4KX14 EEPROM 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LF87-I/SS](/photos/6/58/65895/150-20-ssop_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 4KX14 EEPROM 20SSOP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LF87](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
(PIC16LF87 / PIC16LF88) 18/20/28-Pin Enhanced FLASH Microcontrollers with nanoWatt Technology
Manufacturer:
Microchip Technology
![PIC16LF87-I/ML](/photos/6/81/68120/150-28-qfn_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 4KX14 EEPROM 28QFN
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LF1827-I/ML](/photos/6/81/68120/150-28-qfn_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16LF, 32MHZ, QFN-28
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LF1827-I/MV](/photos/12/13/121305/c04-152_mv_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16LF, 32MHZ, QFN-28
Manufacturer:
Microchip Technology
Datasheet:
![PIC16LF1827-I/P](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16LF, 32MHZ, DIP-18
Manufacturer:
Microchip Technology
Datasheet: