This is a multi-part message in MIME format. --------------050205010303010901080905 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > In case you are wondering what I am up to, I'm just looking for general > purpose ways of doing this. I like to play with banks of LEDs, motors, > relays, VFD displays, ect and always seem to run into the problem of > neefing to multiplex a lot of source currents The last time I needed to do high side swtiching of a voltage higher than the pics supply (though neither the voltage or the current was all that high current arround 150ma voltage arround 10-15V) I used a circuit with two bipolar transistors one NPN one PNP (the transistors I used were a 2N3904 and a 2N3906 but the circuit should work with pretty much any bipolar transistors). A small schematic is attatched. Suitable resistor values need to be calculated from the currents and voltage conditions the circuit needs to operate under and the current gains of the transistors. Calculation method (note: when doing this calculation you should use the minimum values for Hfe under the conditions you are operating as the values in the equations and you should round risistor values down to get real values. V+ IR2 = ILOAD / HFET2 VR2= Vsupply-1 (the 1 needs to be increased a bit if either transistor is a darlington) R2=VR2/IR2 IR1 = IR2/HFE2 VR1 = VLOGIC-1 R1 = VR1/IR1 This circuit as it stands is not very power efficiant especially if the load is variable but it should be pretty easy to design a mosfet based variant that is (should just be a matter of doing away with the existing resistors and adding a pullup). --------------050205010303010901080905 Content-Type: image/png; name="highsidedrive.png" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="highsidedrive.png" iVBORw0KGgoAAAANSUhEUgAAAMgAAADIAQMAAACXljzdAAAABlBMVEUAAAD///+l2Z/dAAAD QElEQVR42t3XMWvbQBQA4HMVqgwGpXhxQCBK/0BClxiML7R/JCWDV2czxEQugWYpzdClgVL9 kQ42HrIUZ+6m1CYae84NleC4653kEEX3HiQlKWkFiRM+dPf83t07iSjsIg8kQtHiwxJ5EP6B 9Fr8+bwdRVYE7Xidk9g/o7Yk37m/+x6SOOOd7rfElhPWMnIR2qLWMfl5MtPzMDs7k7jp6Ngg Ye2G/j4pnFGaqAyVMSqTO9TnMYjQ/0TqHBRz1aDRpBEPmSdCI/g3JUCF/l8icQkRyQR2TzpA pY2MJvtNhUkNEdF3UMHvIZgMSIgKJVsUloBsBJBskID/OoZkUymuziB5icoLI+BorpEAk6uy 3pBUp42LEJC4ocXuiakrHRM18yzRrWALlIwRVSp2WfRPh2JCA1SOUJkgIinDJExDTMC9kIvC JUDlGJVTVBJAFqjwexWWJwYUBxOJSpqvjBkgo6s4qlIMBkkaYDJSqHiYxMWGB0TF7jLjZUld c/Q7yyrdEGeof08AyfjXUEkPFJ1/FiAiiliq87jiQJ+++Z9VSeVSRGW02eIqtqpwU5br5VkW vTRlAMliGKpS4y9JpoUpQPLrHJWjZQ24JR4m+Q4FJW9rfJx2GlXJE8aHzHeqkpeZ++GnWVXy rPFOb92a56iQHUv0k1NgpHsCiGnJfrdpzaPMQyUfxnZsyqSUj9mXhi3X5QTuASWqliEXc8JH ysVEeFVxx3O/fupGpRZaiHSGcb3+1IkyVRGx7+9OB4M9QFSnOx2ILBL3Ivu+kT1bdGzJtC4d W/T3Sc7qygUESfVDCb27SLq4m5idTWeQ6DUt6Ckkb414kOg9n3YCUFqKbYWQkJa67OvDZALK Gy2HkPx4rdPwsSJckk114UWK8lsLq5Nnau4GgKyurZGVJ5Zkio3WCFnZtiQt3pPEjiX5K9Sm Ej1onu3hUoahJVSPRgFZNfIKyHXafKd7MnFtyZofjBwC4k+13CzBUj7rXS9CSIQWGYJrR5lm wf+KlE/sRySylrdDSIh5pAq43Xvl4FLL9Yt2WUzvHREPEeEA89RK72q3lX4hiS35PJK4qECx 9TxkngNMkOs2kiSYxC4mDJX7je1h5TdKlRL8LriioAAAAABJRU5ErkJggg== --------------050205010303010901080905 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --------------050205010303010901080905--