hi
i am working on a project using 16f72. i need to generate two 50Hz signals on two of the output pins and that is not a problem to implement. the problem is while executing this code i will have to read the battery voltage using ADC or any other means(of which i am not sure of). as you guess-- depending on the battery voltage the program will branch to some other location.
on the other hand if am i to use ADC, the time required to get the value will be variable as far as i know. assuming this: will i be able to use ADC withing the 10ms duty cycle while be on accurate in time.
any suggestions will be helpful. thanks in advance.
-lipschutz
NB: any handy but robust discrete electronic solution will be appreciable as well but of course i will prefer an all-in-PIC solution.
i am working on a project using 16f72. i need to generate two 50Hz signals on two of the output pins and that is not a problem to implement. the problem is while executing this code i will have to read the battery voltage using ADC or any other means(of which i am not sure of). as you guess-- depending on the battery voltage the program will branch to some other location.
on the other hand if am i to use ADC, the time required to get the value will be variable as far as i know. assuming this: will i be able to use ADC withing the 10ms duty cycle while be on accurate in time.
any suggestions will be helpful. thanks in advance.
-lipschutz
NB: any handy but robust discrete electronic solution will be appreciable as well but of course i will prefer an all-in-PIC solution.