PIC18LF458-I/PT Microchip Technology, PIC18LF458-I/PT Datasheet - Page 206

IC MCU CAN FLASH 16K LP 44-TQFP

PIC18LF458-I/PT

Manufacturer Part Number
PIC18LF458-I/PT
Description
IC MCU CAN FLASH 16K LP 44-TQFP
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18LF458-I/PT

Core Size
8-Bit
Program Memory Size
32KB (16K x 16)
Core Processor
PIC
Speed
40MHz
Connectivity
CAN, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
33
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
1.5K x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
44-TQFP, 44-VQFP
Controller Family/series
PIC18
No. Of I/o's
33
Eeprom Memory Size
256Byte
Ram Memory Size
1.5KB
Cpu Speed
40MHz
No. Of Timers
4
Package
44TQFP
Device Core
PIC
Family Name
PIC18
Maximum Speed
40 MHz
Operating Supply Voltage
3.3|5 V
Data Bus Width
8 Bit
Number Of Programmable I/os
33
Interface Type
CAN/I2C/SPI/USART
On-chip Adc
8-chx10-bit
Number Of Timers
4
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18LF458-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18LF458-I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
EXAMPLE 19-1:
DS41159E-page 204
PIC18FXX8
RXB0Interrupt
AccessBuffer
BCF
GOTO
; Copy CANCON.ICODE bits to CANSTAT.WIN bits
MOVF
ANDLW
MOVWF
MOVF
ANDLW
IORWF
; Access current buffer…
; User code
; Restore CANCON.WIN bits
MOVF
ANDLW
IORWF
MOVWF
; Do not need to restore CANSTAT - it is read-only register.
; Return from interrupt or check for another module interrupt source
PIR3, RXB0IF
AccessBuffer
CANCON, W
b’11110001’
CANCON
TempCANSTAT, W
b’00001110’
CANCON
CANCON, W
b’11110001’
TempCANCON, W
CANCON
WIN AND ICODE BITS USAGE IN INTERRUPT SERVICE ROUTINE TO ACCESS
TX/RX BUFFERS (CONTINUED)
; Clear the interrupt flag
; This is either TX or RX interrupt
; Clear CANCON.WIN bits before copying
; new ones.
; Use previously saved CANCON value to
; make sure same value.
; Copy masked value back to TempCANCON
; Retrieve ICODE bits
; Use previously saved CANSTAT value
; to make sure same value.
; Copy ICODE bits to WIN bits.
; Copy the result to actual CANCON
; Preserve current non WIN bits
; Restore original WIN bits
© 2006 Microchip Technology Inc.

Related parts for PIC18LF458-I/PT