16F870 Microchip, 16F870 Datasheet - Page 76
![no-image](/images/no-image-200.jpg)
16F870
Manufacturer Part Number
16F870
Description
Search -----> PIC16F870
Manufacturer
Microchip
Datasheet
1.16F870.pdf
(172 pages)
- Current page: 76 of 172
- Download datasheet (4Mb)
PIC16F870/871
9.3.2
Once Synchronous mode is selected, reception is
enabled
(RCSTA<5>), or enable bit CREN (RCSTA<4>). Data is
sampled on the RC7/RX/DT pin on the falling edge of
the clock. If enable bit SREN is set, then only a single
word is received. If enable bit CREN is set, the recep-
tion is continuous until CREN is cleared. If both bits are
set, CREN takes precedence. After clocking the last bit,
the received data in the Receive Shift register (RSR) is
transferred to the RCREG register (if it is empty). When
the transfer is complete, interrupt flag bit RCIF
(PIR1<5>) is set. The actual interrupt can be enabled/
disabled
(PIE1<5>). Flag bit RCIF is a read only bit, which is
reset by the hardware. In this case, it is reset when the
RCREG register has been read and is empty. The
RCREG is a double-buffered register (i.e., it is a two-
deep FIFO). It is possible for two bytes of data to be
received and transferred to the RCREG FIFO and a
third byte to begin shifting into the RSR register. On the
clocking of the last bit of the third byte, if the RCREG
register is still full, then overrun error bit OERR
(RCSTA<1>) is set. The word in the RSR will be lost.
The RCREG register can be read twice to retrieve the
two bytes in the FIFO. Bit OERR has to be cleared in
software (by clearing bit CREN). If bit OERR is set,
transfers from the RSR to the RCREG are inhibited, so
it is essential to clear bit OERR if it is set. The ninth
receive bit is buffered the same way as the receive
data. Reading the RCREG register will load bit RX9D
with a new value, therefore, it is essential for the user
to read the RCSTA register before reading RCREG, in
order not to lose the old RX9D information.
DS30569B-page 74
by
by
USART SYNCHRONOUS MASTER
RECEPTION
setting
setting/clearing
either
enable
enable
bit
bit
SREN
RCIE
When setting up a Synchronous Master Reception:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10. If any error occurred, clear the error by clearing
11. If using interrupts, ensure that GIE and PEIE
Initialize the SPBRG register for the appropriate
baud rate (Section 9.1).
Enable the synchronous master serial port by
setting bits SYNC, SPEN and CSRC.
Ensure bits CREN and SREN are clear.
If interrupts are desired, then set enable bit
RCIE.
If 9-bit reception is desired, then set bit RX9.
If a single reception is required, set bit SREN.
For continuous reception, set bit CREN.
Interrupt flag bit RCIF will be set when reception
is complete and an interrupt will be generated if
enable bit RCIE was set.
Read the RCSTA register to get the ninth bit (if
enabled) and determine if any error occurred
during reception.
Read the 8-bit received data by reading the
RCREG register.
bit CREN.
(bits 7 and 6) of the INTCON register are set.
2003 Microchip Technology Inc.
Related parts for 16F870
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![STM-16](/images/no-image3.png)
Part Number:
Description:
16 fold Spectroscopy Amplifier with Discriminators and Multiplicity Trigger
Manufacturer:
ETC2 [List of Unclassifed Manufacturers]
Datasheet:
![m66311fp](/images/manufacturer_photos/0/5/561/renesas_electronics_corporation__tmb.jpg)
Part Number:
Description:
16-bit Led Driver With Shift Register And Latch
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
![m66014fp](/images/manufacturer_photos/0/5/561/renesas_electronics_corporation__tmb.jpg)
Part Number:
Description:
16-bit Serial Bus Controller
Manufacturer:
Renesas Electronics Corporation.
Datasheet:
![pt8300](/images/manufacturer_photos/0/5/540/princeton_technology_corp__tmb.jpg)
Part Number:
Description:
16-bit I/o Expander Ic
Manufacturer:
Princeton Technology Corp.
Datasheet:
![as29lv016jbrgr-70/xt](/images/no-image3.png)
Part Number:
Description:
16 Megabit 2m X 8-bit / 1m X 16-bit Cmos 3.0 Volt-only Boot Sector Flash Memory
Manufacturer:
Austin Semiconductor, Inc.
Datasheet:
![as29lv016brg-90/xt](/images/no-image3.png)
Part Number:
Description:
16 Megabit 2m X 8-bit / 1m X 16-bit Cmos 3.0 Volt-only Boot Sector Flash Memory
Manufacturer:
Austin Semiconductor, Inc.
Datasheet:
![hm51w16165tt-7](/images/no-image3.png)
Part Number:
Description:
16 M Edo Dram 1-mword ? 16-bit
Manufacturer:
Elpida Memory, Inc.
Datasheet:
![hm5118165tt-7](/images/no-image3.png)
Part Number:
Description:
16 M Edo Dram 1-mword ? 16-bit
Manufacturer:
Elpida Memory, Inc.
Datasheet:
![hm5216165](/images/no-image3.png)
Part Number:
Description:
16 M Lvttl Interface Sdram 512-kword ? 16-bit ? 2-bank
Manufacturer:
Elpida Memory, Inc.
Datasheet:
![hm5216165tt-10h](/images/no-image3.png)
Part Number:
Description:
16 M Lvttl Interface Sdram 512-kword ? 16-bit ? 2-bank 100 Mhz/83 Mhz
Manufacturer:
ETC-unknow
Datasheet:
![MA300015](/photos/8/96/89623/ma300015_tmb.jpg)
Part Number:
Description:
MODULE PLUG-IN DSPIC30F 80QFP
Manufacturer:
Microchip Technology
Datasheet:
![MA180021](/photos/8/96/89639/ma180021_tmb.jpg)
Part Number:
Description:
MODULE PLUG-IN 18F87J50 FS USB
Manufacturer:
Microchip Technology
Datasheet:
![AC164131](/photos/8/96/89652/ac164131__tmb.jpg)
Part Number:
Description:
BOARD DAUGHTER USB PICTAIL PLUS
Manufacturer:
Microchip Technology
Datasheet: