PIC16F874-20I/P Microchip Technology, PIC16F874-20I/P Datasheet - Page 206
![IC MCU FLASH 4KX14 EE 40DIP](/photos/6/61/66192/150-40-dip_sml.jpg)
PIC16F874-20I/P
Manufacturer Part Number
PIC16F874-20I/P
Description
IC MCU FLASH 4KX14 EE 40DIP
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F688T-ISL.pdf
(688 pages)
3.PIC16F873-04SO.pdf
(218 pages)
4.PIC16F873-04SO.pdf
(5 pages)
5.PIC16F873-04SO.pdf
(5 pages)
Specifications of PIC16F874-20I/P
Program Memory Type
FLASH
Program Memory Size
7KB (4K x 14)
Package / Case
40-DIP (0.600", 15.24mm)
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
33
Eeprom Size
128 x 8
Ram Size
192 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
192 B
Interface Type
MSSP/PSP/USART
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
33
Number Of Timers
3
Operating Supply Voltage
2 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DM163022, DV164120
Minimum Operating Temperature
- 40 C
On-chip Adc
8-ch x 10-bit
Data Rom Size
128 B
Height
3.81 mm
Length
52.26 mm
Supply Voltage (max)
5.5 V
Supply Voltage (min)
4 V
Width
13.84 mm
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
444-1001 - DEMO BOARD FOR PICMICRO MCU
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16F874-20I/P
Manufacturer:
AVX
Quantity:
40 000
Company:
Part Number:
PIC16F874-20I/PQ
Manufacturer:
IDT
Quantity:
1 145
Company:
Part Number:
PIC16F874-20I/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Company:
Part Number:
PIC16F874-20I/PT
Manufacturer:
MICROCHIP
Quantity:
334
Company:
Part Number:
PIC16F874-20I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC16F87X
SPI
SPI Clock Edge Select, CKE .............................................. 66
SPI Data Input Sample Phase Select, SMP ....................... 66
SPI Mode
SPI Module
SS ...................................................................................... 69
SSP .................................................................................... 65
SSP I
SSP Module
SSP Overflow Detect bit, SSPOV ...................................... 74
SSPADD Register .............................................................. 16
SSPBUF ................................................................. 17, 73, 74
SSPBUF Register .............................................................. 15
SSPCON Register .............................................................. 15
SSPCON1 .......................................................................... 73
SSPCON2 Register ............................................................ 68
SSPEN ............................................................................... 67
SSPIF ........................................................................... 22, 74
SSPM3:SSPM0 .................................................................. 67
SSPOV ................................................................... 67, 74, 84
SSPSTAT ........................................................................... 73
SSPSTAT Register ............................................................ 16
Stack .................................................................................. 26
START bit (S) ..................................................................... 66
START Condition Enable bit .............................................. 68
STATUS Register ............................................................... 18
STOP bit (P) ....................................................................... 66
STOP Condition Enable bit ................................................ 68
DS30292C-page 204
Master Mode .............................................................. 70
Master Mode Timing .................................................. 70
Serial Clock ................................................................ 69
Serial Data In ............................................................. 69
Serial Data Out ........................................................... 69
Serial Peripheral Interface (SPI) ................................ 65
Slave Mode Timing .................................................... 71
Slave Mode Timing Diagram ...................................... 71
Slave Select ............................................................... 69
SPI Clock ................................................................... 70
SPI Mode ................................................................... 69
Associated Registers ................................................. 72
Slave Mode ................................................................ 71
Block Diagram (SPI Mode) ......................................... 69
RA5/SS/AN4 Pin ...................................................... 7, 8
RC3/SCK/SCL Pin ................................................... 7, 9
RC4/SDI/SDA Pin .................................................... 7, 9
RC5/SDO Pin ........................................................... 7, 9
SPI Mode ................................................................... 69
SSPADD .............................................................. 73, 74
SSPBUF ............................................................... 70, 73
SSPCON2 .................................................................. 68
SSPSR ................................................................. 70, 74
SSPSTAT ................................................................... 73
SSP I
SPI Master Mode ....................................................... 70
SPI Slave Mode ......................................................... 71
SSPCON1 Register .................................................... 73
Overflows ................................................................... 26
Underflow ................................................................... 26
C Bit ........................................................................... 18
DC Bit ......................................................................... 18
IRP Bit ........................................................................ 18
PD Bit ................................................................. 18, 123
RP1:RP0 Bits ............................................................. 18
TO Bit ................................................................. 18, 123
Z Bit ............................................................................ 18
2
C
2
C Operation ..................................................... 73
Synchronous Serial Port .................................................... 65
Synchronous Serial Port Enable bit, SSPEN ..................... 67
Synchronous Serial Port Interrupt ...................................... 22
Synchronous Serial Port Mode Select bits,
T
T1CKPS0 bit ...................................................................... 51
T1CKPS1 bit ...................................................................... 51
T1CON ............................................................................... 17
T1CON Register ................................................................ 17
T1OSCEN bit ..................................................................... 51
T1SYNC bit ........................................................................ 51
T2CKPS0 bit ...................................................................... 55
T2CKPS1 bit ...................................................................... 55
T2CON Register ...........................................................17, 55
T
Time-out Sequence ......................................................... 124
Timer0 ................................................................................ 47
Timer1 ................................................................................ 51
Timer2 ................................................................................ 55
Timing Diagrams
AD
SSPM3:SSPM0 ............................................................. 67
................................................................................... 115
Associated Registers ................................................. 49
Clock Source Edge Select (T0SE Bit) ....................... 19
Clock Source Select (T0CS Bit) ................................. 19
External Clock ............................................................ 48
Interrupt ..................................................................... 47
Overflow Enable (T0IE Bit) ........................................ 20
Overflow Flag (T0IF Bit) ......................................20, 130
Overflow Interrupt .................................................... 130
Prescaler .................................................................... 48
RA4/T0CKI Pin, External Clock ................................7, 8
T0CKI ......................................................................... 48
WDT Prescaler Block Diagram .................................. 47
Associated Registers ................................................. 54
Asynchronous Counter Mode .................................... 53
Block Diagram ........................................................... 52
Counter Operation ..................................................... 52
Operation in Timer Mode ........................................... 52
Oscillator .................................................................... 53
Prescaler .................................................................... 54
RC0/T1OSO/T1CKI Pin ............................................7, 9
RC1/T1OSI/CCP2 Pin ..............................................7, 9
Resetting of Timer1 Registers ................................... 54
Resetting Timer1 using a CCP Trigger Output .......... 53
Synchronized Counter Mode ..................................... 52
T1CON ....................................................................... 51
T1CON Register ........................................................ 51
TMR1H ...................................................................... 53
TMR1L ....................................................................... 53
Associated Registers ................................................. 56
Block Diagram ........................................................... 55
Output ........................................................................ 56
Postscaler .................................................................. 55
Prescaler .................................................................... 55
T2CON ....................................................................... 55
A/D Conversion ........................................................ 175
Acknowledge Sequence Timing ................................ 86
Baud Rate Generator with Clock Arbitration .............. 80
BRG Reset Due to SDA Collision .............................. 91
Brown-out Reset ...................................................... 164
Bus Collision
Reading and Writing to ...................................... 53
Capacitor Selection ............................................ 53
START Condition Timing ................................... 90
2001 Microchip Technology Inc.