DM163035+TEFLCST3 Microchip Technology, DM163035+TEFLCST3 Datasheet - Page 61

no-image

DM163035+TEFLCST3

Manufacturer Part Number
DM163035+TEFLCST3
Description
KIT, PICDEMLAB+FLOWCODE-HOME BUNDLE/
Manufacturer
Microchip Technology
Datasheet

Specifications of DM163035+TEFLCST3

Kit Contents
Component Kit, PICDEM Lab Development Board, PICkit 2 Programmer/ Debugger, CD Containing User Guide
Svhc
No SVHC (15-Dec-2010)
Development Tool Type
Hardware / Software - Dev
Silicon Manufacturer
Microchip
Core Architecture
PIC
Core Sub-architecture
PIC10, PIC12, PIC16
Silicon Core Number
PIC10F, PIC12F, PIC16F
Silicon Family Name
PIC10F2xx, PIC12F6xx, PIC16F6xx
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
© 2009 Microchip Technology Inc.
So the question may arise, why not use interrupts all the time? The answer to this is
cost. In order to have an interrupt for a particular event usually requires a specific
peripheral. The more peripherals on a microcontroller, the higher the cost of the device.
Many times simply checking an event each time through the Software Control loop may
be sufficient for the application at hand minimizing pin-count and ultimately the costs
associated.
This lab will incorporate an interrupt on the PORTA RA2 pin interfaced the push button
used in the circuit from the previous lab. Referring to the PIC16F690 pin diagram in the
PIC16F690 data sheet, the RA2 pin shares functionality with a feature designated as
INT. The INT designation refers to the external edge-triggered interrupt capability on
this particular pin. This interrupt can be triggered by either a high-to-low or low-to-high
transition of the voltage level on the RA2 pin. When the particular event occurs, and the
external interrupt is configured, the CPU will then execute a macro that will be created
within Flowcode specific to that interrupt. This interrupt macro will contain the code to
toggle the direction variable used in the previous lab by the Decide functional
block to determine the direction of the sequential flashing of the LEDs connected to the
PORTC pins.
2.4.5.3
1. The first step will be to export the Shift macro from the previous lab so that it
FIGURE 2-53:
2. The user will be prompted to select a directory into which to save the Shift
can be used here. Ensure that the GPIO_Lab4.fcf project is open from the pre-
vious lab. To export the Shift macro select Macro>Export to open the Export
Macro dialog. Highlight the Shift macro and click Export (see Figure 2-53).
macro. Navigate to the C:\PICDEM_Lab\flow-
code\GPIO_Labs\GPIO_Lab5 directory and save the macro there.
PROCEDURE
General Purpose Input/Output Labs
EXPORT MACRO WINDOW
DS41381A-page 57

Related parts for DM163035+TEFLCST3