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

BOARD DEMO PICKIT 2 LP COUNT

DM164120-1

Manufacturer Part Number
DM164120-1
Description
BOARD DEMO PICKIT 2 LP COUNT
Manufacturer
Microchip Technology
Type
MCUr
Datasheet

Specifications of DM164120-1

Contents
3 Boards (1 Populated, 2 Bare)
Processor To Be Evaluated
PIC16F690
Silicon Manufacturer
Microchip
Core Architecture
PIC
Core Sub-architecture
PIC16
Silicon Core Number
PIC16F
Silicon Family Name
PIC16F6xxx
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
28-pin PIC16C, 16F, 18C, 18F
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM164120-1
Manufacturer:
Microchip Technology
Quantity:
135
Low Pin Count Demo Board User’s Guide
DS51556A-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 Delay1,f
GOTO
DECFSZ Delay2,f
GOTO
Lesson 5: Variable Speed Rotate
ADCON0,GO
ADCON0,GO
$-1
ADRESH,w
1
Delay2
A2DDelayLoop
A2DDelayLoop
VARIABLE SPEED ROTATE EXAMPLE
VARIABLE SPEED ROTATE PROGRAM FLOW
Bit test, skip if set
Bit test, skip if clear
;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 Pot.
Delay Using ADC
Initialize I/O Port
Get ADC Result
Did it overflow?
Put Up Display
Rotate Display
Initialize ADC
Reset Display
No
Yes
© 2005 Microchip Technology Inc.

Related parts for DM164120-1