isaac12345
Member level 2
Hi all,
I'm quite new to microcontrollers and would like to ask 2 questions please-
1. What's the formula for converting the reading from the ADC into the TMP36's temperature (in degree Celsius)?I had a look on the internet and the formula that's available is for an Arduino.
2. I'm using the CCS C compiler and in the documentation its mentioned that the read_adc() function returns an 8bit integer. Is this integer the exact value of the voltage read at the analog pin or some other number which needs to be first converted into the voltage (and then further into temperature)?
Thanks!
I'm quite new to microcontrollers and would like to ask 2 questions please-
1. What's the formula for converting the reading from the ADC into the TMP36's temperature (in degree Celsius)?I had a look on the internet and the formula that's available is for an Arduino.
2. I'm using the CCS C compiler and in the documentation its mentioned that the read_adc() function returns an 8bit integer. Is this integer the exact value of the voltage read at the analog pin or some other number which needs to be first converted into the voltage (and then further into temperature)?
Thanks!