No video

Interfacing with an SD Card

  Рет қаралды 8,680

Steve Rayner Makes

Steve Rayner Makes

Күн бұрын

Пікірлер: 18
@PeetHobby
@PeetHobby 29 күн бұрын
Great video! For the past 15 years, I’ve had to repeatedly rewrite or update my SD card drivers whenever I get new SD cards, as the initial setup often breaks. 😅
@eitantal726
@eitantal726 19 күн бұрын
consider tying the unused pins of the buffer to ground. Since they're floating, you could get sporadic garbage high-speed push-pull on the other side
@borg3000
@borg3000 Жыл бұрын
Great job! I really enjoyed watching you creat this board.
@vanhetgoor
@vanhetgoor Жыл бұрын
It surely is a nice PCB. I gave you a big thumbs-up! But if others have made almost the same board, then why not use the card that others made already, it would reduce the costs of the project I guess. I could imagine that a totally new design is necessary when extra features would be included, like a signal for card-ready, card-present, card-write protected or card-malfunction. Possibly there could also be a signal for card-full. And yes, I know that for a card-full signal there has to be intelligence to read the card first and analyse the data. And while fantasizing about what could have been done, a signal for "do not eject the card, still writing data" would be fine. Maybe that was the LED you removed for.
@ChrisSavageEngineer
@ChrisSavageEngineer Жыл бұрын
I believe the LED on the clock line is an SD access or activity indicator.
@melkiorwiseman5234
@melkiorwiseman5234 Жыл бұрын
If I were going to try to interface a Z80 system with an SD card, I'd be inclined to go in one of two possible directions, although both directions would use a microcontroller as an intermediary. The reason for that is to free up the Z80 so that it can do other things if needed without having to devote all of its "attention" to the data transfer. 1. DMA. I'd use at least two memory banks as buffers. The memory would hold the data either before it's written or after it's been read from the SD card. Having two banks would allow the CPU to work on data in one bank while the data in the second bank is being either written or read. Advantage: Speed. Disadvantage: Can't be moved easily to another computer system. 2. GPIB (IEEE-488). I'd have the microcontroller use its own internal memory as the buffer and have the Z80 transmit and receive both data and commands through the GPIB interface. Advantage: The SD card and microcontroller can be easily moved to another computer system using a GPIB. Disadvantage: Slower than DMA.
@knghtbrd
@knghtbrd 11 ай бұрын
If I were to do that, I'd do it how Commodore/Atari did-a device interface with storage protocol that doesn't care about the details. I'd probably interface a "floppy drive" for the educational reasons, then switch to SD card for convenience and wider accessibility. Still cheating? Maybe, but I've got a good justification. You used to be able to get the VIC-20 video chip for about $6.50, but someone came out with a VIC-20 kit and now they're > $100. Turns out the low price wasn't wide availability but the fact that they don't fail often so few were needed. Now if you need one for repair … good luck! This has happened before and will again. Is the TMS9918A next? Maybe. I've got a couple of them, though, so using one is the path of least resistance. Once I do, though I'm likely to start programming a RP2040 to take its place. The F18A exists and is VGA, but it's expensive. The RP2040 is dirt cheap, though, and fast enough to simulate the 9918. With VGA or maybe even DVI output, we'll see. IBM used a µC for the keyboard before Windows was a thing. Fair to do? Sure. Fair to use something newer than they did? Maybe. Don't need to in order to bit-bang PS/2, but if I use something newer… Seems everyone wants to use NES/SNES controllers on their new retro machines. That was done reading bits off a shift register every frame. Can I do that? Sure. Don't really want to though. I'd probably do it, then implement some 74-series chips to read and latch the button state so I don't have to. I'll then replace that hardware with the same µC that is doing keyboard input without changing the code on the retro CPU at all. That code still won't change when I rewrite the code on the µC to use a USB interface. Because keyboards are now less than 50/50 for having PS/2 support, and while I can get a quality USB SNES-like controller for $15, Nintendo isn't making the original anymore and the clones suck. As far as I'm concerned, bit-banging PS/2 keyboards reading a SNES controller with a shift register, and talking to a "floppy drive" (Gotek) are extra enrichment activities.
@PE4Doers
@PE4Doers Жыл бұрын
Nice project 🙂
@robertheer4043
@robertheer4043 4 ай бұрын
Can you play a short video with a SD card on a raspberry pi Pico but also have the audio playing? I want to create a drive-in theater for my train layout.
@vvtor
@vvtor 7 ай бұрын
Have you thought about making follow up video of setting all that up together?
@SteveRaynerMakes
@SteveRaynerMakes 7 ай бұрын
I would very much like to. Unfortunately I was unable to get it to work. However I'm unsure if it's a software problem or a hardware problem.
@travonray637
@travonray637 5 ай бұрын
@@SteveRaynerMakes Do you plan on remaking it? or any update on it now
@nadaehab263
@nadaehab263 4 ай бұрын
thanks for this video it really helps, but should I use the level shifter if the microcontroller is STM32F103C6 since it's operating voltage ranging between 2.2 and 3.6 v and I have another question, it's written in the datasheet of the sd card connector that the operating voltage is 10v while it's vcc connected to 3.3v I didn't get that part hope you answer me and thank s for all
@SteveRaynerMakes
@SteveRaynerMakes 3 ай бұрын
I would say that if your microcontroller operates at voltage of 2.2 to 3.6 then, no, you do not need the level shifter. This will simplify things for your design. The 10v is just a maximum rating for the physical connector. Not something you need to be concerned about because I doubt you would find an SD card that operates at higher voltages. But in theory anyone could design their own cards that operate at any voltage. So it's just the connector designer telling us don't use anything over 10volts.
@brentroberson7211
@brentroberson7211 Жыл бұрын
Is the level shifter required for an esp32 since it is all 3.3 v logic anyways?
@SteveRaynerMakes
@SteveRaynerMakes Жыл бұрын
I would say no.
@brentroberson7211
@brentroberson7211 Жыл бұрын
@@SteveRaynerMakes awesome thank you for the reply! do I need to add any resistors or can I just connect everything straight to the pins of the esp32?
@SteveRaynerMakes
@SteveRaynerMakes Жыл бұрын
@@brentroberson7211 Should be fine to connect directly to the ESP32. I have a pull-up resistor on the CS line, but you probably don't even need that. As I believe the ESP32 can be configured to use its own internal pull-up resistors.
ATTiny85 Program Using Arduino UNO
12:07
Steve Rayner Makes
Рет қаралды 14 М.
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 3,4 МЛН
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 18 МЛН
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 23 МЛН
Joker can't swim!#joker #shorts
00:46
Untitled Joker
Рет қаралды 40 МЛН
The Best Data Logger?
12:37
Paul's Projects
Рет қаралды 8 М.
DIY SSD made of SD Cards!
9:06
Linus Tech Tips
Рет қаралды 5 МЛН
stm32 External interrupt
5:24
CMTEQ Harware & Firmware
Рет қаралды 22
To Pour or Not To Pour | Copper Pour in PCB Design
21:12
Altium Academy
Рет қаралды 45 М.
Explaining SD Cards: 2020 Update
13:26
ExplainingComputers
Рет қаралды 381 М.
Damascus Steel From Stick Welding Electrodes
14:15
Alec Steele
Рет қаралды 644 М.
Z80 Computer - Part 1 The CPU, Clock & Reset
44:25
Steve Rayner Makes
Рет қаралды 31 М.
Tutorial: Writing and reading to SD cards
15:55
Kris Kasprzak
Рет қаралды 9 М.
Z80 Retro #18 - How SD Cards Work
1:13:19
John's Basement
Рет қаралды 6 М.
Top Fifteen Mistakes People Make When Designing Prototype PCBs
12:26
Cosplay Light and Sound
Рет қаралды 146 М.
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 3,4 МЛН