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.
atmega8 Guru Joined: 19/11/2013 Location: GermanyPosts: 738
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: GermanyPosts: 738
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: GermanyPosts: 738
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 KingdomPosts: 11864
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: GermanyPosts: 738
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: GermanyPosts: 1769
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.
Regards Michael‚My name is Ozymandias, king of kings Look on my works, ye Mighty, and despair!‘ Nothing beside remains. Round the decay Of that colossal wreck, boundless and bare The lone and ...
atmega8 Guru Joined: 19/11/2013 Location: GermanyPosts: 738
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 KingdomPosts: 11864
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: GermanyPosts: 738
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 KingdomPosts: 11864
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: GermanyPosts: 1769
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‚My name is Ozymandias, king of kings Look on my works, ye Mighty, and despair!‘ Nothing beside remains. Round the decay Of that colossal wreck, boundless and bare The lone and ...
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 4378
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: GermanyPosts: 738
Posted: 05:14pm 09 Nov 2021
Copy link to clipboard
Print this post
Your mystical Answer doesn't help US ;-).
What should i do?
THX
twofingers Guru Joined: 02/06/2014 Location: GermanyPosts: 1769
Posted: 05:17pm 09 Nov 2021
Copy link to clipboard
Print this post
Try as Peter suggests.
10, 11, 12
Not: 10, 12, 11! Edited 2021-11-10 03:18 by twofingers‚My name is Ozymandias, king of kings Look on my works, ye Mighty, and despair!‘ Nothing beside remains. Round the decay Of that colossal wreck, boundless and bare The lone and ...
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11864
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: GermanyPosts: 738
Posted: 05:19pm 09 Nov 2021
Copy link to clipboard
Print this post
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: GermanyPosts: 738
Posted: 05:24pm 09 Nov 2021
Copy link to clipboard
Print this post
Hello Peter,
typed it again bot without spaces. Now initialization works like a charme.
THX
twofingers Guru Joined: 02/06/2014 Location: GermanyPosts: 1769
Posted: 05:26pm 09 Nov 2021
Copy link to clipboard
Print this post
Correct! What's going on today? Series of misunderstandings. ‚My name is Ozymandias, king of kings Look on my works, ye Mighty, and despair!‘ Nothing beside remains. Round the decay Of that colossal wreck, boundless and bare The lone and ...
atmega8 Guru Joined: 19/11/2013 Location: GermanyPosts: 738
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: GermanyPosts: 1769
Posted: 05:37pm 09 Nov 2021
Copy link to clipboard
Print this post
drank only two little bottles of 330ml Beer...
FATAL!
‚My name is Ozymandias, king of kings Look on my works, ye Mighty, and despair!‘ Nothing beside remains. Round the decay Of that colossal wreck, boundless and bare The lone and ...