Re:Help needed to understand using the compartor output in PIC 16F628
Thanks Jon Wilder for you reply.
I understand what you have explain. Sorry if I have not given clear information when I posted the request. What you have explained is exactly what I understod from the documents I found in the forums.
The thing is if I am using PIC 16F628 to control a pellets burnner with the following proccess. I must be ale to get the temperature values to set all these diffrent proccess levels. Following is the the description of the process:
In the start leve the heating element fires up and then pellets will be pumped in. Then the blower starts up in a very lowspeed level to get the pellets fieredup. When it has done that blower goto highspeed level and at the same time an LDR check if the flame has rech a certain intencity as the presetted level. If that has reach the level the state changes from start level to the standarddrift level but keeping the blower speed as it is. In the standarddrift level it continiusly check the temperature of the burner with the help of an LM35 or something like that and compare with a presetted value and at the same time do check the flame intencity. If flame is ok and the temperature is -5% of the presetted it have to change the state to the lowdrift level and switch the blower to lowspeed. Then when temperature reach it presetted level it gose to cooldown level where the blower gose bak to high speed and continue running for arround 5 minutes while all the other function will switch off. After 5 minutes it gose to the standby level.
The above is the proccess I am trying to produce with my experiment.
LDR connected to comparator1 and LM35 connected to comparator2 respectivly with idividual comparator configuration in a PIC16F628. The LDR function I have no problem with. It's the LM35 signal I need help to pass information to the PWM to change the speed of the blower in standarddrift, lowdrift and cooldown level.
I am using The PWM signal to control the blower via en TRIAC controller.
I hope this information will help you all to get to know what I am exactly looking for. I am open to allkinds of suggestions.
Thanks