ΣSigmaStudio Ask AI Русский Log in

SigmaStudio sample rate registers

SigmaDSP & SigmaStudio GregAB Sep 30, 2011 00:00 6 replies Original on forum ↗
Subscribe
GregAB Question
Sep 30, 2011 00:00

We have the audio codec running but there is a question about the sampling rate that would resolve the issue to our satisfaction. In the Sigma Studio software, there are hardware register settings that set the sampling rate of the chip such as serial port sampling rate, ADC sampling rate and DSP sampling rate. For our application, we set the core clock frequency to 48 KHz and the three sampling rates mentioned to 12 KHz. When testing our system, I set up a square wave source in the schematic window of Sigma Studio to the output and then played it back through our system. There is a field, sample rate window, which can be accessed by right clicking on the square wave source that I set to 12 KHz to match the hardware register settings. When I analyzed the square wave coming over the I2S bus however, the frequency I measured was 750 Hz vs. the 500 Hz the square wave source was set to. The only way to get the frequency I was expecting was to set the sample rate window setting to 18 KHz. This was the case regardless of what frequency I set the square wave source to.

My question then is: why must the sample rate window be set to 18 KHz when the hardware registers are set to 12 KHz and the core clock frequency is 48 KHz?

ADIApproved Reply
Oct 3, 2011 00:00

Hi,

Can you send me a project file and let me know which product you are working with?

Best Rgds,

Alan

GregAB Reply
Oct 4, 2011 00:00

Hi Alan,

Attached is my customers project file. The part they are working with

is the ADAU1761.

Let me know if you have any other questions,

Greg Bucik

Field Applications Engineer

Arrow Electronics Canada, Ltd.

Engineering & Design Services

Phone: (905) 565-4405

Cell: (416) 805-8546

Fax: (905) 565-4404

Mobile Email: gbucik@rogers.blackberry.net

ADIApproved Reply
Oct 4, 2011 00:00

Hi Greg,

I noticed the sample rate in your schematic did not match the DSP sample rate setting. Here is an FAQ about how to change the DSP sample rate. Let me know if this fixes the issue

https://ez.analog.com/docs/DOC-1431

Best Rgds,

Alan

GregAB Reply
Oct 5, 2011 00:00

Hi Alan,

As per my customer - The discrepancy between the sample rate in the

schematic and the DSP sample rate setting is necessary to output the

same frequency as the source in the schematic. It is this discrepancy

that we are wondering about.

Greg

ADIApproved Reply
Oct 6, 2011 00:00

Hi Greg,

Not sure if we're talking about the same sample rate. There is an fs setting in the toolbar beside the download button as well as for the square wave generator. Anyhow here is a project file that correctly outputs the 500Hz square wave. Are they using a 12.288Mhz clock input? Let me know if this works and answers your question.

Best Rgds,

Alan

EZAdministrator Reply
Aug 2, 2018 00:00

This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

Thank you,
EZ Admin