Hi,
I'm glad you're feeling better. As I said previously I don't have any experience in using the temp sense module in these PICs, all I'm doing is reading the datasheets.
First, lets see if a raw reading 496 makes sense.
Let's, for the exercise, say that Vt for your device matches that of the device in the App note, somewhere around 0.574V at 27C.
Vtemp, ie the voltage that the ADC measures is, in high range mode, Vdd-4*Vt or for a 5V Vdd: 5-(4*0.574)=2.704.
The RAW ADC reading is 2.704/5*1023=553.'
You're getting a value of 496 so I guess that's reasonable. I don't quite understand the values shown in Figure 4, perhaps that's using 8bit conversion, I don't know.
That's basically how far I've got as of now and I'm running out of time right now. Hopefully someone else will step in.
/Henrik.




Bookmarks