Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:56 19 Nov 2025 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 : MAKER PI PICO MMBASIC SD Card

Author Message
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 727
Posted: 04:20pm 09 Nov 2021
Copy link to clipboard 
Print this post

Hallo,

is there anybody out there, who can tell me how to asign the correct pins with
OPTION SYSTEM SPI.........
for the on board SD card?



THX





Edited 2021-11-10 02:21 by atmega8
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 727
Posted: 04:42pm 09 Nov 2021
Copy link to clipboard 
Print this post

Maybe this way:??:    


Option System SPI Clock (=SCK), MOSI (=SDO), MISO (=SDI)

If this is correct, i think it would be a good Idea to put it in the Manual.  
Just my Opinion.

WIKI says:

   MOSI (Master Out -> Slave In) also SDO (Serial Data Out) or DO
   MISO (Master In <- Slave Out) also SDI (Serial Data In) or DI
   SCK (Serial Clock)
Edited 2021-11-10 02:43 by atmega8
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 727
Posted: 04:55pm 09 Nov 2021
Copy link to clipboard 
Print this post

But with this Settings:

option system spi GP10,GP12,GP11
Error : Not valid SPI pins


   
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10614
Posted: 04:56pm 09 Nov 2021
Copy link to clipboard 
Print this post

option system spi GP10,GP11,GP12
option sdcard GP15
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 727
Posted: 04:57pm 09 Nov 2021
Copy link to clipboard 
Print this post

So Maker PI PICO is not compatible with MMBASIC and SD Card?
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1681
Posted: 04:58pm 09 Nov 2021
Copy link to clipboard 
Print this post

Option System SPI Clock (=SCK), MOSI (=SDO), MISO (=SDI)


That is exactly what the manual says.

  Quote  There are a number of ports and pins that can be used (see the section PicoMite Hardware) but this example uses SPI on pins GP18, GP19 and GP16 for Clock, MOSI and MISO.
OPTION SYSTEM SPI GP18, GP19, GP16 (MM Basic Manual p36)

Regards
Michael
causality ≠ correlation ≠ coincidence
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 727
Posted: 05:01pm 09 Nov 2021
Copy link to clipboard 
Print this post

Hallo Zweifinger,

but with this Board the pins are routed to fix Port, see Picture above.
So it is not compatible ?!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10614
Posted: 05:02pm 09 Nov 2021
Copy link to clipboard 
Print this post

option system spi GP10,GP11,GP12
option sdcard GP15
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 727
Posted: 05:02pm 09 Nov 2021
Copy link to clipboard 
Print this post

> print mm.ver
5.07
> option system spi GP10, GP12, GP11
Error : Not valid SPI pins
>
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10614
Posted: 05:03pm 09 Nov 2021
Copy link to clipboard 
Print this post

option system spi GP10,GP11,GP12
option sdcard GP15
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1681
Posted: 05:04pm 09 Nov 2021
Copy link to clipboard 
Print this post

@atmega
don't forget:
option sdcard GP15?

Edited 2021-11-10 03:06 by twofingers
causality ≠ correlation ≠ coincidence
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4147
Posted: 05:04pm 09 Nov 2021
Copy link to clipboard 
Print this post

You're still not using what matherp posted.

John
Edited 2021-11-10 03:04 by JohnS
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 727
Posted: 05:14pm 09 Nov 2021
Copy link to clipboard 
Print this post

  JohnS said  You're still not using what matherp posted.

John


Your mystical Answer doesn't help US ;-).

What should i do?

THX
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1681
Posted: 05:17pm 09 Nov 2021
Copy link to clipboard 
Print this post

Try
  Quote  option system spi GP10,GP11,GP12
as Peter suggests.

10, 11, 12

Not:
10, 12, 11!
Edited 2021-11-10 03:18 by twofingers
causality ≠ correlation ≠ coincidence
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10614
Posted: 05:17pm 09 Nov 2021
Copy link to clipboard 
Print this post

Just type

option system spi GP10,GP11,GP12
option sdcard GP15

The labelling on the card is from the SDcards perspective hence SDI connects to MOSI

This is the card I developed the Picomite on. I do know what I'm talking about
Edited 2021-11-10 03:18 by matherp
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 727
Posted: 05:19pm 09 Nov 2021
Copy link to clipboard 
Print this post

  twofingers said  @atmega
don't forget:
option sdcard GP15?


The Error is thrown before i can use this command.

It is also the wrong series.
First :

OPTION SYSTEM SPI GPxx, GPyy, GPzz

And then:
MMBasic must be told that there is an SD card attached and what pin is used for the Chip Select signal:
OPTION SDCARD GPnn
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 727
Posted: 05:24pm 09 Nov 2021
Copy link to clipboard 
Print this post

  matherp said  Just type

option system spi GP10,GP11,GP12
option sdcard GP15

The labelling on the card is from the SDcards perspective hence SDI connects to MOSI

This is the card I developed the Picomite on. I do know what I'm talking about


Hello Peter,

typed it again bot without spaces.
Now initialization works like a charme.

THX
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1681
Posted: 05:26pm 09 Nov 2021
Copy link to clipboard 
Print this post

  atmega8 said  
  twofingers said  @atmega
don't forget:
option sdcard GP15?


The Error is thrown before i can use this command.

It is also the wrong series.
First :

OPTION SYSTEM SPI GPxx, GPyy, GPzz

And then:
MMBasic must be told that there is an SD card attached and what pin is used for the Chip Select signal:
OPTION SDCARD GPnn


Correct! What's going on today? Series of misunderstandings.
causality ≠ correlation ≠ coincidence
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 727
Posted: 05:32pm 09 Nov 2021
Copy link to clipboard 
Print this post

Flashed new MMBASIC,
Option reset
then again same command but without spaces.
OPTION SYSTEM SPI GP10,GP11,GP12
and it works...

drank only two little bottles of 330ml Beer...

FATAL!
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1681
Posted: 05:37pm 09 Nov 2021
Copy link to clipboard 
Print this post

  atmega8 said  drank only two little bottles of 330ml Beer...

FATAL!



causality ≠ correlation ≠ coincidence
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025