{"id":2313,"date":"2008-08-13T02:31:19","date_gmt":"2008-08-13T06:31:19","guid":{"rendered":"http:\/\/www.nearfuturelaboratory.com\/?p=2313"},"modified":"2017-08-18T18:06:22","modified_gmt":"2017-08-18T18:06:22","slug":"pca9306-level-shifter","status":"publish","type":"post","link":"https:\/\/blog.nearfuturelaboratory.com\/2008\/08\/13\/pca9306-level-shifter\/","title":{"rendered":"PCA9306 Level Shifter"},"content":{"rendered":"
<\/p>\n Persistent nagging problem \u2014 shifting logic levels between devices that are fabbed with different technologies so their voltages end up being different. Digital circuits “trigger” based on voltage levels \u2014 a logic 1 or high signal is relative to the electrical specifications of the device and the fabrication process of the silicon. (A techie diagram is available here.<\/a>) It’s not a new problem, but one I seem to be coming across more and more as I use the Arduino to do quick sketches of project ideas, or to stand-in for a more embedded solution that might use another of the Atmel 8-bit devices later on when the design and details are more refined.<\/p>\n I’ve tried a bunch of things, including the kind of canonical reference circuit from Philips<\/a> that uses the BSN20 MOSFET. Sparkfun has a neat little breakout board<\/a> using a MOSFET, the BSS138<\/a>. Same principle, built out for you by the fine folk at Sparkfun.<\/p>\n While poking around some more what cause of this PSX project where I have an Arduino trying to talk to a Parallax Propeller, I found reference to a single-chip solution from TI that’s called a PCA9306, which is that small guy up in the photos above. (Just a hair smaller than an 8-pin SSOP package, which means that it was too small to fit on this SSOP break-out \u2014 the pins don’t reach the copper, so I had Igor do some hand work to get that to take hold. Looks like it works fine. It only requires four pull-up resistors to manage current sink, and a current limiting resistor for the enable input, as well as the usual power decoupling capacitor. I did a quickie test, not quite using the right values for the pull-ups, so with that allowance, I pretty much got the bidirectional level translation I’ll need to allow a 5 volt Arduino talk to the 3.3v Propeller.<\/p>\n Here it is. Top trace is the SCl from the Arduino, bottom is 3.5v going into the Propeller. The 3.5v is a bit high, mostly because of the wrong values for the pull-ups on that side, and the fact that the Propeller is basically inert and not sourcing current across the resistor voltage drop. (I didn’t load my code onto the Propeller for this quick test.)<\/p>\n","protected":false},"excerpt":{"rendered":" Persistent nagging problem \u2014 shifting logic levels between devices that are fabbed with different technologies so their voltages end up being different. Digital circuits “trigger” based on voltage levels \u2014 a logic 1 or high signal is relative to the electrical specifications of the device and the fabrication process of the silicon. (A techie diagram … Continue reading PCA9306 Level Shifter<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[22,78,84,139,144],"tags":[1178,594,677,821,1092],"yoast_head":"\n<\/a><\/p>\n
<\/a><\/p>\n
\n
\n<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n