Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:27 21 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 : PicomiteVGA and SPI bus

Author Message
Gurgs
Newbie

Joined: 14/07/2022
Location: United Kingdom
Posts: 6
Posted: 02:29pm 16 Jul 2022
Copy link to clipboard 
Print this post

I have a question about the SPI bus and the PicomiteVGA.

I have an SDCard set up with the following option...

   OPTION SDCARd GP10, GP11, GP12, GP13

and it is working correctly.

If I wish to add another SPI device to my PicomiteVGA do I need to use the second
SPI bus or can I use the same bus as the SDCard but with a different cable select
pin under software control.

I assume this would depend on whether the SDCard CS pin is kept high at all times
or only when MMBASIC accesses the SDCard.

Thanks in advance.
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3481
Posted: 02:40pm 16 Jul 2022
Copy link to clipboard 
Print this post

You should be able to add additional SPI devices on the same MISO/MOSI/CLK pins with a separate chip select pin.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10628
Posted: 03:17pm 16 Jul 2022
Copy link to clipboard 
Print this post

The SDcard doesn't use the SPI bus on the VGA version, it is bitbanged, the pins can't be shared. You can though use both SPI1 and SPI2 on other pins
 
Gurgs
Newbie

Joined: 14/07/2022
Location: United Kingdom
Posts: 6
Posted: 06:28pm 16 Jul 2022
Copy link to clipboard 
Print this post

Thank you very much, this is very helpful.
 
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