|
|
|||||||
| Home | Forums | Rules | Articles | Store | Gallery | Blogs | Register | Donations | FAQ | Calendar | Search | Today's Posts | Mark Forums Read | Search |
| Digital Source Digital Players and Recorders: CD , SACD , Tape, Memory Card, etc. |
|
Please consider donating to help us continue to serve you.
Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving |
|
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
diyAudio Member
Join Date: Dec 2006
|
I am currently controlling a CS4270 with an FPGA (verilog) in Slave mode. I have studied the datasheets extensively. I am sending the device 24 bit two's complement stereo audio.
I am observing a waveform on my oscilloscope that only partially corresponds to the data I am sending it. I am sending it 24bit data (in each stereo sample): data[7:0],zeros[15:0] where data[7] is the MSB of an 8bit number, data, that I am incrementing and allowing to overflow. I would expect that I would see something like the following on my oscilloscope: /| /| / / | / | / | / | / |/ |/ But what I am getting is: \ |\ | \ | \ | | | | | | / | / <------ This part, the tip is curvy If this is inverted then it is close but is not quite what I would expect, especially the part where it drops low quick and goes curvy. I have checked all my verilog simulations and waveforms. Everything is perfect. I am happy to post my vcd files, verilog source etc. if anyone is interested. All of my timings are well within the specs for the CS4270. Does anyone have any ideas as to what is going on? |
|
|
|
|
#2 |
|
diyAudio Member
Join Date: Dec 2006
|
Well the Forum posting code stripped my whitespace so I am posting a roughly (and I mean roughly) sketched waveforms, not to scale.
|
|
|
|
|
#3 |
|
diyAudio Member
Join Date: Oct 2001
Location: .
|
Is the CS4270 set to accept left justified data ?
|
|
|
|
|
#4 |
|
diyAudio Member
Join Date: Dec 2006
|
Sorry its been a few days, I've been away from internet access. I just got back and the problem I had was that the VQ and Filt+ were connected and they are outputs. It seems like I would have seen that when I designed the prototype board, but I didn't. I thought they needed voltage, until I read the specs closer. Next time my prototype board will just have more jumpers and headers, rather than hard wired connections.
I have now gotten it to work and the output is just as in that first rough sketch (in other words it gives the the correct output). Now I'm gonna put an input port on the FPGA to send it audio from an embedded board. You can develop stuff with FPGA's for next to nothing using Xilinx' free design compiler/mapper/router and Gnu licensed Ikarus verilog and gtkwave. Why use an FPGA? Timing of the waveforms is extremely predictable and simulatable (is that a word?), where with an Atmega AVR, PIC, ARM, etc you gotta deal with processor overhead and cycle timing calculations for each instruction/branch. That would be a royal pain in the butt and even worse if I needed to change something! In other words its a bit like walking a tightrope while carrying a beverage tray vs walking on pavement. Why am I doing this? I wanted a cheap, high quality audio output for my embedded systems, and I also just wanted to do it. I think I can crunch all the logic down to a cheap CPLD, and this CS4270 chip so that the total cost is < $5 Contact me if you're interested in this project. -Brian |
|
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FPGA Learning Materials | SunRa | Digital Source | 14 | 3rd August 2008 10:11 AM |
| FPGA CPLD Altera Xilinx Audio DIY DAC | elec-tron2 | Digital Source | 16 | 7th April 2007 04:33 PM |
| Dynamic range compression & FPGA | marco72 | Digital Source | 2 | 24th March 2006 10:55 AM |
| Project: Surround Sound decoder on an FPGA | kevpatts | Digital Source | 6 | 9th November 2004 07:17 AM |
| Audio project with an FPGA? | gretzteam | Digital Source | 11 | 22nd March 2002 03:28 AM |
| New To Site? | Need Help? |
| Page generated in 0.08600 seconds (70.59% PHP - 29.41% MySQL) with 11 queries |