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

5.23 conversion sample code

SigmaDSP & SigmaStudio eric_engineer Dec 22, 2014 00:00 4 replies Original on forum ↗
Subscribe
eric_engineer Question
Dec 22, 2014 00:00

Is there sample code for the conversion of 5.23 to the hex value(s) I have to write over I2C for my ADAU1761? I'm just getting into trying to program it from my PIC32 and I'm not really sure where to start.

Trying to implement these functions listed as todo in SigmaStudioFW.h:

#define SIGMASTUDIOTYPE_FIXPOINT_CONVERT( _value ) {/*TODO: IMPLEMENT MACRO*/}

#define SIGMASTUDIOTYPE_INTEGER_CONVERT( _value ) {/*TODO: IMPLEMENT MACRO*/}

Thank you

Audio Signal Processors

SigmaDSP Audio Processors

adau1761

joe42 Reply
Dec 22, 2014 00:00

See "to523": System Implementation [Analog Devices Wiki]

eric_engineer Reply
Dec 23, 2014 00:00

Thank you. I followed that code and was able to program the "program section into my device" I think. Still when I go to read back registers I'm getting all zeros, unless I have programmed the device with Sigma studio. I notice that the control registers are all outside of the address spaces programmed in this sample code. Is there another step I need to take where I setup control registers some how?

Thank you

joe42 Reply
Dec 26, 2014 00:00

The control registers are usually programmed at the same time as the main system software; these files should have been exported at compilation, which your PIC should include during its compile, then upload. I wouldn't expect to read anything but zeros until the device has been programmed. But that doesn't have much to do with the 5.23 stuff.

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