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

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
© 2007 Microchip Technology Inc.
3.2.3
Building on Lessons 1 and 2, which showed how to light up a LED and then make it
blink with a delay loop, this lesson adds rotation. It will light up DS8 and then shift it to
DS7, then DS6 and on down to DS1, and then back to DS8.
New Instructions
Rotate Program Flow
• First, initialize the I/O port and the Display,
• Copy the Display variable to the I/O Port, then
• Delay for a little while
• Rotate the display
FIGURE 3-1:
Note:
MOVLW
MOVWF
MOVF
RRF
RLF
Lesson 3: Rotate (Move the LED)
Moving a file register to itself looks like a NOP at first. However, it has a
useful side effect in that the Z flag is set to reflect the value. In other words,
MOVF fileregister,f is a convenient way to test whether or not the
value is zero without affecting the contents of the WREG.
Loads WREG with a literal value
Moves the contents of WREG to a file register
Moves the contents of a file register, either to WREG or back into
the file register (see note)
Rotate file register right
Rotate file register left
ROTATE PROGRAM FLOW
Initialize I/O Port
44-Pin Demo Board Lessons
Did it overflow?
Put Up Display
Rotate Display
Reset Display
Delay
No
Yes
DS41296B-page 17

Related parts for DM164120-2