DM240002 Microchip Technology, DM240002 Datasheet - Page 37

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
© 2007 Microchip Technology Inc.
FIGURE 3-12:
This lesson uses the look-up table to implement a binary to Gray code converter. Gray
code is a binary code in which only a single bit changes from one sequence to the next.
They are frequently used in encoder applications to avoid wild jumps between states.
Binary encoders are typically implemented as an opaque disk with slots sensed by light
sensors. Due to different threshold levels on different bits, bits may change at slightly
differently times yielding momentary invalid results. Gray code prevents this because
only one bit changes from one sequence to the next. The current code is correct until
it transitions to the next.
The algorithm to convert between binary and Gray code is fairly complex. For a small
number of bits, the table look-up is smaller and faster.
This lesson takes the Analog-to-Digital value upper nibble and converts it to Gray code
displayed on the first four LEDs. The code changes one bit at a time as the potentiom-
eter rotates across its range (seeExample 3-12).
Gray Code Converter
Decimal
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
PC
Binary
0000
0001
0011
0010
0110
0111
0101
0100
1100
1101
1111
1110
1010
1011
1001
1000
12
PC LOADING AS DESTINATION OF INSTRUCTION
5
PCH
PCLATH<4:0>
44-Pin Demo Board Lessons
PCLATH
8 7
PCL
8
0
ALU Result
Instruction with
Destination
PCL as
DS41296B-page 33

Related parts for DM240002