DM164120-2 Microchip Technology, DM164120-2 Datasheet - Page 26

BOARD DEMO PICKIT 2 44PIN

DM164120-2

Manufacturer Part Number
DM164120-2
Description
BOARD DEMO PICKIT 2 44PIN
Manufacturer
Microchip Technology
Type
MCUr
Datasheets

Specifications of DM164120-2

Contents
3 Boards (1 Populated, 2 Bare)
Processor To Be Evaluated
PIC16F
Silicon Manufacturer
Microchip
Kit Contents
PIC16F Device, 2 PCB Boards
Features
Small Surface Mount Prototype Area, Two Bare PCB Boards
Development Tool Type
Hardware - Daughter Card
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
PIC16F887
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM164120-2
Manufacturer:
Microchip Technology
Quantity:
135
44-Pin Demo Board User’s Guide
DS41296B-page 22
3.2.5
Lesson 5 combines Lessons 3 and 4 by using the Analog-to-Digital Converter (ADC)
to control the speed of rotation.
New Instructions
A conversion is run on every pass through the main loop. The result controls the length
of the outer loop (see Example 3-5).
EXAMPLE 3-5:
FIGURE 3-3:
A2DDelayLoop:
BTFSS
BTFSC
...
BSF
BTFSS
GOTO
MOVF
ADDLW
MOVWF
DECFSZ
GOTO
DECFSZ
GOTO
Lesson 5: Variable Speed Rotate
ADCON0,GO_DON
ADCON0,GO_DONE
$-1
ADRESH,w
1
Delay2
Delay1,f
A2DDelayLoop
Delay2,f
A2DDelayLoop
VARIABLE SPEED ROTATE PROGRAM FLOW
VARIABLE SPEED ROTATE EXAMPLE
Bit test, skip if set
Bit test, skip if clear
Delay Using ADC
Initialize I/O Port
Get ADC Result
Did it overflow?
Put Up Display
Rotate Display
Initialize ADC
E
Reset Display
; start conversion
; this bit will change to zero when
; the conversion is complete
; Copy the display to the LEDs
; Delay Loop shortened by the ADResult
; as controlled by the potentiometer.
No
Yes
© 2007 Microchip Technology Inc.

Related parts for DM164120-2