DM163035 Microchip Technology, DM163035 Datasheet - Page 47

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-22:
Similar to the previous lab, Decide() checks the LED_Output variable value before
executing the shift to ensure that the variable is not all 0’s or that the Most Significant
bit, for a left shift, or Least Significant bit, for a right shift, are not ‘1’, indicating that the
shift that follows will fill the LED_Output variable with 0’s.
The Do_Outputs() simply assigns the contents of the LED_Output variable to the
PORTC register lighting the connected LEDs accordingly.
3.4.4.3
Using the firmware developed in the previous lab, make the following changes:
Copy/paste the code in
section marked:
//--------------------DATA MEMORY----------------------
EXAMPLE 3-16:
unsigned char LED_Output;//Variable used to set/clear PORTC bits
bit direction;//Variable to select direction of shifting LEDs
LED_Output = 0b10000000
LED_Output = 0b00000000
PROCEDURE
LED_Output left
Shift contents of
by 1 bit position
General Purpose Input/Output Labs
or
?
NO
VARIABLE DECLARATIONS FOR LAB 5
DECIDE() SOFTWARE FLOWCHART FOR LAB 5
Example 3-16
YES
LED_Output =
0b00000001
YES
direction = 0
into the top of the firmware source template under the
Decide()
?
LED_Output = 0b00000001
LED_Output = 0b00000000
END
LED_Output right
Shift contents of
by 1 bit position
NO
or
?
NO
LED_Output = 0b10000000
DS41369A-page 43
YES

Related parts for DM163035