A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
> For the binary parts, what about an opto-coupler?
> Kenneth
If the ground is the same, an opto seems like a waste. For 12V to 5V, I'd
just use a voltage divider, perhaps with a clamp diode. Going back the
other way, if you want to turn on a 12V load, it's easiest to ground
switch. Either an NPN transistor or an N channel FET with the PIC driving
the base (through a current limit resistor) or driving the gate directly
should work. If you need a high side switch, there ARE various high side
switch chips available. Failing that, the low side switch described above
could pull down the base or gate of a PNP or P channel device to turn it
on.
For 5V analog to 12V analog, I'd use an op amp with feedback to set the
gain appropriately.
Good luck!
Harold
--
FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
opportunities available!
------------------------------------
to unsubscribe, go to http://www.yahoogroups.com and follow the instructions

(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )