i have to get the digital values from the adcresult0 and convert it into the decimal value and store in in a variable of double data type...how do i do this?
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.
i have to get the digital values from the adcresult0 and convert it into the decimal value and store in in a variable of double data type...how do i do this?
Hello!
There are some features. For more clarity you can refer to 5554.tms320f28027.pdf (Chapter 4.1.1 p.48).
Regards,
Igor
thank you for your quick reply...but the value of the Voltage_analog seen in the expression tab during runtime is a constant and does not vary with the change in voltage..how do we overcome this?
Check this project out: 7343.adc_soc.zip
You can check the variables and their current values on the watch window. Do not forget to press the "Refresh Continuously" button while in debugging session else you'll be able to see only the 1st value.
Regards,
Gautam
try it like this:
Voltage_Analog = (Voltage_Digital * 3.0)/4096; //Equivalent Analog Value
i got the output..we have to include a statement in the enable PWM timer
the statement is
CLK_enableTbClockSync(myClk);