Author Topic: Level Translator for AVR and microSD  (Read 3188 times)

0 Members and 1 Guest are viewing this topic.

Offline giorgos3924Topic starter

  • Newbie
  • Posts: 7
Level Translator for AVR and microSD
« on: November 15, 2014, 11:32:10 am »
Hello!
I want to connect a microSD card in my AVR ATMEGA32 which its operate with 5V.
The microSD card i think that operates with 3.3V so, it is must to connected via bidirectinal level translator.

I found this TI's translator 1-BIT BIDIRECTIONAL VOLTAGE-LEVEL TRANSLATOR
FOR OPEN-DRAIN AND PUSH-PULL APPLICATIONS

which its accepts any voltage from 1.65V to 3.6V in input A, and 2.3V to 5.5V in input B.

My matter is: Can i direct wire the chip's I/O between AVR and microSD?
or it's only, as the datasheet say, "for open-drain and push-pull applications"?
 

Offline paulie

  • Frequent Contributor
  • **
  • !
  • Posts: 849
  • Country: us
Re: Level Translator for AVR and microSD
« Reply #1 on: November 15, 2014, 12:42:59 pm »
Make your life easy and run the AVR from 3.3v so no conversion is needed. 5v is an archaic holdover from the early Ardunio days. If you are unable or unwilling to do that then a couple 1k resistors will suffice.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Level Translator for AVR and microSD
« Reply #2 on: November 15, 2014, 01:04:19 pm »
Quote
Can i direct wire the chip's I/O between AVR and microSD?

Fairly easy from the avr/output to the microsd/input.

The other way around will depend on the devices used.
================================
https://dannyelectronics.wordpress.com/
 

Offline giorgos3924Topic starter

  • Newbie
  • Posts: 7
Re: Level Translator for AVR and microSD
« Reply #3 on: November 15, 2014, 01:55:50 pm »
Make your life easy and run the AVR from 3.3v so no conversion is needed. 5v is an archaic holdover from the early Ardunio days. If you are unable or unwilling to do that then a couple 1k resistors will suffice.
in my circuit i have a lot of devices on I2C bus which operate at 5V. Therefore, if i make the AVR to work at 3.3V i think that something will fail.
 

Offline hans

  • Super Contributor
  • ***
  • Posts: 1726
  • Country: 00
Re: Level Translator for AVR and microSD
« Reply #4 on: November 15, 2014, 04:53:30 pm »
If possible, avoid those self-sensing direction chips. They are prone to oscillating when low pull up (even <10k) resistors are used because they are confused which direction the data is flowing.

I2C is an exception in that most, if not all, devices are open-drain. If the digital inputs on all 5V slaves are TLL you should be good by running the AVR and pull-ups on 3.3V. Devices can only pull the bus to GND via their open-drain switch. They should not power a bus signal to 5V. The open-drain is required because some slave devices want to do clock-stretching.
« Last Edit: November 16, 2014, 11:10:33 am by hans »
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Level Translator for AVR and microSD
« Reply #5 on: November 15, 2014, 09:12:53 pm »
Edit: Forgot to mention that this is for I2C up to 400 Kbits/s not sure how it will work on data faster than that.

Old Philips app note:

http://www.adafruit.com/datasheets/an97055.pdf

New one from NXP (formerly Philips) but I think the old one has more information :)

http://www.nxp.com/documents/application_note/AN10441.pdf
« Last Edit: November 15, 2014, 09:29:14 pm by miguelvp »
 

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 3076
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: Level Translator for AVR and microSD
« Reply #6 on: November 16, 2014, 01:49:10 am »
I have no problems with an SD Card just with zener diodes (and resistors) to limit to 3.3v, of course, your mileage may vary, but works for me.
~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 

Offline paulie

  • Frequent Contributor
  • **
  • !
  • Posts: 849
  • Country: us
Re: Level Translator for AVR and microSD
« Reply #7 on: November 16, 2014, 01:54:15 am »
Turns out extra zeners are unnecessary. AVR have them built in. As mentioned earlier 1k resistors are all thats needed. No problem up to couple Mhz.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf