It is not very accurate and would require calibration to compensate for packaging and construction variance if you needed to sense the external temperature (it is designed to read the die temperature to avoid overload).
See section 6 and section 19 of the PIC 16F15323 datasheet.
This chip has factory calibration data for the temperature module stored in the DIA (Device Information Area) This calibraton data may be accesible via GCB "GetUserID" function (but Untested)
You can view the device information area (DIA) with MPLAB IPE (Ver4.01 and above) You must have memory viewing enabled and DIA checked in the Memory settings. If I recall correctly this may need to be done in Advanced Settings.
William
Last edit: William Roth 2017-12-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have seen that the 16F15323 has an internal temperature sensor.
Does anyone know how to read it?
Thank you very much!
Frank
It is not very accurate and would require calibration to compensate for packaging and construction variance if you needed to sense the external temperature (it is designed to read the die temperature to avoid overload).
That said this app note may be of interest:
TB3165 - Temperature Sensor Module on 8-Bit Microcontrollers
It talks about the PIC18F devices but the same module is used in the Current PIC16F devices such as yours.
There is also an app note on calibrating it for external use:
AN1333 - Use and Calibration of the Internal Temperature Indicator
Cheers
Chris
Last edit: Chris Roper 2017-12-11
Thanks a lot! I will try it...
Frank
See section 6 and section 19 of the PIC 16F15323 datasheet.
This chip has factory calibration data for the temperature module stored in the DIA (Device Information Area) This calibraton data may be accesible via GCB "GetUserID" function (but Untested)
You can view the device information area (DIA) with MPLAB IPE (Ver4.01 and above) You must have memory viewing enabled and DIA checked in the Memory settings. If I recall correctly this may need to be done in Advanced Settings.
William
Last edit: William Roth 2017-12-11
If it works in a similar way to the PIC16F18326 then: https://sourceforge.net/p/gcbasic/discussion/579125/thread/83b1af8b/#2138
Last edit: Peter 2017-12-12