CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

MMC

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
guest
Guest







MMC
PostPosted: Fri Nov 25, 2005 10:52 am     Reply with quote

Hello,
Can anyone tell me where to get info on using an MMC. A good place to start ( I guess) would be a manufacturer data sheet.

Thanks in adavance
JBM



Joined: 12 May 2004
Posts: 54
Location: edinburgh, Scotland

View user's profile Send private message

PostPosted: Fri Nov 25, 2005 11:34 am     Reply with quote

Look in the code library. It makes a good start.

Glad to see you did a thorough search before posting.....
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Fri Nov 25, 2005 5:17 pm     Reply with quote

Check the Atmel MMC card datasheet www.atmel.com/dyn/resources/prod_documents/DOC3257.PDF and also take a look at the datasheet for the Crownhill MMC adaptor, which shows how to commect MMC to the 5V system http://www.compile-it.com/support/crndatasheets/MMC%20ADAPTER.pdf. Although I would use 5V-tolerant buffers instead or voltage dividers.

By the way, if you find a good socket for the MMC card, please let us know. I was looking for one the other day, but couldn't find anything that's easy to solder.
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sun Nov 27, 2005 10:13 pm     Reply with quote

kender wrote:
Check the Atmel MMC card datasheet www.atmel.com/dyn/resources/prod_documents/DOC3257.PDF and also take a look at the datasheet for the Crownhill MMC adaptor, which shows how to commect MMC to the 5V system http://www.compile-it.com/support/crndatasheets/MMC%20ADAPTER.pdf. Although I would use 5V-tolerant buffers instead or voltage dividers.


The voltage divider approach works well however there is a problem with the posted solution. The 3.3V SDI input to the (SDO from the MMC) is not good enough. It may work but is outside the specifications for the port. For example, the minimum high voltage of the SDI input on a PIC18F252 is 0.7xVDD = 3.5 volts which is above the 3.3 volts from the MMC card. If you want to use the SPI port to talk to the MMC (and who wouldn't) then you need to use an external buffer with TTL level inputs. Interestingly, if you were to implement a SW SPI interface using PortB on the same PIC then you would not have a problem as these inputs are TTL inputs with a minimum input high voltage of 2.0V with +5V VDD.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!


Last edited by asmallri on Mon Nov 28, 2005 8:49 am; edited 1 time in total
Matze



Joined: 28 Nov 2005
Posts: 2
Location: Saarland, Germany

View user's profile Send private message

PostPosted: Mon Nov 28, 2005 8:01 am     Reply with quote

Hello,

on http://www.ulrichradig.de -->"avr - projekte" --> "MMC - SD" is a good explanation for mmc/sd carts and µC
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Mon Nov 28, 2005 8:58 am     Reply with quote

Matze wrote:
Hello,

on http://www.ulrichradig.de -->"avr - projekte" --> "MMC - SD" is a good explanation for mmc/sd carts and µC


It helps if you can read German :-)

The "premium" interface is a bit of an overkill with 20 components plus the power supply but I have no doubt it will do the job however the minimal implementation has the same problem (if used with a PIC's SPI port) as mentioned previously.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Matze



Joined: 28 Nov 2005
Posts: 2
Location: Saarland, Germany

View user's profile Send private message

PostPosted: Thu Dec 01, 2005 6:57 am     Reply with quote

On this page are circuit diagrams and links to datasheets.......

Datasheet from Hitachi:

http://www.ulrichradig.de/site/atmel/avr_mmcsd/pdf/hitachi_hb28b128mm2.pdf


MMC Bus Timming

http://www.ulrichradig.de/site/atmel/avr_mmcsd/pdf/MMCSDTimming.pdf

at the end is a connection table for mmc cards......it´s god for the beginning on this theme
_________________
----
cu Matze
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Open-drain level translators for the MMC card
PostPosted: Tue Dec 13, 2005 4:16 pm     Reply with quote

My question is somewhat related to the original one. I’m designing hardware for the MMC card for the first time. PIC and most of my system is powered by +5V, and the MMC has its own +3.3V regulator. Of course there need to be logic level translators between the MMC and PIC. I have found some level translators, which are 5V-tolerant and have open-drain outputs. SN74LVC3G07 My plan is to use 2 of these chips, power both of them with +3.3V and pull the outputs to their respective output voltages: SDI to +5V, SDO, CS#, SCK to +3.3V

My questions are:
- Do you think these level translators will work?
- How can I estimate the maximum bit rate?
- What level translators have worked well for you in the past?

Thanks!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group