• 0
Kafe

Waveform, UART protocol: missed first start bit

Question

I am using Waveform 3.13.6 64-bit Qt5.9.7 on a Windows 10. Using the UART protocol decoder, I noticed that the UART protocol decoder does not consider the first bit as a start bit and "loses" the first byte if the trigger starts at the edge of the UART signal. The first two bytes were 0x7e and the picture below shows the problem:

uart0-for-Digilent-forum.thumb.png.52c9a08b607c90634c155d08f14dc9dc.png

My serial port setting is 115200,8,n,1. I have attached the workspace file.

Please advise me, how can I properly the first byte too. 

Thank you in advance

uart0-for-Digilent-forum.zip

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hi @Kafe,

The engineer most familiar with the WaveForms software is out on medical leave, but I wanted to let you know that your question has been seen and we will address it when we can. The reason you are encountering what you are is because the trigger is set to an edge rather than a protocol. I know you can set the protocol trigger to hE7[~] on the Receive line in the top right corner of the GUI next to the Position label (you can double click and edit the UART Trigger value), though I do not know if this will properly address your system.

Thanks,
JColvin

Share this post


Link to post
Share on other sites
  • 0

Hi @JColvin,

thank you for your fast response. Hope it is not serious and we will see your engineer soon.

To your advice: I work on project with a small device, which sends binary packets and uses a framing format similar to PPP (frame begin/end is flagged by 0x7e). So my first attempt was set the trigger to protocol (0x7e[~]) with result as follows:

UART-115200-8-N-1-first-byte-missing-triggered-by-protocol-0x7e.thumb.png.099a4c497d039db03b8f5bd5dd787d6f.png

 As you can see the first byte disappeared without a trace. With the edge controlled trigger, I could better analyze the problem.

Regards,

Kafe
 

 

Share this post


Link to post
Share on other sites
  • 0

Hi @Kafe

Notice that in your capture the trigger position (T0) is on the left of the screen.
The T0 for such protocol value trigger is when it receives the 8th bit, 7.5bit sampling point.
You are visualizing the data after the last bit is received, more exactly staring with the last half bit.

Move the trigger position to the right a bit:
image.thumb.png.1991c0231d464e707f1d9604e85634d6.png

Edited by attila

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now