PIC16LF872-I/SS Microchip Technology, PIC16LF872-I/SS Datasheet - Page 51
![IC MCU FLASH 2KX14 EE A/D 28SSOP](/photos/6/81/68119/150-28-ssop_sml.jpg)
PIC16LF872-I/SS
Manufacturer Part Number
PIC16LF872-I/SS
Description
IC MCU FLASH 2KX14 EE A/D 28SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheets
1.PIC16C770-ISO.pdf
(8 pages)
2.PIC16F872-ISO.pdf
(168 pages)
3.PIC16F872-ISO.pdf
(5 pages)
4.PIC16F872-ISO.pdf
(6 pages)
Specifications of PIC16LF872-I/SS
Core Size
8-Bit
Program Memory Size
3.5KB (2K x 14)
Core Processor
PIC
Speed
20MHz
Connectivity
I²C, SPI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
22
Program Memory Type
FLASH
Eeprom Size
64 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
2.2 V ~ 5.5 V
Data Converters
A/D 5x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
28-SSOP
Controller Family/series
PIC16LF
No. Of I/o's
22
Eeprom Memory Size
64Byte
Ram Memory Size
128Byte
Cpu Speed
20MHz
No. Of Timers
3
Processor Series
PIC16LF
Core
PIC
Data Bus Width
8 bit
Data Ram Size
128 B
Interface Type
I2C, SPI, SSP
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
22
Number Of Timers
3
Operating Supply Voltage
2 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DM163022
Minimum Operating Temperature
- 40 C
On-chip Adc
10 bit, 5 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16LF872-I/SS
Manufacturer:
AD
Quantity:
1 560
Part Number:
PIC16LF872-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
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:
© 2006 Microchip Technology Inc.
0Bh,8Bh,
10Bh, 18Bh
0Ch
8Ch
87h
11h
92h
12h
15h
16h
17h
Legend:
Note 1: These bits are reserved; always maintain 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 PWM and Timer2.
PWM Frequency
SETUP FOR PWM OPERATION
INTCON
PIR1
PIE1
TRISC
TMR2
PR2
T2CON
CCPR1L
CCPR1H
CCP1CON
Name
EXAMPLE PWM FREQUENCIES AND RESOLUTIONS AT 20 MHz
REGISTERS ASSOCIATED WITH PWM AND TIMER2
PORTC Data Direction Register
Timer2 Modules Register
Timer2 Module Period Register
Capture/Compare/PWM Register1 (LSB)
Capture/Compare/PWM Register1 (MSB)
Bit 7
GIE
(1)
(1)
—
—
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0 TMR2ON T2CKPS1 T2CKPS0 -000 0000 -000 0000
PEIE
ADIF
ADIE
Bit 6
—
1.22 kHz
TMR0IE
CCP1X
FFh
Bit 5
16
10
(1)
(1)
CCP1Y
4.88 kHz
INTE
Bit 4
(1)
(1)
FFh
10
4
CCP1M3 CCP1M2 CCP1M1 CCP1M0 --00 0000 --00 0000
SSPIF
SSPIE
3.
4.
5.
RBIE
Bit 3
19.53 kHz
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.
FFh
10
1
TMR0IF
CCP1IF
CCP1IE
Bit 2
78.12kHz
TMR2IF
TMR2IE
3Fh
1
8
Bit 1
INTF
PIC16F872
TMR1IE r0rr 0000 0000 0000
TMR1IF 0000 0000 0000 0000
156.3 kHz
RBIF
Bit 0
1Fh
1
7
DS30221C-page 49
0000 000x 0000 000u
1111 1111 1111 1111
0000 0000 0000 0000
1111 1111 1111 1111
xxxx xxxx uuuu uuuu
xxxx xxxx uuuu uuuu
Value on:
POR,
BOR
208.3 kHz
17h
5.5
1
Value on
RESETS
all other