DM240002 Microchip Technology, DM240002 Datasheet - Page 34

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 30
FIGURE 3-10:
3.2.11
The FSR (File Select Register) allows a file register address to be specified. A subse-
quent read or write to the INDF (Indirect File register) refers to the file register
addressed by the FSR.
This may be used to implement a moving average filter. The moving average keeps a
list of the last n values and averages them together. The Filter needs two parts: A
circular queue and a function to calculate the average.
FIGURE 3-11:
Calculating averages in a mid-range PIC microcontroller is best accomplished by using
the FSR to keep track of where the next value will be inserted. This ensures the oldest
value is always overwritten with the newest and doesn’t waste time moving values
within the memory.
Conceptual View
Implementation View
Time
Time
n + 1
n + 2
n + 1
n + 2
Newest value inserted here
n
n
Lesson 11: Indirect Data Addressing
105
106
107
106
106
110
The rest move down one
Before
SWAPF INSTRUCTION
MOVING AVERAGES
After
102
105
106
105
105
110
Pointer to oldest value
101
102
105
101
102
103
Older value overwritten, pointer advanced
1 0 1 0
0 0 1 1
104
101
102
104
101
Pointer advanced
99
104
101
99
99
99
99
0 0 1 1
1 0 1 0
103
104
101
101
101
99
© 2007 Microchip Technology Inc.
105
103
102
102
102
99
107
105
103
105
105
105
Average
Average
103
103
104
103
103
104

Related parts for DM240002