DM164120-2 Microchip Technology, DM164120-2 Datasheet - Page 32

BOARD DEMO PICKIT 2 44PIN

DM164120-2

Manufacturer Part Number
DM164120-2
Description
BOARD DEMO PICKIT 2 44PIN
Manufacturer
Microchip Technology
Type
MCUr
Datasheets

Specifications of DM164120-2

Contents
3 Boards (1 Populated, 2 Bare)
Processor To Be Evaluated
PIC16F
Silicon Manufacturer
Microchip
Kit Contents
PIC16F Device, 2 PCB Boards
Features
Small Surface Mount Prototype Area, Two Bare PCB Boards
Development Tool Type
Hardware - Daughter Card
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
PIC16F887
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM164120-2
Manufacturer:
Microchip Technology
Quantity:
135
44-Pin Demo Board User’s Guide
DS41296B-page 28
EXAMPLE 3-8:
3.2.10
New Instructions
Interrupt Sources
Most of the peripherals can generate an interrupt, and some of the I/O pins may be
configured to generate an interrupt when they change state.
When a peripheral needs service or an event occurs, it sets its interrupt flag. Each
interrupt flag is ANDed with its enable bit and then these are ORed together to form a
Master Interrupt. This master interrupt is ANDed with the Global Interrupt Enable (GIE).
See the Interrupt Logic Figure in the PIC16F882/883/884/886/887 Data Sheet
(DS41291) for a complete drawing of the interrupt logic. The enable bits allow the PIC
microcontroller to limit the interrupt sources to certain peripherals.
FIGURE 3-9:
ForeverLoop:
Interrupt Flag
Interrupt Enable
org 0
BSF
MOVLW
MOVWF
CLRF
CLRF
BCF
BTFSS
GOTO
BCF
INCF
MOVF
MOVWF
GOTO
RETFIE
SWAPF
Lesson 10: Interrupts
STATUS,RP0
b'00000111' ; configure Timer0. Sourced from the
OPTION_REG
TRISD
Display
STATUS,RP0
INTCON,T0IF ; wait here until Timer0 rolls over
ForeverLoop
INTCON,T0IF ; flag must be cleared in software
Display,f
Display,w
PORTD
ForeverLoop
Other Interrupt Sources
TIMER0 EXAMPLE
INTERRUPT LOGIC SIMPLIFIED
Return from Interrupt
Swap nibbles in file register
; Bank 1
; Processor clock
; Maximum Prescaler
; Make PortD all output
; Bank 0
; increment display variable
; send to the LEDs
Global Interrupt Enable
© 2007 Microchip Technology Inc.
Master Interrupt

Related parts for DM164120-2