Measuring Temperature with a dsPIC® Digital Signal Controller (DSC) CTMU

When measuring temperature with the CTMU consider the following:

1. The diode current needs to between 5.5 µA or 55 µA. Low current will have an error due to leakage paths in the mux, while higher current will make the curves nonlinear.
2. The slope and intercept of the VF vs. temperature line shift as the diode current level changes.
3. The diode VF can vary lot-to-lot due to process variations. (Calibration offsets may be needed.)
4. The current is steered to the diode only when EDG1 and EDG2 of the CTMU are equal (00) or (11). Since the POR state of the EDG1/2 bits is 00, there is no need to assert these signals to steer the current to the diode.
5. The datasheet gives the diode voltage at 25°C.
6. Use the 10-bit ADC configuration. Not all parts have the diode connected in 12-bit mode.

This is example is based on information provided in the datasheet:

• ADCVal - ADC value of the forward voltage VDD used as reference (3.3 V)
{"ft_lang_label":"__label__en","ft_lang_prob":0.85242635,"math_prob":0.9546457,"size":1200,"snap":"2020-45-2020-50","text_gpt3_token_len":312,"char_repetition_ratio":0.13712375,"word_repetition_ratio":0.0,"special_character_ratio":0.25666666,"punctuation_ratio":0.0862069,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9575342,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-19T15:42:59Z\",\"WARC-Record-ID\":\"<urn:uuid:50283b8e-edce-4e51-804e-630d3b9af29e>\",\"Content-Length\":\"288704\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:aa0d99b2-6371-479d-a247-60cfcafce69f>\",\"WARC-Concurrent-To\":\"<urn:uuid:4603235e-92cb-4661-bf97-b3cf1dbe4cc4>\",\"WARC-IP-Address\":\"107.20.139.170\",\"WARC-Target-URI\":\"https://microchipdeveloper.com/faq:1755\",\"WARC-Payload-Digest\":\"sha1:2VR5FZXW6YCD6OMOJJYASY3S3Q7OAA2N\",\"WARC-Block-Digest\":\"sha1:QLYYLUXYX5PP4QJ4UEIYFUWPNMRJAECA\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107863364.0_warc_CC-MAIN-20201019145901-20201019175901-00060.warc.gz\"}"}