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

8051 BLUETOOTH

hye everyone,
here i hve one question based on assembly language which im gonna use in 8051 microcontroller,
my question is how can i modify my code to make the program to function when i send a character to it via bluetooth from android mobile,the led turn ON and when i release the button in my android mobile which means stop sending character,the led turn off?
Here is my code,

org 0000h
mov p0,#09h mov p3,#00h mov p2,#00h mov TMOD,#20h mov th1,#-3 mov scon,#50h setb tr1
here: jnb ri,here mov a,sbuf clr ri cjne a,#'U',one mov p2,#00000001b sjmp here
one: cjne a,#'D',two mov p2,#00000010b sjmp here
end

0