R11 is typically from 220R to 470R
Source, please? The data sheet says something else.
Most of the examples in the datasheet.
Yes, I know. And it will mostly work with 240 ohms in a typical application. But being an engineer, it's best practice to use the limits of a specification to ensure correct operation.
And the limit is "Minimum load current to maintain regulation" (p.6), which is 10 mA(max), 3.5 mA(typ).
TI has the liberty to use typical values for their examples, in this case 5 mA.
But how you get from there to 220...470 ohms is a mystery to me. Sorry.
maybe he meant using 240 ohms and also put external load to make it exceed 10 mA.
but your idea of using 120 ohms as Rtop seems most safe. i don't care how many milli amps will it take too... it's use is very limited and with very low current consumption. having it consume 10 mA or even 50 mA by itself is not worrying me... still adding something like 1k ohm as external load is doable for me. will consume extra 9mA\12mA
taking the idea of parallel resistor feedback:
R top = 120 ohms
for 12v: R bottom = 1032 ohms ~ 1k ohm + 33ohms
for 9v: R bottom = 744 ohms --> to achieve it i need 2660 ohms in parallel with 1033 ohms of above. to get 2660 ohms I can have: 2.2k +470 ohm =~ 2670 ohms which is ok.
switch switches the 2670 ohm resistor or not.
calculating all with Iadj added:
V = 1.25 (1 + 1033/120) + 0.00005*1033 = 12.01 + 0.0516 = 12.061v
V = 1.25 (1 + 744.8312/120) + 0.00005*744.8312 = 9.008 + 0.037 = 9.045v
^ which seems perfect, tiny headroom is good.
No! Bad design paradigm. You have no control over your users, and they will always turn up to be a bigger idiot then you think, make silly mistakes, the switch wears out or other.
And the solution is simple: Use the resistor for the biggest voltage and solder it in permanently, then use the switch to put another resistor in parallel to it.
And also, test things like this on a breadboard before you start soldering.
I wrote this post before you added yours, please read it and check if i got it correctly this time. I think i did, unless a small calculation mistake happened.