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

PIC18F4580-I/PT 参数 Datasheet PDF下载

PIC18F4580-I/PT图片预览
型号: PIC18F4580-I/PT
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚增强型闪存微控制器与ECAN技术, 10位A / D和纳瓦技术 [28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology]
分类和应用: 闪存微控制器和处理器外围集成电路时钟
文件页数/大小: 490 页 / 8912 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F4580-I/PT的Datasheet PDF文件第295页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第296页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第297页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第298页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第300页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第301页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第302页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第303页  
PIC18F2480/2580/4480/4580  
REGISTER 24-21: RXERRCNT: RECEIVE ERROR COUNT REGISTER  
R-0  
R-0  
R-0  
R-0  
R-0  
R-0  
R-0  
R-0  
REC7  
REC6  
REC5  
REC4  
REC3  
REC2  
REC1  
REC0  
bit 7  
bit 0  
Legend:  
R = Readable bit  
-n = Value at POR  
W = Writable bit  
‘1’ = Bit is set  
U = Unimplemented bit, read as ‘0’  
‘0’ = Bit is cleared x = Bit is unknown  
bit 7-0  
REC<7:0>: Receive Error Counter bits  
This register contains the receive error value as defined by the CAN specifications. When  
RXERRCNT > 127, the module will go into an error-passive state. RXERRCNT does not have the  
ability to put the module in “bus-off” state.  
EXAMPLE 24-5:  
READING A CAN MESSAGE  
; Need to read a pending message from RXB0 buffer.  
; To receive any message, filter, mask and RXM1:RXM0 bits in RXB0CON registers must be  
; programmed correctly.  
;
; Make sure that there is a message pending in RXB0.  
BTFSS  
BRA  
RXB0CON, RXFUL  
NoMessage  
; Does RXB0 contain a message?  
; No. Handle this situation...  
; We have verified that a message is pending in RXB0 buffer.  
; If this buffer can receive both Standard or Extended Identifier messages,  
; identify type of message received.  
BTFSS  
BRA  
RXB0SIDL, EXID  
StandardMessage  
; Is this Extended Identifier?  
; No. This is Standard Identifier message.  
; Yes. This is Extended Identifier message.  
; Read all 29-bits of Extended Identifier message.  
...  
; Now read all data bytes  
MOVFF  
...  
RXB0DO, MY_DATA_BYTE1  
; Once entire message is read, mark the RXB0 that it is read and no longer FULL.  
BCF  
...  
RXB0CON, RXFUL  
; This will allow CAN Module to load new messages  
; into this buffer.  
© 2009 Microchip Technology Inc.  
DS39637D-page 299  
 复制成功!