Hello Unregistered ,
I need to know how can I implement the code of the forum and if someone can help me. Originally Posted by mackrackit Sounds like you pretty much have the project mapped out. What exactly do you need help with ?
Something like this ? Main : ...... goto check ...... goto main CHECK : ; verify for voltage ADCIN 2, ADVAL VT = ADVAL * 5000 ; 5V with 3 decimals VT = DIV32 1023 ; / maximum A/D reading IF VT > 6000 THEN GPIO.0 = 0 ENDIF RETURN
Hello Fratello, Exactly what is needed for the battery charger when the voltage divider delivers eg 60mV to the GP2 pin 7 is low and cut the load to the battery. greetings Originally Posted by fratello Something like this ? Main : ...... goto check ...... goto main CHECK : ; verify for voltage ADCIN 2, ADVAL VT = ADVAL * 5000 ; 5V with 3 decimals VT = DIV32 1023 ; / maximum A/D reading IF VT > 6000 THEN GPIO.0 = 0 ENDIF RETURN
Forum Rules
Bookmarks