Help needed to free 1 pin with SD module
Alex.Stanfield
Posts: 198
I just ran out pins on my project where I plan to use de SD filesystem driver for logging and config values. I'm just needing 1 more pin to fit everything on board.
Has anyone shared one of the minimum 7 pins needed for the SD+RTC drivers? I was also planing to be able to query the RTC independently of the filesystem driver.
Any help is greatly appreciated
Alex
Edit: Several solutions below. Opted for changing the original design in order to use a DS1307 sharing the memory pins (28/29)
Has anyone shared one of the minimum 7 pins needed for the SD+RTC drivers? I was also planing to be able to query the RTC independently of the filesystem driver.
Any help is greatly appreciated
Alex
Edit: Several solutions below. Opted for changing the original design in order to use a DS1307 sharing the memory pins (28/29)
Comments
Kye's SD card driver already supports the DS1307 and includes an object for its use.
Since I'll be using a super-cap maybe doing the diode and resistor outside the IC it's a good deal in exchange of free pins.
Thanks
Alex
I haven't tried sharing any of the SD card pins with the I2C pins though. That's an interesting idea. (I've noticed Peter has a lot of those.)
Good to know that! Thanks.
I'm decided now, going for a DS1307 (which I already have). All I need to figure out are the right values for the charging net to charge a super-cap (1F).
This is going to be always on for several years (I hope ) while I need it to survive power failures. What would you go for, a coin cell or the super-cap?
Alex
but couldent you share the data and clock lines and use a circuit to provide a priority to the CS of the SD then you could have two pins for CS, one for SD and one pin for clock then a logic circuit for enuring the SD when selected will automatically deselect the clock. wait I got it one CS line and the CS of the clock has a not gate going to it! then anytime the SD card isn't selected the clock is selected. and change the driver for the clock to take advantage of this.
that might work.
up until I tried load runner for the prop i was sharing the SD and NES on the same pins. don't worry I was running the NES ports off 3.3volts.