DM163045 Microchip Technology, DM163045 Datasheet - Page 46

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 42
TM
FIGURE 3-21:
The RA2 pin voltage is then checked again. If still low, a push button press is indicated
and the direction bit variable is toggled. Otherwise, the direction value stays the
same.
The Decide() then uses the current direction value to determine which direction
to shift the contents of the LED_Output global variable. The Decide() software
flowchart is shown in Figure 3-22.
Lab Development Board User’s Guide
TMR0 preload value determined as follows:
Desired Timer0 Overflow Rate = (4/F
5mS = 1μSeconds x (256 – TMR0 preload value) x 32
TMR0 preload value = 256 –
Timer0 configured in the Initialize() as fol-
lows:
• Using the internal F
• TMR0 increments on low-to-high transition
• Prescaler configured for 1:32
source
of F
OSC
/4
OSC
DELAY_5MS() SOFTWARE FLOWCHART FOR LAB 5
/4 (4MHz/4) clock
1μSeconds x 32
OSC
5mS
) x number of counts to overflow x prescaler
= 99.75 rounded to 100
Clear the Timer0 overflow
Preload the Timer0 result
register (TMR0) with 100
(i.e., TMR0 overflow)
Delay_5mS()
flag (T0IF)
T0IF = 1
END
?
YES
© 2009 Microchip Technology Inc.
NO

Related parts for DM163045