Finetuning dac

Guest #3910893
Hi,

I was toying around with the Wolfson DAC chip on my dev board. But the 
results are there but seem sub optimal "running a sawtooth through 
there". While the simulation looks alright to the untrained eye. I know 
about aliassing and stuff but this seems to do a lot of it..
Attached files:
Guest
At low frequencies it sounds very good, but it breaks up faster than im 
used to DAC's doing. Eventually im planning on running it from a 
dedicated crystal osc. and not the 50 MHz, @ 78,125 KHz it is now. 
Basically im trying to justify why it starts sounding wrong "beating" at 
around 1 KHz. (and the oscillator driving it is alowed to overshoot) 
Thought maybe the timing of the data also is not quite right. Or 
treating it wrong in another way maybe?
Guest
Just moved to another OS.. It looks lik it has some kind of digital 
lowpass filter going. While im throwing an unsigned integer at it. at 
half of 1677216. The satturation maybe either my soundcard's preamp or 
the dac chip, it's the good kind at least :)
Attached files:
Moderator (Company: Titel)
What do we see in the screenshots?
And: what should be there instead?

Just look at your posts like you would know nothing about your problem. 
Thats the way all of us have to look at it. We don't know the FPGA, the 
toolchain, the board, the DAC, and finally not to much about the problem 
itself...
Guest
It doesn't look to bad almost like its trying to do right. But maybe 
somewhere between the numbers im throwing at it and the frequency it's 
running on.. At least I hope my first timers problems may seem obvious 
to some people here.

In general it does some mad aliassing.
Moderator (Company: Titel)
Astudentofminewhowasalittlepiggie wrote:
> At least I hope my first timers problems may seem obvious to some people
> here.
Due to you not answering any of my questions or adding a little snippet 
of information: HOW do you think may anybody be ABLE to help you? Its 
not, that no one wants to help you. Its just: nobody can.

> In general it does some mad aliassing.
Where can this be seen? What do we see, and what should be there 
instead?

> I hope
Hope is the only thing to lead you anywhere at that point...
You know, there are 2 kind of people in the world:
1. those able to extrapolate from insufficient information.
Guest
Oh sorry, I was unaware you felt like there was too little info.

What you are seeing in the pictures is a sawtooth generated from a 
counter.
Which is producing a sample per sample.
It is fed throug a medium end studio soundcard and it's class a preamp.
So there are artifacts seen that should or could be expected.
The counter in the picture was in between unsigned integers 4194304 - 
12582912. @ 78,125 KHz <-- so those aspects in the build are a mayor 
void in my understanding of what is right, or if it's causing trouble in 
my dev board prototype.

I did some audio programming in my life, so it's astablished to be "mad 
alissing" by ear. :) But compared to the every day results im used to it 
a bit worse.

As im typing I get the suspicion it may be due to my counter still.. So 
ill log out and in another os to get the file posted..
Guest
module TinyRampForLEDs (
  input  clk,
  input  [7:0] sync,
  input [15:0] pitch,
  output reg signed [23:0] cnt
);

reg buffer;

always @ (posedge clk)

if(cnt>=8389108)
begin
  cnt <= cnt- 1000;
end
else if (sync [6] > buffer) // sync [6] here is the same as sample clock 
in the simulation file
begin
  cnt <= cnt+ (100 * pitch);
  buffer <= sync [6];
end

else if (sync [6] < buffer)
begin
  buffer <= sync [6];
end

endmodule


Also the input of the dac is sample and hold driven so there should be 
no issues with the data being mis aligned.. Basically this could case no 
issues i'd say..
Guest
At it for a bit.

" reading on i did see it's digitally filtered in four modes that can't 
be turned off or not that i see before i am going to split :( "

So.. Since im not simply going to get a hold of the "mode pin".
The default setting is set to "10: I2S Format MSB-First left -1 
justified"
What does this say with the -1 there?

Reply

A question of your own? This thread is over 11 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.