Pages: [1]   Go Down
Author Topic: Questions about Level shifter for RFM12B  (Read 615 times)
0 Members and 1 Guest are viewing this topic.
New York
Offline Offline
Sr. Member
****
Karma: 4
Posts: 366
xronosclock.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I'm integrating RFM12B module to my design and a little over my head, so I would love some advice.
ATMega644p chip is powered by 5V, but I also have 3V supply for SD card (and RFM12B).
I know I need to shift 5V logic from ATMega to 3.3V for RFM12B chip. For this I'm following Adafruit's WaveShield design (SD card part) which uses 74AHC125 level shifter.
Question 1:
Can you tell me if I have i wired correctly (in the lower right corner). I have SS, SCK and MOSI going thru shifter, and then MISO is coming out directly into ATmega chip.  Does this make sense? smiley  
Quesiton 2 (not very important):
Is there an alternative shifter I can use that will work with both SD card and RFM12B? 74AHC125 is not carried by TaydaElectronics where I prefer to get my parts from smiley
Question3:
Adafruit's SD Card design has 10K pullup Resistor on SS line, I don't think I really need one for RFM12B (other SPI designs never mentioned it), am I correct?




* xronos2.jpg (185.91 KB, 1773x1405 - viewed 49 times.)
« Last Edit: March 13, 2013, 11:36:55 am by bratan » Logged

Xronos Clock - A talking arduino based alarm clock is now available. Check out xronosclock.com for pictures, source code, schematics, and purchasing info smiley

Offline Offline
Full Member
***
Karma: 5
Posts: 181
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You could always slow the clock speed and run the atmega at 3.3V.
For the logic level shifter sparkfun sells these
https://www.sparkfun.com/products/8745
and you can see the schematic here
http://www.sparkfun.com/datasheets/BreakoutBoards/Level-Converter-v10.pdf
Logged

Offline Offline
God Member
*****
Karma: 27
Posts: 829
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

CD4050 and 74HC244 are other options.

The way you describe your wiring is correct. You are level shifting outputs from the Arduino to your device, but not the output from the other device since that level (3.3V HIGH) will be less than Arduino (5V) already.
Logged

New York
Offline Offline
Sr. Member
****
Karma: 4
Posts: 366
xronosclock.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

CD4050 and 74HC244 are other options.

The way you describe your wiring is correct. You are level shifting outputs from the Arduino to your device, but not the output from the other device since that level (3.3V HIGH) will be less than Arduino (5V) already.
Awesome, thank you! smiley
Logged

Xronos Clock - A talking arduino based alarm clock is now available. Check out xronosclock.com for pictures, source code, schematics, and purchasing info smiley

Pages: [1]   Go Up
Jump to: