PIC18F4585-E/ML Microchip Technology, PIC18F4585-E/ML Datasheet - Page 295

IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,LLCC,44PIN,PLASTIC

PIC18F4585-E/ML

Manufacturer Part Number
PIC18F4585-E/ML
Description
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,LLCC,44PIN,PLASTIC
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F4585-E/ML

Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
25MHz
Connectivity
CAN, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
36
Program Memory Size
48KB (24K x 16)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
3.25K x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 11x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
44-QFN
Processor Series
PIC18F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
3.25 KB
Interface Type
I2C, SPI, EUSART
Maximum Clock Frequency
40 MHz
Number Of Programmable I/os
44
Number Of Timers
1 x 8
Operating Supply Voltage
4.2 V to 5.5 V
Maximum Operating Temperature
+ 125 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, ICE4000, DV164136, DM163011
Minimum Operating Temperature
- 40 C
On-chip Adc
11 bit
Height
0.88 mm
Length
8 mm
Supply Voltage (max)
5.5 V
Supply Voltage (min)
4.2 V
Width
8 mm
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
I3-DB18F4680 - BOARD DAUGHTER ICEPIC3
Lead Free Status / Rohs Status
 Details
REGISTER 23-21: RXERRCNT: RECEIVE ERROR COUNT REGISTER
EXAMPLE 23-5:
© 2007 Microchip Technology Inc.
; 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
...
bit 7-0
RXB0CON, RXFUL
NoMessage
RXB0SIDL, EXID
StandardMessage
RXB0DO, MY_DATA_BYTE1
RXB0CON, RXFUL
READING A CAN MESSAGE
bit 7
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.
Legend:
R = Readable bit
-n = Value at POR
REC7
R-0
REC6
R-0
PIC18F2585/2680/4585/4680
W = Writable bit
‘1’ = Bit is set
REC5
R-0
Preliminary
; 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.
This is Extended Identifier message.
REC4
R-0
REC3
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
R-0
REC2
R-0
x = Bit is unknown
REC1
R-0
DS39625C-page 293
REC0
R-0
bit 0

Related parts for PIC18F4585-E/ML