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

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.
b) Decide: This functional block will perform an XOR operation on the data
c) Do_Ouputs: This block assigns the current value in the LED_Output variable
d) Timing: This block implements a delay to flash the LEDs connected to PORTC
2.3.5.2
1. Create a new project in Flowcode using steps 1-9 from the previous lab saving
2. First, the LED_Output variable is created. In the Flowcode Workspace, select
the PORT in the Do_Outputs block.
contained within the LED_Output variable each time through the Control loop.
When a value is XOR’d with itself, the result is ‘0’ (i.e., 1 XOR’d with 1 = 0, 0
XOR’d with 0 = 0). When a value is XOR’d with a value different than itself, the
result is ‘1’ (i.e., 1 XOR’d with 0 = 1). Therefore, each time through the loop,
LED_Output data bits will toggle from 1-to-0 or 0-to-1, depending on its
current value. Remembering that when the value on the I/O pin is ‘0’, the LED
will turn off, when the value is ‘1’ the LED will turn on.
to the PORTC register which in turn lights the LEDs connected to its associated
pins.
I/O pins ON/OFF in 1-second intervals. As configured, the PIC16F690 executes
1 million instructions per second. At this rate, the Software loop execution needs
to be slowed down so that the LED flashing is visible to the eye. This is
accomplished using a Delay icon within the main Flowcode Flowchart.
the project as GPIO_Lab2.fcf in the
C:\PICDEM_Lab\flowcode\GPIO_Labs\GPIO_Lab1 directory.
Edit>Variables.... In the Variable Manager window, select Add New Variable...
The Create a New Variable window should now be open. In the Name of New
Variable: window enter LED_Output. Ensure that the Byte (number in the
range 0 to 255) radio button is selected in the “Variable type:” section. Note that
a number of variable types can be selected. In this application, the LED_Output
variable will be assigned to the 8-bit PORTC register. Therefore, the Byte
variable type will be used. The Create a New Variable window should now
resemble Figure 2-20.
PROCEDURE
General Purpose Input/Output Labs
DS41381A-page 27

Related parts for DM163035+TEFLCST3