PIC16F877-20I/PQ Microchip Technology, PIC16F877-20I/PQ Datasheet - Page 102
![IC MCU FLASH 8KX14 EE 44-MQFP](/photos/6/59/65984/150-44-pqfp_sml.jpg)
PIC16F877-20I/PQ
Manufacturer Part Number
PIC16F877-20I/PQ
Description
IC MCU FLASH 8KX14 EE 44-MQFP
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.PIC16F873-04SO.pdf
(218 pages)
5.PIC16F873-04SO.pdf
(5 pages)
6.PIC16F873-04SO.pdf
(5 pages)
Specifications of PIC16F877-20I/PQ
Program Memory Type
FLASH
Program Memory Size
14KB (8K x 14)
Package / Case
44-MQFP, 44-PQFP
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
256 x 8
Ram Size
368 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
368 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
SMD/SMT
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
Package
44MQFP
Device Core
PIC
Family Name
PIC16
Maximum Speed
20 MHz
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:
PIC16F877-20I/PQ
Manufacturer:
MICROCHIP
Quantity:
1 000
Company:
Part Number:
PIC16F877-20I/PQ
Manufacturer:
QFP
Quantity:
5 510
Company:
Part Number:
PIC16F877-20I/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC16F87X
When setting up an Asynchronous Transmission,
follow these steps:
1.
2.
3.
4.
FIGURE 10-2:
FIGURE 10-3:
TABLE 10-5:
DS30292C-page 100
0Bh, 8Bh,
10Bh,18Bh
0Ch
18h
19h
8Ch
98h
99h
Legend: x = unknown, - = unimplemented locations read as '0'. Shaded cells are not used for asynchronous transmission.
Note 1: Bits PSPIE and PSPIF are reserved on the PIC16F873/876; always maintain these bits clear.
Address
Write to TXREG
BRG Output
(Shift Clock)
RC6/TX/CK (pin)
TXIF bit
(Interrupt Reg. Flag)
TRMT bit
(Transmit Shift
Reg. Empty Flag)
Write to TXREG
BRG Output
(Shift Clock)
RC6/TX/CK (pin)
TXIF bit
(Transmit Buffer
Reg. Empty Flag)
TRMT bit
(Transmit Shift
Reg. Empty Flag)
Initialize the SPBRG register for the appropriate
baud rate. If a high speed baud rate is desired,
set bit BRGH (Section 10.1).
Enable the asynchronous serial port by clearing
bit SYNC and setting bit SPEN.
If interrupts are desired, then set enable bit
TXIE.
If 9-bit transmission is desired, then set transmit
bit TX9.
Note:
INTCON
PIR1
RCSTA
TXREG USART Transmit Register
PIE1
TXSTA
SPBRG Baud Rate Generator Register
Name
This timing diagram shows two consecutive transmissions.
REGISTERS ASSOCIATED WITH ASYNCHRONOUS TRANSMISSION
PSPIE
PSPIF
ASYNCHRONOUS MASTER TRANSMISSION
ASYNCHRONOUS MASTER TRANSMISSION (BACK TO BACK)
CSRC
SPEN
Bit 7
GIE
Word 1
Transmit Shift Reg.
Word 1
Transmit Shift Reg
Word 1
Word 1
(1)
(1)
PEIE
ADIF
ADIE
Bit 6
RX9
TX9
START Bit
START Bit
Word 2
SREN
TXEN
RCIF
RCIE
Bit 5
T0IE
Bit 0
CREN
SYNC
Bit 0
INTE
TXIE
Bit 4
TXIF
SSPIF CCP1IF
SSPIE CCP1IE TMR2IE
RBIE
Bit 3
Bit 1
—
—
Word 1
Bit 1
Word 1
5.
6.
7.
8.
BRGH
FERR
Bit 2
T0IF
Enable the transmission by setting bit TXEN,
which will also set bit TXIF.
If 9-bit transmission is selected, the ninth bit
should be loaded in bit TX9D.
Load data to the TXREG register (starts trans-
mission).
If using interrupts, ensure that GIE and PEIE
(bits 7 and 6) of the INTCON register are set.
TMR2IF
OERR
TRMT
Bit 1
INTF
Bit 7/8
Word 2
Transmit Shift Reg.
Bit 7/8
TMR1IF
TMR1IE
RX9D
TX9D
Bit 0
R0IF
STOP Bit START Bit
2001 Microchip Technology Inc.
STOP Bit
0000 000x
0000 0000
0000 -00x
0000 0000
0000 0000
0000 -010
0000 0000
Value on:
POR,
BOR
Word 2
0000 000u
0000 0000
0000 -00x
0000 0000
0000 0000
0000 -010
0000 0000
Value on
all other
RESETS
Bit 0