Problem reading 10-bit ADC on 12F675 PIC
Posted: Sat Oct 05, 2019 4:56 pm
765/5000
Hello. I set up the code for a triac thermostat controlled by a 12F675 PIC, but some error is occurring. The thermostat works as follows: a zero crossing detector sends a high level signal to the microcontroller and after that, the microcontroller varies the triac drive actuation delay time until the desired temperature is reached. The longer the delay time on the drive (lag in the triac firing angle) the lower the output power of the triac. I used the code on a 16F88 pic and it worked very well. I can't read the ADC for 10 bits. I did not find the error. The problem is reading the ADC. Could someone check the code for me and try to find the fault?
Hello. I set up the code for a triac thermostat controlled by a 12F675 PIC, but some error is occurring. The thermostat works as follows: a zero crossing detector sends a high level signal to the microcontroller and after that, the microcontroller varies the triac drive actuation delay time until the desired temperature is reached. The longer the delay time on the drive (lag in the triac firing angle) the lower the output power of the triac. I used the code on a 16F88 pic and it worked very well. I can't read the ADC for 10 bits. I did not find the error. The problem is reading the ADC. Could someone check the code for me and try to find the fault?