DM163045 Microchip Technology, DM163045 Datasheet - Page 30

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 26
TM
FIGURE 3-11:
The Timing() delay routine is shown in Figure 3-12.
FIGURE 3-12:
Two variables are used delay_var1 and delay_var2. The delay_var2 is decre-
mented by 1 each time delay_var1 is decremented from 45571 to 0. These values
have been determined through trial and error using a test procedure detailed in the
“Timers: Timer0 Tutorial (Part 1)” (DS51682.pdf) included on the PICDEM™ Lab
Development Kit CD. This delay ties the up the processor for 1 second when using the
4 MHz internal oscillator.
The Initialize() configures the PORTC as follows:
• PORTC
Lab Development Board User’s Guide
- Set all bits in the PORTC register HIGH
- Configure all PORTC pins as digital outputs
Loop Forever
MAIN() SOFTWARE CONTROL LOOP FLOWCHART FOR
LAB 2
TIMING() DELAY ROUTINE FLOWCHART FOR LAB 2
YES
Create two 8-bit variables:
• delay_var1 = 45571
• delay_var2 = 3
delay_var1 = 45571
delay_var2 - 1 = 0
delay_var1 - 1 = 0
Do_Outputs()
Initialize()
Timing()
main()
TIMING()
?
?
NO
NO
YES
© 2009 Microchip Technology Inc.
END

Related parts for DM163045