hi this is the logic i wanna implement when i press a button 1 in microcontroller 1 is pressed it must send a data serially say 'D' to microconroller 2 and then when it receives makes a check in microcontroller2 and make an led glow i have tried to do this in proteus but not ablr to get the output i have attached the proteus circuit and the coding is
mic2:
org 0000h
mov a,00h
mov p1,a
mov p3,a
mov TMOD,#20h
mov TH1,#-3
mov SCON,#50h
setb TR1
clr RI
rpt:jnb RI,rpt
mov a,SBUF
cjne a,44h,next
next:setb p3.1
end
mic1:
org 0000h
mov a,#00h
mov p1,a
mov p3,a
halt:
jb p1.0,abb
sjmp halt
abb:
mov TMOD,#20h
mov TH1,#-3
mov SCON,#50h
setb TR1
mov SBUF,#'D'
here: jnb TI,here
ret
here the bug iam facing is neither the optocoupler or the txd pin not showing any response, do help..