欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC16LF1947-E/MR 参数 Datasheet PDF下载

PIC16LF1947-E/MR图片预览
型号: PIC16LF1947-E/MR
PDF下载: 下载PDF文件 查看货源
内容描述: [64-Pin Flash-Based, 8-Bit CMOS Microcontrollers with LCD Driver and nanoWatt XLP Technology]
分类和应用: 微控制器
文件页数/大小: 440 页 / 4740 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16LF1947-E/MR的Datasheet PDF文件第293页浏览型号PIC16LF1947-E/MR的Datasheet PDF文件第294页浏览型号PIC16LF1947-E/MR的Datasheet PDF文件第295页浏览型号PIC16LF1947-E/MR的Datasheet PDF文件第296页浏览型号PIC16LF1947-E/MR的Datasheet PDF文件第298页浏览型号PIC16LF1947-E/MR的Datasheet PDF文件第299页浏览型号PIC16LF1947-E/MR的Datasheet PDF文件第300页浏览型号PIC16LF1947-E/MR的Datasheet PDF文件第301页  
PIC16F/LF1946/47  
24.1.2.4  
Receive Interrupts  
24.1.2.7  
Receiving 9-bit Characters  
The RCxIF interrupt flag bit of the PIR1/PIR3 register is  
set whenever the EUSART receiver is enabled and  
there is an unread character in the receive FIFO. The  
RCxIF interrupt flag bit is read-only, it cannot be set or  
cleared by software.  
The EUSART supports 9-bit character reception. When  
the RX9 bit of the RCxSTA register is set, the EUSART  
will shift 9 bits into the RSR for each character  
received. The RX9D bit of the RCxSTA register is the  
ninth and Most Significant data bit of the top unread  
character in the receive FIFO. When reading 9-bit data  
from the receive FIFO buffer, the RX9D data bit must  
be read before reading the 8 Least Significant bits from  
the RCxREG.  
RCxIF interrupts are enabled by setting the following  
bits:  
• RCxIE interrupt enable bit of the PIE1/PIE3  
register  
24.1.2.8  
Address Detection  
• PEIE peripheral interrupt enable bit of the INTCON  
register  
A special Address Detection mode is available for use  
when multiple receivers share the same transmission  
line, such as in RS-485 systems. Address detection is  
enabled by setting the ADDEN bit of the RCxSTA  
register.  
• GIE global interrupt enable bit of the INTCON  
register  
The RCxIF interrupt flag bit will be set when there is an  
unread character in the FIFO, regardless of the state of  
interrupt enable bits.  
Address detection requires 9-bit character reception.  
When address detection is enabled, only characters  
with the ninth data bit set will be transferred to the  
receive FIFO buffer, thereby setting the RCxIF interrupt  
bit. All other characters will be ignored.  
24.1.2.5  
Receive Framing Error  
Each character in the receive FIFO buffer has a  
corresponding framing error Status bit. A framing error  
indicates that a Stop bit was not seen at the expected  
time. The framing error status is accessed via the  
FERR bit of the RCxSTA register. The FERR bit  
represents the status of the top unread character in the  
receive FIFO. Therefore, the FERR bit must be read  
before reading the RCxREG.  
Upon receiving an address character, user software  
determines if the address matches its own. Upon  
address match, user software must disable address  
detection by clearing the ADDEN bit before the next  
Stop bit occurs. When user software detects the end of  
the message, determined by the message protocol  
used, software places the receiver back into the  
Address Detection mode by setting the ADDEN bit.  
The FERR bit is read-only and only applies to the top  
unread character in the receive FIFO. A framing error  
(FERR = 1) does not preclude reception of additional  
characters. It is not necessary to clear the FERR bit.  
Reading the next character from the FIFO buffer will  
advance the FIFO to the next character and the next  
corresponding framing error.  
The FERR bit can be forced clear by clearing the SPEN  
bit of the RCxSTA register which resets the EUSART.  
Clearing the CREN bit of the RCxSTA register does not  
affect the FERR bit. A framing error by itself does not  
generate an interrupt.  
Note:  
If all receive characters in the receive  
FIFO have framing errors, repeated reads  
of the RCxREG will not clear the FERR bit.  
24.1.2.6  
Receive Overrun Error  
The receive FIFO buffer can hold two characters. An  
overrun error will be generated If a third character, in its  
entirety, is received before the FIFO is accessed. When  
this happens the OERR bit of the RCxSTA register is  
set. The characters already in the FIFO buffer can be  
read but no additional characters will be received until  
the error is cleared. The error must be cleared by either  
clearing the CREN bit of the RCxSTA register or by  
resetting the EUSART by clearing the SPEN bit of the  
RCxSTA register.  
2010 Microchip Technology Inc.  
Preliminary  
DS41414A-page 295  
 复制成功!