??? 11/20/04 08:33 Read: times |
#81558 - Need help... MCU and PC communication |
Hello everyone,
I'm doing an 12bit DAQ card and connect to PC via RS232.Everything works fine except for the communication between MCU and PC. The data from ADC is read into MCU as 4bytes and I transmit those set of 4 bytes to PC. At the PC side, I use MScomm with properties: mscomm1.rthreshold=4 (I did try with 1) mscomm1.inputlen=0 (I did try with 4) The problem is sometimes, very randomly, the PC dont read the data in the correct set of 4 bytes. In details , for example, I transmit 2 set of 4 bytes from MCU (A4 A3 A2 A1 B4 B3 B2 B1 ), for most of the times the PC will read the data correctly but sometimes it comes out A3 A2 B4 B3 OR A1 B4 B3 B2)... It occurs randomly. I've tried to set other properties for MScomm but that still happen, very randomly. Please help me about this. This is the only obstacle for my final year project. 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 |