Shop OBEX P1 Docs P2 Docs Learn Events
SD cards do not release DO when -CS goes inactive (=1) — Parallax Forums

SD cards do not release DO when -CS goes inactive (=1)

Cluso99Cluso99 Posts: 18,069
edited 2010-01-09 05:21 in Propeller 1
I found when sharing the SD pins (DI, DO, CLK) on my TriBlades and RamBlades that I had to modify the sdspiFemto.spin and the fsrw26 routines (lonesock put optional code in fsrw26 for me wink.gif ).

This would also apply to multiple SPI devices on the SPI bus.

IMHO this is probably an error in the SD cards as I would expect that if -CS becomes inactive then it should release driving DO.·Obviously there is no chance of getting this changed in the SD card, so the drivers need this modification. In the latest fsrw, lonesock/rokicki have made an option for this (IIRC called Cluso's tristate mod).

I found that using the eeprom bootloader to load and boot a file from the SD card, it left the DO being driven by the SD card. The binary file I loaded was a test program to test the RamBlade hardware and this is how I discovered the problem. While it may not manifest as a problem, it nevertheless is a bug and I will be fixing it.

In light of my latest discovery, IMHO this disable modification should be in all SD·drivers.

Just thought I would post this in case anyone starts going around in circles looking for a similar bug.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:

· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm

Comments

Sign In or Register to comment.