Eric_O
Advanced Member level 4
The PIC 16F887 has a 10-bit analog / digital converter. With an LM35CZ or an LM135 or an MCP9701A I would like to measure temperatures between - 10°C and + 100ºC. For example, knowing that the LM35CZ delivers 10 mV / °C, the voltage range on its pin 2 (Vout), will vary from - 100 mV to + 1000 mV, or 1.1 V in absolute. If I use the 5 V power supply of the PIC, the accuracy will be 5 V / 1024 = 4.88 mV / bit.
From the datasheet of the 16F887, with the ADCON1 register and the b4 / b5 bits (VCFG0 / VCFG1), I understand that we can create an external reference voltage. In this case, the ideal would be to create an external reference of 1.1 V, or 1100 mV to obtain a better accuracy of 1100 mV / 1024, or 1.074 mV / bit.
Or to be more careful, an external reference of 1.2 V, i.e. an accuracy of 1200 mV / 1024 = 1.171 mV / bit. But then another question arises: How to create a reference of 1.074 V, or 1.171 V with an external circuitry? With operational amplifiers (LM324), some resistances and a 1 adjustable resistance ?
From the datasheet of the 16F887, with the ADCON1 register and the b4 / b5 bits (VCFG0 / VCFG1), I understand that we can create an external reference voltage. In this case, the ideal would be to create an external reference of 1.1 V, or 1100 mV to obtain a better accuracy of 1100 mV / 1024, or 1.074 mV / bit.
Or to be more careful, an external reference of 1.2 V, i.e. an accuracy of 1200 mV / 1024 = 1.171 mV / bit. But then another question arises: How to create a reference of 1.074 V, or 1.171 V with an external circuitry? With operational amplifiers (LM324), some resistances and a 1 adjustable resistance ?