anasfuad33eng
Member level 1
- Joined
- Mar 21, 2013
- Messages
- 32
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,498
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