I am interfacing a 8 bit microcontroller based system with a PC using COM port. I am trying to send data in binary format (conforming to RS232) from the microcontroller to the PC. On the PC side I have a simple application which has to receive data and display it. Later I would enhance the application so that it can store and plot graphs using the data.
I am using MSComm control. The settings for the serial port are 9600 baud rate, no parity bit, 8 bit data and 1 stop bit.
When I am displaying the data received from the microcontroller, I am getting garbage output. I am facing problem in understanding the format in which VB receives the data. E.g. I am repeatedly sending 9 from the microcontroller but I am getting ‘I’ as output on the PC side.
Please provide me information about the format in which data is received by MSComm and how I can overcome the above problem. I feel that I am making mistake in conversion of data format and am not being able to figure it out?
Please help urgently??