Skip to content

Commit

Permalink
alters the position of 'read' bit markers
Browse files Browse the repository at this point in the history
tweaks the 'makrer' labelling of bits that are 'read' to be just before the falling edge of the clock (where the are actually read) rather than on the rising edge - see issue saleae#2 of the original Saleae analyser
  • Loading branch information
bernardfitch committed Aug 16, 2022
1 parent 902ac1d commit 8a57628
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SWDTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ void SWDOperation::AddMarkers( SWDAnalyzerResults* pResults )
pResults->GetSettings()->mSWCLK );
// read
else
pResults->AddMarker( bi->rising, bi->state_rising == BIT_HIGH ? AnalyzerResults::One : AnalyzerResults::Zero,
pResults->AddMarker( (U64)(bi->rising + ((bi->falling - bi->rising) * 0.8)), // just before the falling edge [captain]
bi->state_rising == BIT_HIGH ? AnalyzerResults::One : AnalyzerResults::Zero,
pResults->GetSettings()->mSWCLK );
}
}
Expand Down

0 comments on commit 8a57628

Please sign in to comment.