Hi,
for my class I have to use a Digital to Analog Converter and I'm using the
DAC MCP4922 (12-Bit DAC with SPI Interface) , I did some research online, and I know it coverts signals of 0s and 1's into a analog signal (current/voltage). I need to obtain a voltage ouput from this.
My power supply gives 12V DC, and because the DAC has a rail to rail output, I will get 12V output from it and when connected to the amplifier, I can amplify this voltage output.
My professor says I don't have to worry about it being R/2nR or R/2R DAC, but I have to focus on what and where I input my binary signals on the DAC, and how the SPI is interfaced. We are writing our functions on matlab then put it in VHDL ( using Altera ). But I'm confused where/what my inputs (in binary) go into my DAC. How do I get the 0/1 input?
Are there any tutorials on how to use the DAC in a circuit( either than the DATA sheet)
And also, is the SPI stuff interfaced through programming
The 3 pins that make up the SPI are
-Clock
- Chip Select
- Serial Data input
What do they do? As time ticks, you can change the wave of the sound?
thanks,
*edit*
i went through overviews of the SPI and the data sheet of MCP4922, but I am still confused. I have an altera board, do I program the altera board to send signals to the DAC THROUGH SPI? the SPI just reads data and transmits data right? I'm confused on the whole operation of the DAC and SPI combined.
for my class I have to use a Digital to Analog Converter and I'm using the
DAC MCP4922 (12-Bit DAC with SPI Interface) , I did some research online, and I know it coverts signals of 0s and 1's into a analog signal (current/voltage). I need to obtain a voltage ouput from this.
My power supply gives 12V DC, and because the DAC has a rail to rail output, I will get 12V output from it and when connected to the amplifier, I can amplify this voltage output.
My professor says I don't have to worry about it being R/2nR or R/2R DAC, but I have to focus on what and where I input my binary signals on the DAC, and how the SPI is interfaced. We are writing our functions on matlab then put it in VHDL ( using Altera ). But I'm confused where/what my inputs (in binary) go into my DAC. How do I get the 0/1 input?
Are there any tutorials on how to use the DAC in a circuit( either than the DATA sheet)
And also, is the SPI stuff interfaced through programming
The 3 pins that make up the SPI are
-Clock
- Chip Select
- Serial Data input
What do they do? As time ticks, you can change the wave of the sound?
thanks,
*edit*
i went through overviews of the SPI and the data sheet of MCP4922, but I am still confused. I have an altera board, do I program the altera board to send signals to the DAC THROUGH SPI? the SPI just reads data and transmits data right? I'm confused on the whole operation of the DAC and SPI combined.
Last edited: