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

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
PICDEM
DS41381A-page 26
TM
2.3.5
2.3.5.1
This lab expands on the previous by flashing the LEDs connected to the PORTC pins
ON/OFF in 1-second intervals. Also, the concept of the Software Control loop to
maintain an organized and logical flow to program execution is introduced. The
remainder of the labs in this user’s guide will divide the embedded application into
functional blocks, as shown in Figure 2-19.
FIGURE 2-19:
Referring to Figure 2-19, the Initialize functional block contains all the firmware
that initializes peripherals and variables used in the application. Note that this block is
called only once during execution (it is outside of the Infinity loop). Next, the
Get_Inputs block is called. Here all inputs are retrieved whether from off-chip devices
via the PIC16F690 I/O pins or from internal sources such as registers. Once all inputs
have been obtained, the Decide block contains firmware that will make any decisions
based off of these inputs. Once all input information has been analyzed, the
Do_Outputs block outputs information either to off-chip devices via the I/O pins or to
internal destinations such as registers based off the decisions made in the previous
block. Finally, the Timing block sets the rate for the entire Software Control loop.
In this lab, not all of these functional blocks are required to flash the LEDs connected
to the PORTC pin ON/OFF. There are no inputs into the application eliminating the
need for the Get_Inputs block. The remaining blocks will be organized as follows:
a) Initialize: This functional block will initialize an 8-bit variable called LED_Output
Lab Flowcode Companion Guide
that will contain the value to be output to PORTC. Using a variable, rather than
simply assigning a value to PORTC, allows the firmware to manipulate the data
in the variable without outputting data to the I/O pins until it is finally assigned to
Lab 2: Introducing the Software Control Loop to Flash LEDs
(Delay Loop)
OVERVIEW
THE SOFTWARE CONTROL LOOP
Forever
Loop
Get_Inputs
Do_Outputs
Initialize
START
Decide
Timing
© 2009 Microchip Technology Inc.

Related parts for DM163035+TEFLCST3