3.3 volt TTL I/O with BS2P
Michele
Posts: 23
I got my Netburner SB70-LC board running as a replacement for my PINK that expired. I can communicate with it over the net, but not from my BS2P. I'm using UART0 on the SB and flashed it with the latest Parallax firmware.
All I can think of is that the SB70-LC is a 3.3 volt device and the BS2P is 5 volts. I was under the impression that the logic threshold for High was 2.0 volts for both 5 and 3.3 v. TTL so it should just work.
So is this true and I have some other problem going on? If the BS2P won't recognize a 3.3 volt input as high, what's the easiest way to get my BS2P and SB70-LC talking to each other? Any help would be greatly appreciated.
All I can think of is that the SB70-LC is a 3.3 volt device and the BS2P is 5 volts. I was under the impression that the logic threshold for High was 2.0 volts for both 5 and 3.3 v. TTL so it should just work.
So is this true and I have some other problem going on? If the BS2P won't recognize a 3.3 volt input as high, what's the easiest way to get my BS2P and SB70-LC talking to each other? Any help would be greatly appreciated.
Comments
When the Stamp outputs are at 5V (4.7V usually), this is well above the threshold for the static protection diodes on 3.3V inputs, these will conduct and something downstream will be damaged.
When connecting 3.3V inputs to 5V outputs, you normally use a 1K or 2.2K series resistor to limit the fault current to something the 3.3V inputs can handle.
There's a permanent thread in the Propeller forum that discusses this issue. Have a look here.
I usually use a voltage divider circuit to drop the voltage. Are there some guide lines as to which way is best? Does it depend on whether it is signal versus a load?
Thanks,
Ron
So I don't know if I cooked UART0 from my first try where I was running without the resistors or if the SB70LC was configured to respond to UART1 rather than 0 all along. And I can't find a copy of the original Netburner firmware that let me set various parameters of those two ports. So I guess I'll just continue using UART1 and consider myself lucky. Plus I got a nice lesson in 5 <-> 3.3 volt interconnectivity. And the Propeller thread on this subject was great. Thanks Mike for the pointer and for all your help.
I believe the PINK firmware only supports UART1. The Parallax PDF shows the proper connections using pins 3 and 4 (Debug port)
I think I saw that somewhere on the NetBurner web site.
EDIT: It might be selectable with the IPSETUP program - see DOC
So, bottom line is no harm done, and I was able to replace my old 5 volt SB70 with a 3.3 volt SB70LC (which is $20 cheaper) running the latest Parallax firmware. All I needed was an LM317T regulator to get the 3.3 v. Vcc and two 1K resistors between the serial lines. Hopefully this thread may be of use to someone else trying to use the SB70LC.