Forum Discussion
Altera_Forum
Honored Contributor
15 years agoSD card problem in NEEK
hi all,
i am new in altera tools and i use in my project NIOS || Embedded Evalution Kit (NEEK) here is the link for the kit for more details:http://www.altera.com/products/devkits/altera/kit-cyc3-embedded.html i wanna connect my sopc builder system with SDCard i.e. i wanna to read and write from SDCard on the second board : lcd_multimedia _Hsmc, SDCard can work in two modes which are 1-SPI mode 2-SD mode i will make SDCard to work in SPI mode so i am going to use SPI core in SOPC to connect SDCard with. After i make connection between SPI master on FPGA and SDCard on second board i try to write driver for SDCard using altera Apis for SPI Note:SDCard need chip select signal can be drived low. so i need more details about ss_n signal from SPI so as to use it to connect with SDCard "CS" if someone tried like this project please help me in this problem thanks in advance1 Reply
- Altera_Forum
Honored Contributor
also when i try to write zero in slave select register and try to read it to make sure from that
i found it 1 IOWR_ALTERA_AVALON_SPI_SLAVE_SEL(sd_hardware->spi_controller_base,0); slave=(unsigned char)IORD_ALTERA_AVALON_SPI_SLAVE_SEL(sd_hardware->spi_controller_base); i found that slave =1 not 0 please help me in this problem thanks in advance