host-ch32: rest PB10 as input pull-up, adapter-side mark source - #64
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bus wire previously rested as AF open-drain, leaving idle mark entirely to a DUT-side pull-up - a bare adapter could not hold the wire high. PB10 now rests as input pull-up, putting the V305's internal ~40k on the wire whenever the adapter is not driving. The USART receiver samples the pad fine in input mode under HDSEL, and every transmission including the break happens inside a claim window (bus_drive push-pull), so the input rest state never eats outgoing bits.
The ~40k holds idle mark only; a long multi-drop harness still wants the external bench 10k.
Benched on a WCH-LinkE adapter against a dev-v006 board at 1M: discover, 5/5 pings, status, register clear - crc_fail 0, framing_drop 0.