AnsweredAssumed Answered

Temp sensor reading on MKL16ZxxM4

Question asked by adrian a on Jan 1, 2015
Latest reply on Jan 8, 2015 by EARL GOODRICH

I am just starting to work with ADC and the temp sensor and I have some basic questions:

 

I set up my ADC with some basic settings (SC2 = 0x0, CFG = 0x78, SC1 = 0x1F) and write SC1 = 0x1A to trigger the conversion. I after I read COCO == 0, I try to read the R register. Based on my configuration, this should give me a 10-bit, single-ended voltage value at ambient temperature. If I read the value of the R register as uint32_t temp = *(uint32_t*)0x4003b010, am I going to get the correct value that I need for my calculations? What unit is this value going to be?

 

Thank you in advance for your assistance.

Outcomes