DM163035 Microchip Technology, DM163035 Datasheet - Page 45

KIT DEVELOPMENT PICDEM LAB

DM163035

Manufacturer Part Number
DM163035
Description
KIT DEVELOPMENT PICDEM LAB
Manufacturer
Microchip Technology
Type
MCUr
Datasheet

Specifications of DM163035

Contents
Board, Cable, Components, CD, PICkit Programmer
Processor To Be Evaluated
PIC10F, PIC12F615, PIC16F616
Data Bus Width
8 bit
Operating Supply Voltage
1.3 V to 5 V
Silicon Manufacturer
Microchip
Core Architecture
PIC
Core Sub-architecture
PIC10, PIC12, PIC16
Silicon Core Number
PIC10F, PIC12F, PIC16F
Silicon Family Name
PIC10F2xx, PIC12F6xx, PIC16F6xx
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
PIC10F206, PIC16F690, PIC16F819
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
© 2009 Microchip Technology Inc.
A new function called Get_Inputs() is used to check the RA2 pin voltage. Referring
to Figure 3-12, the RA2 pin connected to the push button (SW1) is pulled to V
a 10 KΩ resistor. This pull-up resistor eliminates noise on the pin that could trigger
“false” push button presses. The second terminal of the push button is connected to
V
transition from V
Get_Inputs() is shown in Figure 3-20.
FIGURE 3-20:
Referring to the flowchart in Figure 3-20, the Get_Inputs() first checks the voltage
level on the RA2 pin. If the voltage is logic low (= 0 or V
using a new support routine called Delay_5mS() to allow any switch bouncing to set-
tle. The Delay_5mS() is based off of the Timer0 peripheral as discussed in Lab 3. The
software flowchart for Delay_5mS() is shown in Figure 3-21.
SS
. In this way, when a user presses the push button the voltage present on RA2 will
Contents of direction
remain unchanged
Get_Inputs()
RA0 = 0
END
?
DD
General Purpose Input/Output Labs
NO
(high or ‘1’) to V
GET_INPUTS() SOFTWARE FLOWCHART FOR LAB 5
YES
NO
SS
(low or ‘0’). The software flowchart for the
Toggle contents of
Delay_5mS()
direction
RA0 = 0
?
YES
SS
), a 5mS delay is implemented
Debounces signal
on RA2
DS41369A-page 41
DD
using

Related parts for DM163035