Hello,
I'm an autodidact in PIC16F628A
I worked with PIC 8085, but it was a long time ago.
I would Like to compare two signals with PIC16F628A using MPLAB:
The idea or algorithm is:
Analogic signal = between 1V to 5V
----------------------PIC16F628A -----------------------------------------
reference signal = 4V
reset time
While Analogic signal < reference signal Then
•send a signal to RA3 (because RA3 is an output and it's connect to a LED)
•Send an error (subtraction between the two signals) to an output RA4
•Count the time in seconds while this situation occur
End while
----------------------------------------------------------------------------
Thank you
Hope someone can help me
Best Regards
Carlos
I'm an autodidact in PIC16F628A
I worked with PIC 8085, but it was a long time ago.
I would Like to compare two signals with PIC16F628A using MPLAB:
The idea or algorithm is:
Analogic signal = between 1V to 5V
----------------------PIC16F628A -----------------------------------------
reference signal = 4V
reset time
While Analogic signal < reference signal Then
•send a signal to RA3 (because RA3 is an output and it's connect to a LED)
•Send an error (subtraction between the two signals) to an output RA4
•Count the time in seconds while this situation occur
End while
----------------------------------------------------------------------------
Thank you
Hope someone can help me
Best Regards
Carlos