DM163035 Microchip Technology, DM163035 Datasheet - Page 38

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 34
TM
3.3.7
3.3.7.1
This lab shifts a high bit in the PORTC register from right-to-left each time through the
software loop sequentially lighting the LEDs connected to the PORTC pins in 1 second
intervals as dictated by the Timing(). This lab adds some new functional blocks to
the main() software control loop as shown in Figure 3-15.
FIGURE 3-15:
The addition of an 8-bit global variable (can be manipulated by any function) called
LED_Output is used. This variable will be acted upon by the new Decide() by shift-
ing a high bit in LED_Output from right-to-left each time this function is called. The
flowchart for the Decide() is shown in Figure 3-16.
FIGURE 3-16:
Lab Development Board User’s Guide
Global Variables:
8-bit LED_Output
Lab 4: Rotate LEDs
OVERVIEW
Loop Forever
MAIN() SOFTWARE CONTROL LOOP FLOWCHART FOR
LAB 4
DECIDE() FLOWCHART FOR LAB 4
LED_Output = 0b10000000
LED_Output = 0b00000000
Shift contents of LED_Output
variable left by 1 bit position
Decide()
END
or
?
Do_Outputs()
Initialize()
NO
Timing()
Decide()
main()
LED_Output variable initialize to 0b00000001
in Initialize()
YES
LED_Output = 0b00000001
© 2009 Microchip Technology Inc.

Related parts for DM163035