This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

compare voltage

Hi,

my program:

EP: MOV A,ADC0H
CJNZ A,#175D,EP

i have problem jumping to the next subrountine

when i detect 1.75V from power supply
it will start to display
if not it will display 0V

any advice?

Parents
  • i am sorry to mislead my question, haha
    i do not wan to display voltage lesser than 1.75 but
    above,

    after my program it will just move on to my next subrountine itself,

    something like this

    MOV A,ADC0H
    EP:CJNE A,#4BH,EP

    ;============
    ;Print Result
    ;============
    CO:MOV A,#'C' LCALL DISPLAY MOV A,#'O' LCALL DISPLAY

    correct me if i am wrong.

Reply
  • i am sorry to mislead my question, haha
    i do not wan to display voltage lesser than 1.75 but
    above,

    after my program it will just move on to my next subrountine itself,

    something like this

    MOV A,ADC0H
    EP:CJNE A,#4BH,EP

    ;============
    ;Print Result
    ;============
    CO:MOV A,#'C' LCALL DISPLAY MOV A,#'O' LCALL DISPLAY

    correct me if i am wrong.

Children
No data