anasfuad33eng
Member level 1
hi, all when i send 11001100 from matlab to my 8051 kit using usb to rs232 i receive 11100000 my is the error in my code or in max232 connections my code for recieving below:
org 2000h
mov tmod,#20h
mov th1,#0fah
mov scon,#50h
setb tr1
here:jnb ri,here
mov a,sbuf
mov p1,a
clr ri
sjmp here
end
max232 connection in the following picture
org 2000h
mov tmod,#20h
mov th1,#0fah
mov scon,#50h
setb tr1
here:jnb ri,here
mov a,sbuf
mov p1,a
clr ri
sjmp here
end
max232 connection in the following picture