PIC16F872-I/SS Microchip Technology, PIC16F872-I/SS Datasheet - Page 217

IC MCU FLASH 2KX14 EE 28SSOP

PIC16F872-I/SS

Manufacturer Part Number
PIC16F872-I/SS
Description
IC MCU FLASH 2KX14 EE 28SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F872-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)
4 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
PIC16F
No. Of I/o's
22
Eeprom Memory Size
64Byte
Ram Memory Size
128Byte
Cpu Speed
20MHz
No. Of Timers
3
Processor Series
PIC16F
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 bit
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
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
AC164307 - MODULE SKT FOR PM3 28SSOPAC164020 - MODULE SKT PROMATEII 44TQFPXLT28SS-1 - SOCKET TRANSITION ICE 28SSOP
Lead Free Status / Rohs Status
 Details

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F872-I/SS
Manufacturer:
MICROCHIP
Quantity:
1 400
Part Number:
PIC16F872-I/SS
Manufacturer:
Microchip Technology
Quantity:
1 867
Part Number:
PIC16F872-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
14.7
1997 Microchip Technology Inc.
Design Tips
Question 1:
Answer 1:
The capture and compare modes are designed around Timer1, so no other timer can be used for
these functions. This also means that if multiple CCP modules (in parts with more than one) are
being used for a capture or compare function, they will share the same timer.
Question 2:
Answer 2:
The PWM mode is designed around Timer2, so no other timer can be used for this function. (It
is the only timer with a period register associated with it.) If multiple CCP modules (in parts with
more than one) are doing PWM they will share the same timer, meaning they will have the same
PWM period and frequency.
Question 3:
Answer 3:
The timers may be different, but other logic functions are shared. However you can switch from
one mode to the other. For a device with two CCP modules, you can also have CCP1 set up for
PWM and CCP2 set up for capture or compare (or vice versa) since they are two independent
modules.
Question 4:
Answer 4:
Any reset will turn the CCP module off. See the section on resets to see reset values.
Question 5:
Answer 5:
The CCP1IF flag will be set on the match condition. TMR1IF is set when Timer1 overflows, and
the special trigger reset of Timer1 is not considered an overflow. However, if both the CCPR1L
and CCPR1H registers are set at FFh, then an overflow occurs at the same time as the match,
which will then set both CCP1IF and TMR1IF.
Question 6:
Answer 6:
Timer2 always resets to zero when it equals PR2 and flag bit TMR2IF always gets set at this time.
By putting FFh into PR2, you will get an interrupt on overflow at FFh, as you would with Timer0,
for instance. Quite often it is desirable to have an event occur at a periodic rate, perhaps an inter-
rupt driven event. Normally an initial value would be placed into the timer so that the overflow will
occur at the desired time. This value would have to be placed back into the timer every time it
overflowed to make the interrupts occur at the same desired rate. The benefit of Timer2 is that a
value can be written to PR2 that will cause it to reset at your desired time interval. This means
you do not have the housekeeping chore of reloading the timer every time it overflows, since PR2
maintains its value.
What timers can I use for the capture and compare modes?
What timers can I use with the PWM mode?
Can I use one CCP module to do capture (or compare) AND PWM at the
same time, since they use different timers as their reference?
How does a reset affect the CCP module?
I am setting up the CCP1CON module for “Compare Mode, trigger special
event” (1011) which resets TMR1. When a compare match occurs, will I have
both the TMR1 and the CCP1 interrupts pending (TMR1IF is set, CCP1IF is
set)?
How do I use Timer2 as a general purpose timer, with an interrupt flag on
rollover?
Section 14. CCP
DS31014A-page 14-15
14

Related parts for PIC16F872-I/SS