PIC18LF4682-I/PT Microchip Technology, PIC18LF4682-I/PT Datasheet - Page 296

80KB Flash, 3KB RAM, ECAN, 1024 EEPROM 44 TQFP 10x10x1mm TRAY

PIC18LF4682-I/PT

Manufacturer Part Number
PIC18LF4682-I/PT
Description
80KB Flash, 3KB RAM, ECAN, 1024 EEPROM 44 TQFP 10x10x1mm TRAY
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18LF4682-I/PT

Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
CAN, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
36
Program Memory Size
80KB (40K x 16)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
3.25K x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 11x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
44-TQFP, 44-VQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18LF4682-I/PT
Manufacturer:
MICROCHIP
Quantity:
4 000
Part Number:
PIC18LF4682-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18LF4682-I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC18F2682/2685/4682/4685
REGISTER 23-21: RXERRCNT: RECEIVE ERROR COUNT REGISTER
EXAMPLE 23-5:
DS39761C-page 296
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
REC7:REC0: 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
; Does RXB0 contain a message?
; No.
; Is this Extended Identifier?
; No.
; Yes.
; This will allow CAN Module to load new messages
; into this buffer.
Handle this situation...
This is Standard Identifier message.
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
This is Extended Identifier message.
REC3
R-0
REC2
R-0
© 2009 Microchip Technology Inc.
x = Bit is unknown
REC1
R-0
REC0
R-0
bit 0

Related parts for PIC18LF4682-I/PT