PIC16LF876A-I/SS Microchip Technology, PIC16LF876A-I/SS Datasheet - Page 118
![IC MCU FLASH 8KX14 EE A/D 28SSOP](/photos/6/81/68119/150-28-ssop_sml.jpg)
PIC16LF876A-I/SS
Manufacturer Part Number
PIC16LF876A-I/SS
Description
IC MCU FLASH 8KX14 EE A/D 28SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Specifications of PIC16LF876A-I/SS
Core Size
8-Bit
Program Memory Size
14KB (8K x 14)
Core Processor
PIC
Speed
10MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
22
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
368 x 8
Voltage - Supply (vcc/vdd)
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
256Byte
Ram Memory Size
368Byte
Cpu Speed
20MHz
No. Of Timers
3
Package
28SSOP
Device Core
PIC
Family Name
PIC16
Maximum Speed
20 MHz
Operating Supply Voltage
2.5|3.3|5 V
Data Bus Width
8 Bit
Number Of Programmable I/os
22
Interface Type
I2C/SPI/USART
On-chip Adc
5-chx10-bit
Number Of Timers
3
Core
PIC
Processor Series
PIC16LF
Maximum Clock Frequency
20 MHz
Data Ram Size
368 B
Data Rom Size
256 B
Mounting Style
SMD/SMT
Height
1.75 mm
Length
10.2 mm
Maximum Operating Temperature
+ 85 C
Minimum Operating Temperature
- 40 C
Supply Voltage (max)
5.5 V
Supply Voltage (min)
2 V
Width
5.3 mm
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
Other names
PIC16LF876AI/SS
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16LF876A-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC16F87XA
When setting up an Asynchronous Transmission,
follow these steps:
1.
2.
3.
4.
FIGURE 10-2:
FIGURE 10-3:
TABLE 10-5:
DS39582B-page 116
0Bh, 8Bh,
10Bh,18Bh
0Ch
18h
19h
8Ch
98h
99h
Legend:
Note 1:
Write to TXREG
BRG Output
(Shift Clock)
RC6/TX/CK (pin)
TXIF bit
(Interrupt Reg. Flag)
TRMT bit
(Transmit Shift
Reg. Empty Flag)
Address
Note:
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 “USART Baud
Rate Generator (BRG)”).
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.
This timing diagram shows two consecutive transmissions.
x = unknown, - = unimplemented locations read as ‘0’. Shaded cells are not used for asynchronous transmission.
Bits PSPIE and PSPIF are reserved on 28-pin devices; always maintain these bits clear.
INTCON
PIR1
RCSTA
TXREG USART Transmit Register
PIE1
TXSTA
SPBRG Baud Rate Generator Register
Name
REGISTERS ASSOCIATED WITH ASYNCHRONOUS TRANSMISSION
PSPIF
PSPIE
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
TMR0IE
SREN
TXEN
RCIE
RCIF
Bit 5
Bit 0
Bit 0
CREN
SYNC
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.
TMR0IF
BRGH
FERR
Bit 2
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
transmission).
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
2003 Microchip Technology Inc.
Stop Bit
Stop Bit
0000 000x
0000 0000
0000 -00x
0000 0000
0000 0000
0000 -010
0000 0000
POR, BOR
Value on:
Start Bit
Word 2
0000 000u
0000 0000
0000 -00x
0000 0000
0000 0000
0000 -010
0000 0000
Value on
all other
Resets
Bit 0