This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
selecting from multiple programming resistors
Post Body

So, I've noticed a great many ICs have some aspect of their respective programming accomplished by a resistor to ground from the Programming Pin.

I've seen this in battery charger ICs, variable output LDOs, and tons of other chips.

I'm still at the beginner level - so what I was wondering is how could one set up a circuit so the user could choose the resistor? Let's say for argument's sake that we're selecting the output current of a battery charger. Let's also say that I want the user to have two options, ergo Resistor A and Resistor B.

I know that I could use an spdt switch, but how could I do this electronically, say from an MCU? I thought of using two NPN BJTs as switches, with each base driven by a GPIO pin and the requisite current-limiting base resistor, switching the resistor's path to Ground.

I also thought about a digital potentiometer...

But then I thought that there must be a better way, and I was curious what you awesome genius folks would have to say on the matter.

While we're at it, what if I gave the user, say, 5 choices?

TIA, and I'm looking forward to learning more, every day, with a little help from youz guyz...

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
17,628
Link Karma
1,023
Comment Karma
16,545
Profile updated: 4 days ago
Posts updated: 5 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 years ago