Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

DM300019 Datasheet(PDF) 33 Page - Microchip Technology

Part # DM300019
Description  Starter Development Board Userís Guide
PDF  50 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

DM300019 Datasheet(HTML) 33 Page - Microchip Technology

Back Button DM300019 Datasheet HTML 29Page - Microchip Technology DM300019 Datasheet HTML 30Page - Microchip Technology DM300019 Datasheet HTML 31Page - Microchip Technology DM300019 Datasheet HTML 32Page - Microchip Technology DM300019 Datasheet HTML 33Page - Microchip Technology DM300019 Datasheet HTML 34Page - Microchip Technology DM300019 Datasheet HTML 35Page - Microchip Technology DM300019 Datasheet HTML 36Page - Microchip Technology DM300019 Datasheet HTML 37Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 33 / 50 page
background image
Demonstration Program Operation
© 2006 Microchip Technology Inc.
DS51584B-page 29
3.4.3
Digital-to-Analog Conversion
This program uses Digital Potentiometer MCP41010 on the dsPICDEM 80-Pin Starter
Development Board as a D/A converter to generate a sine-wave signal (audio tone) to
the LINE OUT pin. The digital potentiometer is driven by the output of the serial
peripheral interface SPI2 of the dsPIC30F6014A device, which receives its input from
the program.
The program retrieves HEX values from a table in data memory and delivers it to the
SPI. Thirty-two stored values cover the full range of the digital potentiometer. As the
analog output of the digital potentiometer passes through the MCP6022 Operational
Amplifier (configured as a low-pass filter) it results in a 400 Hz sine wave based on a
new table value every 125
μsec covering all 32 table values. The sine wave is placed
on the LINE OUT pin of the development board.
Figure 3-3 illustrates the digital-to-analog conversion process. Switches S1 and S2 are
used to change the output frequency to 800 Hz and 1600 Hz, respectively, by skipping
over some of the table values.
FIGURE 3-3:
DIGITAL-TO-ANALOG CONVERSION PROGRAM FLOW
INIT SPI2
Set W4 = Value Pointed to by
W1 Using PSV
Transmit Contents of W4 to
SPI2
Yes
Set Reg W2 to Start of Tone Table
Set Reg W3 to End of Tone Table
Set Reg W1 = W2
Has 150
μsec Interrupt
Occurred?
Set W1 = W1 + 2
S1 Pressed?
S2 Pressed?
Set W1 = W1 + 2
Set W1 = W1 + 4
Set W1 = W2
No
No
No
Yes
Yes
Yes
No
W1 > W3?
START



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com