Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 01:43 02 Sep 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 : Picomite SDCARD

Author Message
pwillard
Guru

Joined: 07/06/2022
Location: United States
Posts: 313
Posted: 12:19pm 07 Jul 2022
Copy link to clipboard 
Print this post

Ok, this might seem like a dumb question... but can the Picomite detect if an SD card is installed or not?  I know that the SDCARD socket commonly has a detect pin... but I don't see it broken out on the headers of my break-out-board.


 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3399
Posted: 12:28pm 07 Jul 2022
Copy link to clipboard 
Print this post

MM.INFO$(SDCARD)

From the CMM2 manual: "Returns the status of the SD card. Valid returns are:
DISABLED, NOT PRESENT, READY, and UNUSED"

~
Edited 2022-07-07 22:29 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 659
Posted: 01:53pm 07 Jul 2022
Copy link to clipboard 
Print this post

Hi, is that MM.INFO only relevant for the SD card itself, ie the SD card is inserted into the socket? Not whether the socket itself is present? The question isn't clear.
Regards
Edited 2022-07-07 23:55 by Bleep
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8043
Posted: 02:13pm 07 Jul 2022
Copy link to clipboard 
Print this post

The software detects if there is a card present or not. Not all sockets have a Card Detect wired out - and MMBasic doesn't use it anyway. If you have a socket that has one you can wire it to a GP pin, but it's not really of much use.

You can't tell if the socket itself is present normally as (in most cases) all the GP pins are simply wired to card pins so a missing card is the same as a missing socket.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
pwillard
Guru

Joined: 07/06/2022
Location: United States
Posts: 313
Posted: 02:23pm 07 Jul 2022
Copy link to clipboard 
Print this post

Ok, excellent thank you.
 
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