DM163035 Microchip Technology, DM163035 Datasheet - Page 53

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
© 2009 Microchip Technology Inc.
FIGURE 3-23:
Note the removal of the Get_Inputs() from the previous lab. This code will now be
handled by an Interrupt Service Routine (ISR) whenever the push button is pressed.
The PB_PressISR() flowchart is shown in Figure 3-24.
FIGURE 3-24:
Global Variables:
• 8-bit variable LED_Output will be used to light
• 1-bit variable direction used to determine the
the LEDs connected to PORTC
direction of the sequential LED flashing
0 = shift PORTC bits right-to-left
1 = shift PORTC bits left-to-right
General Purpose Input/Output Labs
NO
MAIN() SOFTWARE CONTROL LOOP FLOWCHART FOR
GPIO LAB 6
PB_PRESSISR() FOR LAB 6 SHOWING SWITCH DEBOUNCE
direction = direction
Loop Forever
PB_PressISR()
INTE and INTF
Clear INTF flag
RA2 pin = 0
bits set
RETURN
?
?
YES
NO
YES
NO
Do_Outputs()
Initialize()
Decide()
Timing()
main()
Toggle direction
Delay for 5mS
RA2 pin = 0
?
YES
DS41369A-page 49

Related parts for DM163035