DM163045 Microchip Technology, DM163045 Datasheet - Page 29

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
© 2009 Microchip Technology Inc.
FIGURE 3-9:
8. Press button1 shown in Figure 3-9 to program the PIC16F690.
3.3.4.4
Once programmed, the LEDs connected to the individual PORTC pins should now
resemble the output shown in Figure 3-10.
FIGURE 3-10:
The solution for this project is located in the
C:\PICDEM_Lab\GPIO_Labs\GPIO_Lab1\solution directory.
3.3.5
3.3.5.1
This lab implements a software delay to flash the LEDs connected to the PORTC pins
on/off in 1 second intervals. As configured, the PIC16F690 executes 1 million instruc-
tions 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 done using a delay routine within the
Timing() functional block called from the main() software control loop as shown in
Figure 3-11.
R8
470Ω
LED ON
LED8
TESTING THE APPLICATION
Lab 2: Flash LEDs (Delay Loop)
OVERVIEW
Legend:
1. Program the target device
2. Read target device memories
3. Read the target EEDATA memory
4. Verify the contents of the target device
5. Erase the target device memories
6. Verify that target memories are erased
7. Bring target MCLR to V
8. Bring target MCLR to V
9. Re-establish PICkit 2 connection
LED7
R7
470Ω
General Purpose Input/Output Labs
LED OFF
1
PICkit 2 PROGRAMMER/DEBUGGER TOOLBAR
LAB 1 LED OUTPUT
LED6
R6
470Ω
2
3
LED5
R5
470Ω
4
5
IL
DD
LED4
R4
470Ω
6
V
SS
7
R3
470Ω
LED3
8
9
LED2
R2
470Ω
LED1
R1
470Ω
DS41369A-page 25

Related parts for DM163045