PIC18F46K80-I/ML Microchip Technology Inc., PIC18F46K80-I/ML Datasheet - Page 416

no-image

PIC18F46K80-I/ML

Manufacturer Part Number
PIC18F46K80-I/ML
Description
44 QFN 8X8X0.9MM TUBE, ECAN, 64KB FLASH, 4KB RAM, 16 MIPS, 12-BIT ADC, CTMU
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC18F46K80-I/ML

A/d Inputs
11-Channel, 12-Bit
Comparators
2
Cpu Speed
16 MIPS
Eeprom Memory
1K Bytes
Input Output
35
Interface
I2C/SPI/UART/USART
Memory Type
Flash
Number Of Bits
8
Package Type
44-pin QFN
Programmable Memory
64K Bytes
Ram Size
3.6K Bytes
Speed
64 MHz
Temperature Range
–40 to 125 °C
Timers
2-8-bit, 3-16-bit
Voltage, Range
1.8-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device
PIC18F66K80 FAMILY
REGISTER 27-21: RXERRCNT: RECEIVE ERROR COUNT REGISTER
EXAMPLE 27-5:
DS39977C-page 416
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 7-0
REC7
; 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
; 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
; Read all 29-bits of Extended Identifier message.
...
; Now read all data bytes
MOVFF
...
; Once entire message is read, mark the RXB0 that it is read and no longer FULL.
BCF
...
R-0
RXB0CON, RXFUL
NoMessage
RXB0SIDL, EXID
StandardMessage
RXB0DO, MY_DATA_BYTE1
RXB0CON, RXFUL
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.
REC6
R-0
READING A CAN MESSAGE
W = Writable bit
‘1’ = Bit is set
REC5
R-0
REC4
R-0
Preliminary
; Does RXB0 contain a message?
; No. Handle this situation...
; Is this Extended Identifier?
; No. This is Standard Identifier message.
; Yes. This is Extended Identifier message.
; This will allow CAN Module to load new messages
; into this buffer.
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
REC3
R-0
REC2
R-0
 2011 Microchip Technology Inc.
x = Bit is unknown
REC1
R-0
REC0
R-0
bit 0

Related parts for PIC18F46K80-I/ML