DM240002 Microchip Technology, DM240002 Datasheet - Page 35

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.
EXAMPLE 3-10:
Lesson 11 adds a Moving Average Filter to the Analog-to-Digital code in Lesson 4.
Turning the potentiometer changes the value read by the Analog-to-Digital converter.
The averaged value is then sent to the LED display. The averaging filter only runs every
0.2 seconds to slow down the display changes and make it visible. The display appears
to count from the old potentiometer position to the new position.
The filter averages the last 8 readings. Choosing a power of two for the number of sam-
ples allows division by simple rotates instead of having to use a true division routine.
Additionally, rather than summing the array every time, it’s faster to keep a running
sum, then subtract out the oldest value in the queue and adding in the new value.
INCF
;insert new value into a queue, enter with new value in
;Wreg
MOVF
MOVF
MOVWF
MOVF
MOVWF
QueuePointer, f
temp
QueuePointer,w
FSR
temp,w
INDF
FILE SELECT REGISTER EXAMPLE
44-Pin Demo Board Lessons
;Advance the pointer
;save the latest value
;load FSR with the queue pointer
;Write the new value to the queue
DS41296B-page 31

Related parts for DM240002