Forum Discussion
Altera_Forum
Honored Contributor
11 years agonios-ii-on-die-temperature-sensor example
Hi im totally new to FPGA's...Im trying to run the following example. http://www.alteraforum.com/forum/showthread.php?t=19108&highlight=on-die+temperature+sensor+example if i load the...
Altera_Forum
Honored Contributor
11 years agoThe lookup table for the ADC value and associated temperature in Celsius is here: https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/hb/max-10/ug_m10_adc.pdf (table 2-1). There is some curve fitting going on to cross reference the table to the lookup function. The value is store as alt_u8 (unsigned) so it must have been more intuitive for the code author to lookup positive values in the celsius_lookup_table array and then subtract 40 from the indexed value.