DM163045 Microchip Technology, DM163045 Datasheet - Page 60
DM163045
Manufacturer Part Number
DM163045
Description
PICDEM Lab Development Kit (with PICkit 3) General Purpose
Manufacturer
Microchip Technology
Series
PICDEM™r
Type
MCUr
Datasheet
1.DM163035.pdf
(96 pages)
Specifications of DM163045
Contents
Board, PIC kit 3
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
For Use With/related Products
PIC Micro® MCU
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
DM163045
Manufacturer:
MICROCHIP
Quantity:
12 000
- Current page: 60 of 96
- Download datasheet (2Mb)
PICDEM
DS41369A-page 56
TM
EXAMPLE 3-26:
2. Copy/paste the code in Example 3-27 into the Initialize() over the code
Lab Development Board User’s Guide
//First, check if the interrupt occurred as a result of an
//RA2 change interrupt. If so, clear the RABIF flag so
//that subsequent interrupts can occur
if(RABIE && RABIF) RABIF = 0;
//Check the push button connected to RA0 pin. If 0, then a
//push button press is indicated
//if RA2 is still 0 then change the direction flag
//Check the push button connected to RA0 pin. If 1, then a
//push button release is indicated
//if RA2 is still 1 then change the direction flag
//Otherwise, keep the direction bit the same as it was
//Read PORTA to latch RA2 value for the next interrupt
from the previous lab.
if(RA2 == 0)
{
}
if(RA2 == 1)
{
}
PORTA = PORTA;
//Delay for 5mS to filter switch bounce
Delay_5mS();
if (RA2 == 0) direction = 1;
//Delay for 5mS to filter switch bounce
Delay_5mS();
if (RA2 == 1) direction = 0;
else direction = direction;
PB_PRESSISR() CODE FOR GPIO LAB 7
© 2009 Microchip Technology Inc.
Related parts for DM163045
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: