DM163045 Microchip Technology, DM163045 Datasheet - Page 35

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.
EQUATION 3-4:
Therefore, to implement delays greater than 65.5mS, a counter variable is
implemented as shown in the flowchart of Figure 3-14 for a 1 second delay.
FIGURE 3-14:
TMR0 Overflow Period = (4/F
using a maximum prescaler setting of 1:256 and the 4MHz internal oscillator
TMR0 Overflow Period = 1 μS x 256 x 256 = 65.5mS
counter variable value determined as follows:
1 second/65.5mS = 15.25 or rounded down to 15
General Purpose Input/Output Labs
MAXIMUM TMR0 OVERFLOW PERIOD
DELAY_1S() USING TIMER0
Create an 8-bit variable counter and
Increment counter value by 1
Clear the TMR0 overflow flag
Clear the TMR0 register
counter < or = 15?
OSC
Delay_1S()
T0IF = 0?
initialize to 0
(T0IF)
) x 256 x prescaler
YES
NO
YES
NO
END
DS41369A-page 31

Related parts for DM163045