DM163045 Microchip Technology, DM163045 Datasheet - Page 28

no-image

DM163045

Manufacturer Part Number
DM163045
Description
PICDEM Lab Development Kit (with PICkit 3) General Purpose
Manufacturer
Microchip Technology
Series
PICDEM™r
Type
MCUr
Datasheet

Specifications of DM163045

Contents
Board, PIC kit 3
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
For Use With/related Products
PIC Micro® MCU

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM163045
Manufacturer:
MICROCHIP
Quantity:
12 000
PICDEM
DS41369A-page 24
TM
12. Copy/paste the code in Example 3-2 into the Do_Outputs() section labeled:
EXAMPLE 3-2:
13. Copy/paste the code in Example 3-3 into the main() section labeled:
EXAMPLE 3-3:
The project is now ready to compile and download to the PIC16F690.
14. Compile the project ensuring no errors.
15. Connect the PICkit™ 2 Programmer/Debugger to an available USB port on the
16. In the MPLAB™ IDE Project Workspace, select
17. The PICkit 2 Programmer/Debugger toolbar should now be visible in the
Lab Development Board User’s Guide
//ADD DO_OUTPUTS CODE HERE
//ADD MAIN CODE HERE
PC and then to the ICSP™ connector ICSP1 (J6) on the PICDEM Lab Develop-
ment Board. The PICkit 2 should recognize if a power source is not connected to
the PIC16F690 and provide target power.
Programmer>Select Programmer>PICkit 2.
workspace as shown in Figure 3-9.
RC0 = 1;//Make RC0 (pin 16) HIGH (approx. Vdd)
RC1 = 0;//Make RC1 (pin 15) LOW (approx. Vss)
RC2 = 1;//Make RC2 (pin 14) HIGH (approx. Vdd)
RC3 = 1;//Make RC3 (pin 7) HIGH (approx. Vdd)
RC4 = 0;//Make RC4 (pin 6) LOW (approx. Vss)
RC5 = 1;//Make RC5 (pin 5) HIGH (approx. Vdd)
RC6 = 0;//Make RC6 (pin 8) LOW (approx. Vss)
RC7 = 1;//Make RC7 (pin 9) HIGH (approx. Vdd)
Initialize(); //Initialize the relevant registers
while(1) //Code within curly braces will loop forever
{
}
Do_Outputs(); //Perform any outputs
DO_OUTPUT() CODE FOR LAB 1
MAIN() CODE FOR LAB 1
© 2009 Microchip Technology Inc.

Related parts for DM163045