PIC16F874A-E/PT Microchip Technology, PIC16F874A-E/PT Datasheet - Page 21
![IC MCU FLASH 4KX14 W/AD 44-TQFP](/photos/6/82/68251/c04-076_pt_sml.jpg)
PIC16F874A-E/PT
Manufacturer Part Number
PIC16F874A-E/PT
Description
IC MCU FLASH 4KX14 W/AD 44-TQFP
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheets
1.PIC16F616T-ISL.pdf
(8 pages)
2.PIC16F688T-ISL.pdf
(688 pages)
3.PIC16C770-ISO.pdf
(8 pages)
4.PIC16F873A-ISO.pdf
(234 pages)
5.PIC16F873A-ISO.pdf
(6 pages)
6.PIC16F873A-ISO.pdf
(4 pages)
7.PIC16F873A-ISO.pdf
(6 pages)
8.PIC16F873A-ISO.pdf
(4 pages)
9.PIC16F873A-ISO.pdf
(22 pages)
Specifications of PIC16F874A-E/PT
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
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)
4 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
44-TQFP, 44-VQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC16F874A-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
2.2.2
The Special Function Registers are registers used by
the CPU and peripheral modules for controlling the
desired operation of the device. These registers are
implemented as static RAM. A list of these registers is
given in Table 2-1.
TABLE 2-1:
2003 Microchip Technology Inc.
Address
00h
01h
02h
03h
04h
05h
06h
07h
08h
09h
0Ah
0Bh
0Ch
0Dh
0Eh
0Fh
10h
11h
12h
13h
14h
15h
16h
17h
18h
19h
1Ah
1Bh
1Ch
1Dh
1Eh
1Fh
Legend:
Note
Bank 0
(3)
(3)
(3)
(3)
(4)
(4)
(1,3)
(3)
1:
2:
3:
4:
5:
INDF
TMR0
PCL
STATUS
FSR
PORTA
PORTB
PORTC
PORTD
PORTE
PCLATH
INTCON
PIR1
PIR2
TMR1L
TMR1H
T1CON
TMR2
T2CON
SSPBUF
SSPCON
CCPR1L
CCPR1H
CCP1CON
RCSTA
TXREG
RCREG
CCPR2L
CCPR2H
CCP2CON
ADRESH
ADCON0
x = unknown, u = unchanged, q = value depends on condition, - = unimplemented, read as ‘0’, r = reserved.
Shaded locations are unimplemented, read as ‘0’.
The upper byte of the program counter is not directly accessible. PCLATH is a holding register for the PC<12:8>, whose
contents are transferred to the upper byte of the program counter.
Bits PSPIE and PSPIF are reserved on PIC16F873A/876A devices; always maintain these bits clear.
These registers can be addressed from any bank.
PORTD, PORTE, TRISD and TRISE are not implemented on PIC16F873A/876A devices, read as ‘0’.
Bit 4 of EEADRH implemented only on the PIC16F876A/877A devices.
SPECIAL FUNCTION REGISTERS
Name
SPECIAL FUNCTION REGISTER SUMMARY
Addressing this location uses contents of FSR to address data memory (not a physical register) 0000 0000 31, 150
Timer0 Module Register
Program Counter (PC) Least Significant Byte
Indirect Data Memory Address Pointer
PORTB Data Latch when written: PORTB pins when read
PORTC Data Latch when written: PORTC pins when read
PORTD Data Latch when written: PORTD pins when read
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
Timer2 Module Register
Synchronous Serial Port Receive Buffer/Transmit Register
Capture/Compare/PWM Register 1 (LSB)
Capture/Compare/PWM Register 1 (MSB)
USART Transmit Data Register
USART Receive Data Register
Capture/Compare/PWM Register 2 (LSB)
Capture/Compare/PWM Register 2 (MSB)
A/D Result Register High Byte
PSPIF
ADCS1
WCOL
SPEN
Bit 7
IRP
GIE
—
—
—
—
—
—
—
—
(3)
TOUTPS3 TOUTPS2 TOUTPS1 TOUTPS0
SSPOV
ADCS0
CMIF
PEIE
ADIF
Bit 6
RP1
RX9
—
—
—
—
—
—
PORTA Data Latch when written: PORTA pins when read
T1CKPS1 T1CKPS0 T1OSCEN
TMR0IE
SSPEN
CCP1X
CCP2X
SREN
CHS2
RCIF
Bit 5
RP0
—
—
—
Write Buffer for the upper 5 bits of the Program Counter
CCP1Y
CCP2Y
CREN
CHS1
INTE
Bit 4
TXIF
EEIF
CKP
TO
—
CCP1M3
CCP2M3
ADDEN
SSPM3
SSPIF
BCLIF
CHS0
RBIE
Bit 3
The Special Function Registers can be classified into
two sets: core (CPU) and peripheral. Those registers
associated with the core functions are described in
detail in this section. Those related to the operation of
the peripheral features are described in detail in the
peripheral features section.
PD
—
GO/DONE
TMR2ON T2CKPS1 T2CKPS0 -000 0000 61, 150
CCP1M2
CCP2M2
T1SYNC
TMR0IF
CCP1IF
SSPM2
FERR
Bit 2
RE2
—
Z
TMR1CS TMR1ON --00 0000 57, 150
CCP1M1 CCP1M0 --00 0000 64, 150
CCP2M1 CCP2M0 --00 0000 64, 150
TMR2IF
SSPM1
OERR
INTF
Bit 1
RE1
DC
—
—
PIC16F87XA
TMR1IF 0000 0000 26, 150
CCP2IF -0-0 0--0 28, 150
SSPM0
ADON
RX9D
Bit 0
RBIF
RE0
C
xxxx xxxx 55, 150
0000 0000 30, 150
0001 1xxx 22, 150
xxxx xxxx 31, 150
--0x 0000 43, 150
xxxx xxxx 45, 150
xxxx xxxx 47, 150
xxxx xxxx 48, 150
---- -xxx 49, 150
---0 0000 30, 150
0000 000x 24, 150
xxxx xxxx 60, 150
xxxx xxxx 60, 150
0000 0000 62, 150
xxxx xxxx 79, 150
0000 0000
xxxx xxxx 63, 150
xxxx xxxx 63, 150
0000 000x 112, 150
0000 0000 118, 150
0000 0000 118, 150
xxxx xxxx 63, 150
xxxx xxxx 63, 150
xxxx xxxx 133, 150
0000 00-0 127, 150
POR, BOR
DS39582B-page 19
Value on:
on page:
Details
82, 82,
150