DM240002 Microchip Technology, DM240002 Datasheet - Page 22

BOARD DEV EXPLORER 16 44-PIN

DM240002

Manufacturer Part Number
DM240002
Description
BOARD DEV EXPLORER 16 44-PIN
Manufacturer
Microchip Technology
Series
Explorer 16 44-pinr
Type
MCUr
Datasheet

Specifications of DM240002

Contents
Explorer 16 Dev Board, PIC24FJ64GA004 and dsPIC33FJ32GP204 PIM Modules
Processor To Be Evaluated
PIC24FJ128GA010, dsPIC33FJ256GP710
Processor Series
PIC 24, dsPIC33
Data Bus Width
32 bit
Interface Type
RS-232
Silicon Manufacturer
Microchip
Core Architecture
PIC, DsPIC
Core Sub-architecture
PIC24, DsPIC33
Silicon Core Number
PIC24F, DsPIC33F
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
dsPIC30, dsPIC33, PIC32, PIC24FJ, PIC24HJ
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM240002
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
DM240002
Manufacturer:
MICROCHIP
Quantity:
12 000
44-Pin Demo Board User’s Guide
DS41296B-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.
PIC microcontrollers 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.
The Carry bit is found in the STATUS Special Function Register.
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
STATUS,RP0 ; select Register Bank 1
TRISD
STATUS,RP0 ; back to Register Bank 0
0x80
Display
Display,w
PORTD
Delay1,f
OndelayLoop
Delay2,f
OndelayLoop
STATUS,C
Display,f
STATUS,C
Display,7
MainLoop
ROTATE LEFT
ROTATE EXAMPLE
Carry
; make IO PortD all output
; Copy the display to the LEDs
; Delay .197 s
; ensure the carry bit is clear
; rotate display right
; Did the bit rotate into the carry?
; yes, put it into bit 7.
File Register
© 2007 Microchip Technology Inc.

Related parts for DM240002