I'm messing around with a JTAG/SWD debug probe idea I had, and I want to know if there's an "accepted" way of doing level shifting between the probe controller and debug target.
From what I've seen both on an earlier thread and from other sources, the advice is to go with something like a 74LVC1T45 with a pin to control the direction rather than one that tries to do edge detection itself. What I'm mildly worried about is the number of pins; for JTAG there are 3 outputs and 1 input, while for SWD there is 1 output, 1 input, and 1 bidirectional data line.
This means I'd either need to use 4 individual 1-bit level shifters, or 3 2-bit level shifters with unused bits. I'm reluctant to accept either of these options as optimal, but I can't find anything more affordable (for reference, both options end up costing about 1 USD).
If anyone has advice or a cheaper option, please let me know - otherwise I'm probably just going to bite the bullet and use the 2-bit level shifters.