EngineerZone
All Places
Analog Microcontrollers
ADuC7xxx
Discussions
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
roberto
Why is so difficult to have a reply ?
I am working on this today.
Sorry for the delay. The weekend was a factor in the delay
Here is tested code that I just wrote.
P.S.
The latest datasheet is Rev C.
I don't think that anything relevant to the tempsensor was modified, but it's best that you use the current version.
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.
Hi ABuda, i have tryied your code and it's ok,. I read the same your value. I need to debug better my project, in order to find difference. Thank you for your help...
Regards
roberto