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.
Hello
I use LAUNCHXL-F28069M. In model configuration, VREFHI has been set 3.3 volt inside simulink/matlab.
and micro VREFHI pin has also been connected to launchpad 3.3 volt pin. But I recieve 3 volt as maximum volt on analog pin( which means that micro ADC gives 0 to 3 volts for 4096 digitdal level. What's the reason? On the other side, how could I set VREF externally?
Mimi,
We can help you out with device-level queries here, but if you need assistance with implementing something using simulink/matlab, you will need to contact MathWorks directly.
For the 3V=4095 issue, make sure that you are executing the Device_cal() function and performing Offset Calibration in your initialization code. Both of these steps are done in the F2806x adc_soc example in C2000Ware.
To switch the reference from internal to external, you will need to set the ADCCTL1[ADCREFSEL] bit. The registers are documented in the F2806x Technical Reference Manual.
-Tommy