![]() |
Forum Index : Microcontroller and PC projects : Picomite SDCARD
Author | Message | ||||
pwillard Guru ![]() Joined: 07/06/2022 Location: United StatesPosts: 313 |
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 StatesPosts: 3399 |
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 KingdomPosts: 659 |
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 KingdomPosts: 8043 |
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 StatesPosts: 313 |
Ok, excellent thank you. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |