View previous topic :: View next topic |
Author |
Message |
moryoav
Joined: 23 Feb 2014 Posts: 35
|
Help to voltage regulator with communication |
Posted: Sat Apr 12, 2014 2:10 pm |
|
|
I'm using pic18f2553 and i want to connect a cellular module that work with 4V via rx-tx. I'd like to know if putting a step up/step down voltage regulator
between them will interfere and ruin the data transmission. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9293 Location: Greensville,Ontario
|
|
Posted: Sat Apr 12, 2014 4:19 pm |
|
|
You should post the cellular module part number or a link to its datasheet so we can look and see the specs. It's important to know if the interface is RS-232,TTL, or 'something' else.
4V seems odd to me, I assume all cell devices are '3 volt' dvices....if so, the quick and easy solution is to use the 'L' version of the PIC unless that PIC can operate at 3 volts. If you read the PIC data sheet there will be 'specs' and 'charts' covering the allowable operating voltages vs. speed. It is possible that PIC will run fine at '4 volts'.
hth
jay |
|
|
moryoav
Joined: 23 Feb 2014 Posts: 35
|
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9293 Location: Greensville,Ontario
|
|
Posted: Sat Apr 12, 2014 7:26 pm |
|
|
You've got the 5V PIC---3V peripheral problem. NOT the first one here having it either.
Using the 'L' version PIC would be the best solution....
You can use a 'logic level translator'. Sparkfun have them or you can make your own using FETs or a 'chip' designed for it.
Do a little 'googling' to see what other have done, what's cost effective for you,board layout, etc.
I understand you can't change the PIC which is too bad as the 'L' version is easier to do, less chance of errors in board layout.
hth
jay |
|
|
moryoav
Joined: 23 Feb 2014 Posts: 35
|
|
Posted: Sun Apr 13, 2014 2:38 am |
|
|
leaving everything said aside, does putting a step up\down between the cellular module and the PIC will cause any problems in the data sent and received from both sides? |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Sun Apr 13, 2014 4:44 am |
|
|
The recommended voltage supply for your unit is 4V, but internally this is regulated down to 3V. See table 2-4 of your modem's datasheet. So yes, you are having the common 3V to 5V problem and things are not going to work without you doing some extra work on the digital interface.
Short answer is that without precautions the 5V PIC voltage on the I/O pins will damage your modem. The other way around, the 3V output of the modem is not high enough to trigger the PIC inputs.
This problem has been discussed so many times on this forum that I don't want to go here into it again. Do a forum search.
moryoav wrote: | leaving everything said aside, does putting a step up\down between the cellular module and the PIC will cause any problems in the data sent and received from both sides? | I'm not sure what you mean with a 'step up\down'. Do you mean a level conversion on the I/O lines? That should work. Again, search the forums for suggestions on schematics. Note that the PIC uses a Schmitt Trigger input for the hardware UART and SPI inputs, this means not all circuits you'll find on the internet will work. Circuits designed for Atmel AVR and Arduino will fail, search a circuit designed for PIC. |
|
|
|