PIC18F45K20-I/ML Microchip Technology, PIC18F45K20-I/ML Datasheet - Page 54

IC PIC MCU FLASH 16KX16 44QFN

PIC18F45K20-I/ML

Manufacturer Part Number
PIC18F45K20-I/ML
Description
IC PIC MCU FLASH 16KX16 44QFN
Manufacturer
Microchip Technology
Series
PIC® XLP™ 18Fr

Specifications of PIC18F45K20-I/ML

Program Memory Type
FLASH
Program Memory Size
32KB (16K x 16)
Package / Case
44-QFN
Core Processor
PIC
Core Size
8-Bit
Speed
64MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
35
Eeprom Size
256 x 8
Ram Size
1.5K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 3.6 V
Data Converters
A/D 14x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC18F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
1.5 KB
Interface Type
CCP/ECCP/EUSART/I2C/MSSP/SPI
Maximum Clock Frequency
64 MHz
Number Of Programmable I/os
36
Number Of Timers
4
Maximum Operating Temperature
+ 85 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, DV164136
Minimum Operating Temperature
- 40 C
On-chip Adc
14-ch x 10-bit
Package
44QFN EP
Device Core
PIC
Family Name
PIC18
Maximum Speed
64 MHz
Operating Supply Voltage
2.5|3.3 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
DM240313 - BOARD DEMO 8BIT XLPAC164112 - VOLTAGE LIMITER MPLAB ICD2 VPPDM164124 - KIT STARTER FOR PIC18F4XK20AC164322 - MODULE SOCKET MPLAB PM3 28/44QFN
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
PICkit™ 3 Debug Express
FIGURE 3-40:
DS41370C-page 50
When an interrupt occurs and the Master Interrupt signal is asserted, the PIC
microcontroller finishes executing the current instruction, stores the next address on
the Return Address Stack, and then jumps to an interrupt vector. At the interrupt vector
it begins executing a function designated as the Interrupt Service Routine. When this
function exits, program execution returns to the address stored on the Return Address
Stack.
Interrupts allow hardware events to be acted upon very quickly and regardless of the
state of the main program because they cause the immediate execution of dedicated
code.
The PIC18FXXXX architecture supports up to two levels of interrupt priority, each of
which have a logic structure like that in Figure 3-37. Most interrupts have a Priority bit
associated with the interrupt flag and enable that assigns it to one of the two priority
levels. Using priority levels is optional, and the PIC18FXXXX may be configured to use
only one level priority.
When two levels of interrupt priority are used, an interrupt of either priority level may
interrupt the main program. However, only a high priority interrupt may interrupt a low
priority interrupt, and nothing may interrupt a high priority interrupt. As shown in Figure
3-38, when a low priority interrupt event occurs during execution of statement3 in the
main code, the program jumps to begin executing the low priority interrupt function.
During execution of the lo_statement2, a high priority interrupt event occurs,
causing program execution to jump to the High Priority Interrupt function. When the
high priority function completes and exits, execution is returned to where it left off in the
low priority function. Similarly, when the low priority function completes and exits,
program execution returns to where it left off in the main code, at statement4.
PRIORITY INTERRUPT EXECUTION FLOW
The high priority interrupt vector is at program memory address 0x0008. The low
priority interrupt vector is at program memory address 0x0018. If interrupt priorities are
not used, all interrupts jump to the high priority vector at 0x0008.
3.8.2
The first thing to note is that the Directions variable is now global, so it may be
accessed in the Interrupt Service Routine functions.
When using interrupts, the interrupt vectors must be defined and placed at the
appropriate vector addresses using the #pragma code directives. An inline assembly
GOTO statement redirects program execution to the interrupt functions, whose name
serves as the GOTO argument.
Exploring the Lesson 8 Source Code
© 2009 Microchip Technology Inc.

Related parts for PIC18F45K20-I/ML