Tool/software:
HI - can you provide some example code for reading ADC values and setting DAC/GPIO outputs for the AMC7823? I suspect we are doing something wrong. Thanks much
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
HI - can you provide some example code for reading ADC values and setting DAC/GPIO outputs for the AMC7823? I suspect we are doing something wrong. Thanks much
Hi Paul,
Can you share more details on the configuration you need and Erin can provide the procedure for reading from the ADC and setting the DAC outputs. Or feel free to share what you're doing now, and Erin can review.
Best,
Katlynne
Hi Paul,
We don't have any code, but I can give you a list of register writes. Check to see if you are doing the register address correctly, as it is tricky:
Power Down Register, enable ADC and Ref (Register = 0x1340, Data = 0x8020)
AMC Status/Configuration Register. Set the reference, gain, and convert mode here. For example, an internal reference of 2.5V and software conversions would be: Register = 0x1280, Data = 0x0040.
ADC Control Register. first, select Auto mode (1) or Direct mode (0). Then select the ADC channels to be converted. Every time you write this register, you will trigger a Conversion event because we set the convert mode to software conversions. For example, Auto mode all channels would be: Register 0x12C0, Data 0x8080.
After this, the data will show up in the ADC registers.
Let me know if you also need the DAC/GPIO information after testing the ADC registers.
Thanks,
Erin