Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21602 Discussions

SD card interface

Altera_Forum
Honored Contributor II
1,517 Views

Hi, 

 

I want to add a SD card reader to the hardware of a cyclone3. I have the JTAG/ISP SPI interface wired out. 

If the system is booted from flash, can I bolt a SD card reader to the programmer interface somehow? (for FAT) 

Or do I need more pins?
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
738 Views

If you mean the jtag pins (tck, tms, ...) the answer is No. Those are dedicated pins and you can't use them. You need to wire out any other general purpose I/Os.

0 Kudos
Altera_Forum
Honored Contributor II
738 Views

 

--- Quote Start ---  

If you mean the jtag pins (tck, tms, ...) the answer is No. Those are dedicated pins and you can't use them. You need to wire out any other general purpose I/Os. 

--- Quote End ---  

 

 

Yes, and the FlashNCE, and data pins.. Thanks for the reply!
0 Kudos
Altera_Forum
Honored Contributor II
738 Views

FlashNCE and data pins are dual purpose pins and they can indeed be used as GP I/O pins. 

You have to set them as generic I/O in the device configuration assignments
0 Kudos
Altera_Forum
Honored Contributor II
738 Views

 

--- Quote Start ---  

FlashNCE and data pins are dual purpose pins and they can indeed be used as GP I/O pins. 

You have to set them as generic I/O in the device configuration assignments 

--- Quote End ---  

 

 

Ok, so you would program those with the file?
0 Kudos
Altera_Forum
Honored Contributor II
738 Views

If you set these dual-purpose pins as "Use as regular I/O" in the Quartus project settings, you can use them like any other I/O pin. 

The configuration file instructs the fpga to initialize them in the orrect way. 

After this, is up to your design to control them for your specific purpose.
0 Kudos
Reply