|
Forum Index : Microcontroller and PC projects : PicomiteVGA and SPI bus
| Author | Message | ||||
| Gurgs Newbie Joined: 14/07/2022 Location: United KingdomPosts: 6 |
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 StatesPosts: 3481 |
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 KingdomPosts: 10628 |
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 KingdomPosts: 6 |
Thank you very much, this is very helpful. |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |