Interfacing 3-Volt Device to Stamp2
Mikerocontroller
Posts: 310
· I'm planning on interfacing a 3-volt FM chip to the Basic Stamp2.· I suppose I should take the 5 volt requlated Stamp output and feed it into a 3-volt voltage requlator.· That takes care of the supply.· How about interfacing the logic levels?· I'll be using a 3 wire SPI interface.· Do I need a level shifter chip or can I use discrete components?·· Better yet, a·low parts count·solution·for both power supply and level conversion?
Comments
How much current does the 3-volt FM chip require?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
An optoisolator would work as well.... both depending on your data speed.
If you want to use discrete components, they're small enough and available in SMT, might even be some IC transistor packages that would save some space as well.
Anyway, there are two circuits here, one is a 3.3V transistor voltage follower that functions as a voltage regulator that uses a regulated 5V input as it's reference via a voltage divider. The 3.3V output should be good to at least 100mA. The other circuit functions as a bi-directional voltage level shifter. At any given time at least one side (the receiving side) of the level shifter should be made an input.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.