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

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 18
Rotate
The rotate instructions (RRF or RLF) shift all the bits in the file register right or left by
one position, through the Carry bit. The Carry bit is shifted into the byte and receives
the bit shifted out of the byte. The Carry bit should be cleared before rotation so
unwanted bits are not introduced into the display byte. The Carry bit also indicates
when the display byte is empty. When it is, reinsert the ‘1’ at bit 3.
PICmicro MCUs have two rotate instructions: Rotate Left (RLF) and Rotate Right (RRF).
These instructions rotate the contents of a file register and Carry bit one place.
FIGURE 3-2:
EXAMPLE 3-4:
Start
MainLoop
OndelayLoop
BSF
CLRF
BCF
MOVLW
MOVWF
MOVF
MOVWF
DECFSZ
GOTO
DECFSZ
GOTO
BCF
RRF
BTFSC
BSF
GOTO
ROTATE LEFT
ROTATE EXAMPLE
STATUS,RP0
TRISC
STATUS,RP0
0x08
Display
Display,w
PORTC
Delay1,f
OndelayLoop
Delay2,f
OndelayLoop
STATUS,C
Display,f
STATUS,C
Display,3
MainLoop
Carry
;select Register Page 1
;make I/O PORTC all output
;back to Register Page 0
;Copy the display to the LEDs
;Delay .197S
;ensure the carry bit is clear
;Rotate Display right
;Did the bit rotate into the carry?
;yes, put it into bit 3.
File Register
© 2005 Microchip Technology Inc.

Related parts for DM164120-1