DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC16LF870-I/SO 데이터 시트보기 (PDF) - Microchip Technology

부품명
상세내역
제조사
PIC16LF870-I/SO
Microchip
Microchip Technology 
PIC16LF870-I/SO Datasheet PDF : 156 Pages
First Prev 71 72 73 74 75 76 77 78 79 80 Next Last
PIC16F870/871
9.2.3 SETTING UP 9-BIT MODE WITH ADDRESS
DETECT
Steps to follow when setting up an Asynchronous
Reception with Address Detect Enabled:
• Initialize the SPBRG register for the appropriate
baud rate. If a high speed baud rate is desired, set
bit BRGH.
• Enable the asynchronous serial port by clearing
bit SYNC and setting bit SPEN.
• If interrupts are desired, then set enable bit RCIE.
• Set bit RX9 to enable 9-bit reception.
• Set ADDEN to enable address detect.
• Enable the reception by setting enable bit CREN.
• Flag bit RCIF will be set when reception is com-
plete, and an interrupt will be generated if enable
bit RCIE was set.
• Read the RCSTA register to get the ninth bit and
determine if any error occurred during reception.
• Read the 8-bit received data by reading the
RCREG register, to determine if the device is
being addressed.
• If any error occurred, clear the error by clearing
enable bit CREN.
• If the device has been addressed, clear the
ADDEN bit to allow data bytes and address bytes
to be read into the receive buffer, and interrupt the
CPU.
FIGURE 9-6: USART RECEIVE BLOCK DIAGRAM
x64 Baud Rate CLK
SPBRG
Baud Rate Generator
CREN
÷ 64
or
÷ 16
RC7/RX/DT
Pin Buffer
and Control
Data
Recovery
OERR
FERR
MSb
RSR register
Stop (8) 7 • • • 1
LSb
0 Start
RX9
8
SPEN
RX9
ADDEN
RX9
ADDEN
RSR<8>
Enable
Load of
Receive
Buffer
8
RX9D
RCREG Register
FIFO
Interrupt
RCIF
RCIE
8
Data Bus
© 1999 Microchip Technology Inc.
Preliminary
DS30569A-page 71

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]