DM163035 Microchip Technology, DM163035 Datasheet - Page 60

KIT DEVELOPMENT PICDEM LAB

DM163035

Manufacturer Part Number
DM163035
Description
KIT DEVELOPMENT PICDEM LAB
Manufacturer
Microchip Technology
Type
MCUr
Datasheet

Specifications of DM163035

Contents
Board, Cable, Components, CD, PICkit Programmer
Processor To Be Evaluated
PIC10F, PIC12F615, PIC16F616
Data Bus Width
8 bit
Operating Supply Voltage
1.3 V to 5 V
Silicon Manufacturer
Microchip
Core Architecture
PIC
Core Sub-architecture
PIC10, PIC12, PIC16
Silicon Core Number
PIC10F, PIC12F, PIC16F
Silicon Family Name
PIC10F2xx, PIC12F6xx, PIC16F6xx
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
PIC10F206, PIC16F690, PIC16F819
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
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 DM163035