Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 08:46 03 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : 100 pin MMX and Rictech SD card board

Author Message
cdeagle
Senior Member

Joined: 22/06/2014
Location: United States
Posts: 261
Posted: 04:00am 02 Aug 2017
Copy link to clipboard 
Print this post

I'm trying to hook up and configure the Rictech SD card board to a 100 pin MMX. I've tried several pin combinations guided by some of the Micromite schematics without any success.

Any help is appreciated. Thanks, David
 
cdeagle
Senior Member

Joined: 22/06/2014
Location: United States
Posts: 261
Posted: 08:59am 02 Aug 2017
Copy link to clipboard 
Print this post

From what I've read in Geoff's MMX user manual, the SD card uses the SPI2 interface. I've tried the following configuration but still get "SD card not found" error.


SD Card MMX pin
------- -------

CS 81

MOSI 72

CLK 10

MISO 66

CD 59

WP no connection



I'm configuring the card with (similar to the SnadPIC)

OPTION SDCARD 81, 59




 
cdeagle
Senior Member

Joined: 22/06/2014
Location: United States
Posts: 261
Posted: 09:07am 02 Aug 2017
Copy link to clipboard 
Print this post

I've also tried OPTION SDCARD 4, 2 using the hookup shown in the schematic for Peter's 100 pin MMX navigation board.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8592
Posted: 11:28am 02 Aug 2017
Copy link to clipboard 
Print this post

Correct wiring for the 100-pin is as follows

MOSI - pin 66 (Master out- Slave in so SPI2OUT)
MISO - pin 72 (Master In - Slave out so SPI2IN)
CLK - pin 10

CS anything
CD anything

 
cdeagle
Senior Member

Joined: 22/06/2014
Location: United States
Posts: 261
Posted: 11:53am 02 Aug 2017
Copy link to clipboard 
Print this post

Thanks Peter.

It appears I need to swap pins 66 and 72.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9066
Posted: 03:38pm 02 Aug 2017
Copy link to clipboard 
Print this post

On the E100, CON10 uses the following configuration:

WP is pin 17
CS is pin 52
CD is pin 53

Therefore, you need to use the following command to configure an external SD card on CON10:

OPTION SDCARD CS_pin, CD_pin, WP_pin
OPTION SDCARD 52,53,17

The SD card on CON10 has different control pins to the #1 card, so that you could use two different SD cards at the same time. I think this is how Geoff described it.

Apologies for the confusion - this obviously needs to be documented somewhere.
Perhaps if Geoff sees this thread, he could add it to the MMBASIC Advanced Manual?

EDIT: WHOOPS! I see you are talking about the 100-pin MMX, not the E100 - sorry. You can ignore all the above in your case, but I still think that the 2nd SD card on the E100 board is not documented - not that I could find anyway, so this probably still needs to happen.Edited by Grogster 2017-08-04
Smoke makes things work. When the smoke gets out, it stops!
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 1985
Posted: 07:49pm 02 Aug 2017
Copy link to clipboard 
Print this post

Hello David, it probably won't help much but I have a MMX100 (nav version) and my SDCard works fine with

OPTION SDCARD 4,2

...but I think you have already tried this - have you traced the connections on the board? Maybe you are unlucky and have a faultEdited by CaptainBoing 2017-08-04
 
cdeagle
Senior Member

Joined: 22/06/2014
Location: United States
Posts: 261
Posted: 12:20am 03 Aug 2017
Copy link to clipboard 
Print this post

Thanks everybody.

I will check the traces on the Rictech board.

There are several passive components on this board. An LED with (I assume) current-limiting resistor, a second resistor and a 100 nF capacitor.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024