11-02-2007 04:52 AM
11-02-2007 10:18 AM
11-02-2007 08:27 PM
11-03-2007 01:07 PM
Hi,
If you want to know what the signal is you should measure it with a oscilloscope. But if it is a normal COM port there should be no problem at the PC side.
When you say a '0' as a start bit you are talking about the level at TTL level at the microcontroller ? (and not at the RS-232 side)
When you see a start bit and this takes longer as 1 byte it should be seen as a break. So even if the signal looks like you showed a normal UART would have no problem.
What microcontroller are you using ?
11-05-2007 02:20 AM
hi,
i want to use atmega16 with labview using modbus,
i tried to get frame but i couldn't get valid data i think it is because the speed is different, baud rate i set 9.6 for labview and micro.
what do u think the problem is?
11-05-2007 02:50 AM
Hi again KC,
Thanks for your advise. I came up with something after that.
Pooria is the one who works on micro controller in our team. Like he said, he's using atmega16. I manage to remove "0" signal in previous signal but a new problem occur. We found that the length of the modbus frame is different between labview and micro C even we set the same baudrate. Are we miss anything here? Can you please take a look at the attached file and suggest us anything.
Thanks.
11-05-2007 05:31 AM - edited 11-05-2007 05:34 AM
Hi,
Well if there is really a difference in timing like the picture shows it’s never gonna work.
Forget the ModBus protocol. Try to get your micro so far that it echoes everything that it receives at the RxD input back to the TxD output. That way you can test it with
When the communication works OK you can start working on the ModBus protocol.
I don’t know anything about the Atmega but I see in a datasheet that is has a programmable USART. Do you use this? If so, you probably are using the wrong baudrate or something like that.
Can you try this echo thing ?
btw: don't let you colleague post something that looks like a new issue.
11-06-2007 03:44 AM
11-06-2007 03:52 AM
11-06-2007 04:15 AM
Haha... sorry for ABC question there. I guess my head is spinning here and I don't really know what else should I ask to make it work. hehe... Please take a look at my VI and tell me if it's wrong somewhere.