Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I would like to know how to configure all the "Component Parameters" for the Delta Sigma (or SAR) ADC through code (not through the dialog box of the compiler).
The case is that I want to design a C# interface to configure these converters in order to obtain some graphics and statistics about the converters measurements. So I want to set all the ADC Component Parameters from this interface, via RS232.
I already have the communication but I don't find the methods that allow me to enter the parameters from code.
One simple way I can think of is to build an application layer in main( ) function which has UART as a communication protocol. Depending upon the UART command received from the PC, APIs can be used to change some of the parameters such as ADC_SetGain(int32 adcGain), ADC_SetBufferGain(uint8 gain), ADC_SelectConfiguration(uint8 config, uint8 restart). These APIs expose the configuration that can be changed in software. Hence, by digging deep into these APIs, the parameters can be controlled more closely.
I already have an idea about how to implement the configuration comunication and it is more or less like you say. The problem that I have is how to acces, through functions like you propose, to all of the configuration parameters that I can see in the configuration dialog box.
Functions that you propose only allow me to configure gain and configuration presets, but parameters like conversion mode, resolution or conversion rate I don't know how to access them.