Could you help me with my ADC, I cannot get it Right I want to use ADC for input range of (+/- 1.25) in a differential input range with a refrenve of vdda/4 = 1.25. could you tell me what is the voltage range and the corresponding digital value in decimal?
Hi,i think you did not get my question right, I am using 16 bit resolution with the configaration defined above in the post so what happen if I insert for instance 6 mV what is the output decimal conversion?
This API takes into account your settings and returns a converted value -
int16 ADC_CountsTo_mVolts(int32 adcCounts) Description: Converts the ADC output to millivolts as a 16-bit integer. For example, if the ADC measured 0.534 V, the return value would be 534 mV. The calculation of voltage depends on the value of the voltage reference. When the Vref is based on Vdda, the value used for Vdda is set for the project in the System tab of the Design Wide Resources (DWR). Parameters: int32 adcCounts: Result from the ADC conversion. Return Value: int16: Result in mV. Side Effects: None
Note you gave to use the int32 ADC_GetResult32(void) to pass to this function.