??? 11/20/04 17:20 Read: times |
#81584 - To my helpers Responding to: ???'s previous message |
I did lower the baud rate , the baud now is only 2400.
I 've tried to test the communication again with a very simple code but that problem still happens: Here is the MCU code: ORG 0 MAIN: MOV SCON,#42H MOV TMOD,#25H MOV TH1,#-12 ;BAUD=2400BAUD SETB TR1 SETB TR0 MOV R2,#66 MOV R3,#77 MOV R5,#88 MOV R6,#99 DATA_OUT: JNB TI,$ CLR TI CLR TR1 SETB TR1 MOV SBUF,R2 JNB TI,$ CLR TI CLR TR1 SETB TR1 MOV SBUF,R3 JNB TI,$ CLR TI CLR TR1 SETB TR1 MOV SBUF,R5 JNB TI,$ CLR TI CLR TR1 SETB TR1 MOV SBUF,R6 JMP DATA_OUT END ----------------------------------- Visual reads firstly very correctly 66 77 88 99 and then sometimes 77 88 99 66 --------------------------------- I use Max232 and no opto to couple the board with PC. After receive the data from buffer I did clear the buffer by setting Mscomm.inbuffercount=0 In the worst case, I will redesign the board to use handshaking but would you please give me some info about that technique. Thanks a lot for all of your help |
Topic | Author | Date |
Need help... MCU and PC communication | 01/01/70 00:00 | |
MCU & PC communication | 01/01/70 00:00 | |
I have the same problem | 01/01/70 00:00 | |
Need more help from this | 01/01/70 00:00 | |
I use ascii | 01/01/70 00:00 | |
Reply to Jose' | 01/01/70 00:00 | |
Fix the problem | 01/01/70 00:00 | |
To my helpers | 01/01/70 00:00 | |
Handshaking... | 01/01/70 00:00 | |
RETI | 01/01/70 00:00 | |
ascii ? | 01/01/70 00:00 | |
Handshaking and More !! | 01/01/70 00:00 | |
Delays | 01/01/70 00:00 | |
Thanks to all my helpers, problem solved | 01/01/70 00:00 | |
Delays | 01/01/70 00:00 | |
Delays | 01/01/70 00:00 | |
UART, mode 3 | 01/01/70 00:00 | |
The 9th bit is the parity for VB | 01/01/70 00:00 | |
send data from mcu to pc | 01/01/70 00:00 | |
Yes, but the 9th bit is the parity in VB | 01/01/70 00:00 | |
9th bit lost by Windoze? | 01/01/70 00:00 | |
9th bit is supported | 01/01/70 00:00 | |
32-bit MS Windows![]() | 01/01/70 00:00 |