I think for now I'll live without the reference, and just make sure I don't let the battery get too drained.
Another idea I had is to use a voltage divider to measure the battery voltage directly and display a low-battery warning before it gets low enough to sag Vdd. That doesn't solve the Pickit 2 issue (not that it's a major issue, just for testing). It also means tying up another I/O pin which I can't spare, or switching to a PIC with more pins.
Dang... I just thought of something... my whole issue is that the MCP9700 sensor has an internal reference voltage so that it always outputs X volts for Y degrees of temperature. Of course, I can't access that reference, so I need another reference so that my readings are accurate.
But... someone said that silicon diodes have a pretty linear temperature response in its voltage drop. I could use that as my temp sensor, foregoing the 9700 entirely, and then by using Vdd as my A/D reference and the source power for the diode, the circuit would be self-referencing. Hmm... I might have to experiment with that.


Reply With Quote

I think it's good enough for my purposes.