Dear Sir, I have some problem about reading of internal temperature sensor of this chip, this is the ended point of my projet but i don't able to read a correct temperature from internal temperature sensor, i ambient temperature is 25C° i'm reading -40C° ). I'm using all raccomandations as explained on page 34&35 of the data-sheet REV. B, but without any result. Please is it possible to have an example project of this routine ( but really tested form your support center and for ADUC7023 ? On web i haven't found nothing about this ).
Thanks in advande and best regards
Thank you ABude,
Have you some result about your code ? because i i have wrote the same code, my difference is about adc reading tha is made in polling mode and not in interrupt mode. with a temperatue ambient of 23C° i'm reading from chip -67C°. All other code is ok, DAC, ADC TIMERS AND I2C MASTER, PLA. My only problem was the simplest code.
attached you may find my code.
With my code I get temperatures of around 27-30 degrees and I can get down to -10 if I use freeze spray.
the one difference I can see with your code is that you have REFCON = 0x00;
And some other bits look different too. You enable the start conversion and then immediatelly disable it. I'm not sure if that is a valid thing to do.
Have you tried my code? Does it work?
Because if my code doesn't work on your board, there might be a hardware issue.