- Are both the MMC card and the PIC running at 3.3V? If not, than you will have to add voltage level converters.
The pic this working at 5v, for that reason use the following circuit:
Quote:
- Do you have pull-up resistors (100k) on Data_in and Data_out?
Din of the pic, doesn't have resistance pull-up
Quote:
- Note that the data lines are crossed; MMC_DO of the PIC must be connected to Data_In (pin 2) of the MMC. MMC_DI of the PIC is connected to Data_Out (pin 7) of the MMC.
that part this well
According to what you tell me, I should also place pull-up to the pic?
Picmouse
Joined: 20 Mar 2007 Posts: 7
Posted: Wed Mar 21, 2007 9:16 am
Place resistance pull-up in Din of the PIC and I don't work. That another test can make?
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Thu Mar 22, 2007 5:13 am
The pull-up on Din is required as the MMC/SD cards power up in an Open-Drain mode. After initialization the outputs change into a Push-Pull mode where the pull-up is no longer needed.
Which compiler version are you using? I tested v3.249 with an SD card and it passed the initialization without a problem (though my hardware is all running at 3.3V).
I suspect your problem is in the hardware 5V to 3.3V conversion. An MMC card expects an input LOW voltage of maximal 0.25*Vdd (= 0.825V). With the voltage drop over your 1N4148 diode added to the output low voltage of the PIC this is a critical factor.
For a quick test you could replace the diode/resistor combination by a voltage divider (for example 1k8 with 3k3).
The 3.3V Do from the MMC to the PIC should be OK as you connected this to RB0 which is one of the few TTL inputs. TTL inputs of the PIC will accept anything above 2.0V as a logic high.
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
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