Post Go back to editing

Programming with Microcontroller- I2C

Category: Hardware
Product Number: ADAU1787

Dear Team,

1. i have copied register sequence from the Sigmastudio capture window

2. then taken all registers from the output tab alone and made a c code.   ---  is output tab alone is sufficient or params also required ?

3. connected STM32 to i2c pins of ADAU1787 Board pins via level shifter. given an external power supply to ADAU1787

--NOT WORKING--

Kindly suggest how to flash from Micro controller stm32, i dont want to use  EEPROM(will that work ?) 

Thank you.

CJI

Parents
  • Hello CJI,

    Yes, you can certainly boot up the part from a micro controller. There are two valid ways of working with a uC.

    1) Let the part boot up itself from an EEPROM and then have the uC wait and communicate with the part after it is fully booted and running.

    2) Or just have the uC load in the program and go from there. 

    We have some documentation on this on the Wiki pages. This is a bit older documentation but it will give you the idea of how to do this. 

    You are not that far off with looking at the Output window. SigmaStudio is doing the same exact thing you need to do with your uC. There may be some steps you might be missing and usually those are timing related. SigmStudio takes a while to boot up and the part is powered up long before you compile the program but with a system on a PCB with a uC they both power up at the same time and you might be writing too quickly. 

    The Output window contents does show the parameters that are being written to so you do not need to look at the parameters tab except for learning to write to objects. By the way, if you are trying to do the same things you can do from SigmaStudio then you can see what SigmaStudio is sending to do the function. 

    Here is the Wiki page, Scroll down to the microcontroller part.

    Tutorials, Guides, Walkthroughs, and other Information [Analog Devices Wiki]

    Dave T

  • That Works,

    Thanks for the Guidance 

Reply Children
No Data