Re: 5V to 3.3V communication
Quote:
Select 5V from PIC needs to be 3.3V I think
CLK 5V from PIC needs to be 3.3V I think
Yup. You should use more than just a series 1K resistor, though.
You could use a voltage divider on the 5V PIC outputs...say 2K series/3K shunt to gnd. That should work ok at slow speeds.
You could also use a pullup resistor to 3.3V and drive the outputs as open-drain, but that's not compatible with SHIFTIN.
Quote:
Data 3.3V from MAX should be OK
For the input pin be sure to pick a pin that has TTL level inputs (PORTA and PORTB) and not ST levels, otherwise the 3.3V output from the MAX won't meet the input Vih spec.
Re: 5V to 3.3V communication
Hi,
There are bidirectional level shifter ICs available and you can do it with small MOSFETs and such but for a one-off I'd just use a voltage divider on the 5V to 3.3V signal and nothing on the 3.3V to 5V signal. (Doing that right now in my desk (PIC is 3.3V, device is 5V).
The MAX31855 logic high is min Vcc-0.4 so if you run it at 3.3V it'll put out 2.9V which is well above the 2.0V threshold of the PIC if you run that at 5V and using a non Schmitt trigger input...
/Henrik.
Re: 5V to 3.3V communication
Thanks guys,
I will take that and run with it. I think I'll bread board with the 2k/3k then look at a level shifter IC's' on the finial board work.
Thanks again!
Wayne
1 Attachment(s)
Re: 5V to 3.3V communication
Check out at Adafruit's breakout board. They have a nice solution: https://github.com/adafruit/Adafruit...breakout-board
Why not powering your PIC with 3.3V? That saves a lot of trouble.
Attachment 8155
1 Attachment(s)
Re: 5V to 3.3V communication
Rather than buying expensive chips why not make your own with this app note:
Re: 5V to 3.3V communication
Quote:
Originally Posted by
Dave
Rather than buying expensive chips why not make your own with this app note:
The Adafruit board is quite pricey but look how they did the level shifting. I did use this trick with an ESP8266, worked fine.
Re: 5V to 3.3V communication
I also used it for interfacing to some LINX RFM-433 receivers and LINX TFM-433 transmitters in my Hopps moisture monitoring system.
Re: 5V to 3.3V communication
I've used THIS on a couple of projects and love 'em.
Re: 5V to 3.3V communication
Quote:
Originally Posted by
andywpg
I've used
THIS on a couple of projects and love 'em.
Yes, works fine for me too. Do you want a second source?
Re: 5V to 3.3V communication
Thanks guys for all the tips. Yesterday I ordered an Adafruit breakout board with the MAX31855 on board with level shifting. I will see how well this works and follow their techniques. Looks like I could have saved a few bucks if I had checked this thread yesterday. Michel, if I power the f1936 at 3.3 I will have to buy a 3.3 LCD. Andy, the Sparkfun looks like the good solution to have in your toolbox for quick setups and they supply the schematic with part numbers, I’ll pick up a couple at that price!
Thanks,
Wayne
Re: 5V to 3.3V communication
Quote:
Originally Posted by
MichelJasmin
Thanks - good price.
Re: 5V to 3.3V communication
Any reason to not just run the PIC at 3.3V?
Re: 5V to 3.3V communication
Quote:
Originally Posted by
Charlie
Any reason to not just run the PIC at 3.3V?
In my case, some of the ic's I was using can ONLY run at 5V. The only thing that could only run at 3.3V was the XBee radio. So it was simpler to run everything at 5V and convert to talk to the XBee.