Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

60%
+1 −0
Q&A Transceiver board for recovering pulse shape on SWD signals - avoiding bus contention on SWDIO

The SWD clock frequency is 16 MHz. That's ridiculous, turn it down. You don't need anything beyond 1-2MHz for programming, there is nothing during programming that needs a high baud rate, so i...

posted 2mo ago by Lundin‭

Answer
#1: Initial revision by user avatar Lundin‭ · 2026-07-10T08:58:57Z (2 months ago)
> The SWD clock frequency is 16 MHz.

That's ridiculous, turn it down. You don't need anything beyond 1-2MHz for programming, there is nothing during programming that _needs_ a high baud rate, so it can get turned down significantly. 

1MHz might be a good compromise between speed and reliability. Even for some >100kib project it gets erased & programmed more or less instantly anyway. Connecting the cables take far longer.

Debugging close to real-time is another matter, but then you would always keep cables short. And there's just so many scenarios where you need to debug close to real-time with SWD. If your MCU doesn't have instruction trace or you aren't debugging by watching trace, then 16MHz is nonsense for debugging purposes too.
  
> The SWDIO signal, however, is bidirectional

So _don't_ use 74LCV125. Use something like 74LVC245. By using a unidirectional buffer IC instead of a bidirectional, you are only creating artificial problems needlessly. Either part is cheap so part price is not a reason. LVC245 works down to 1.65V so it should be no problem even with 1.8V supply. 

Ground /OE, keep things enabled at all times.

In general, I strongly recommend the [KISS principle](https://en.wikipedia.org/wiki/KISS_principle) for designing hardware and software both.