Bug 1678 - UART transmission is corrupted when using falling edge trigger
Summary: UART transmission is corrupted when using falling edge trigger
Status: RESOLVED INVALID
Alias: None
Product: PulseView
Classification: Unclassified
Component: Triggers (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-29 04:52 CEST by Ryan Govostes
Modified: 2021-06-23 18:53 CEST (History)
2 users (show)



Attachments
example capture (494 bytes, application/zip)
2021-04-29 04:52 CEST, Ryan Govostes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Govostes 2021-04-29 04:52:16 CEST
Created attachment 731 [details]
example capture

Attached is a capture of a UART transmission which used a falling edge trigger on the D0 channel.

PulseView started recording samples when the trigger condition occurred, which would represent the UART start bit.

However, if you apply the UART decoder to this channel, the start bit is not properly recognized, which leads to incorrect decoding of the first octet. This is because the decoder looks for the falling edge, but the first recorded sample is already low voltage.

It would be useful if I could specify how many samples to capture prior to the trigger.
Comment 1 Ralf 2021-04-30 18:56:57 CEST
There is an option to set the initial value of a PD.
It can be enabled by Settings->Decoders->Allow configuration of initial state

After enabling the option you can specify the initial value in the PD settings
Comment 2 Gerhard Sittig 2021-06-23 18:53:10 CEST
Known and valid behaviour. The capture does not contain the start condition 
of the UART frame, which is why the decoder kicks in late. There are the 
options to properly setup the acquisition (capture ratio) or to use the 
workaround of specifying initial levels (which are motivated by this very 
setup as described above). So there is no issue. Am closing the report.