Two 4 bit SDIO buses on Kinetis K60

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Two 4 bit SDIO buses on Kinetis K60

930 Views
alexandersavche
Contributor I

Hi, everyone. I need to use two SDIO bus on the same Kinetis K60 board. One for SD card, another for Wi-Fi module with SDIO interface. Is is t posible to use GPIO as a BUS like SDIO? I want to use SD card in 4 bit mode.

Labels (1)
0 Kudos
3 Replies

646 Views
larryc
Contributor II

Alex

This is controlled by the Port Control Module on the K60, which selects which alternate configurations are in use.  Those are listed in the Signal Multiplexing and Pin Assignments section in Document K60P144M120SF3.


I looked briefly and I saw only one SDHC assignable in the table.

Good luck,

Larry

0 Kudos

646 Views
alexandersavche
Contributor I

I saw it. But I want to use one dedicated bus and one additional with free pins (mat be it will software emulated bus).

0 Kudos

646 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Alexander Savchencko:

There is only one SDHC module in the K60, so you are correct, the solution would be a software emulated bus. I guess you could emulate the SDIO bus by using SPI peripheral. Unfortunately we do not have an example for this.

Maybe you can look at the implementation of MSD host from the Freescale USB stack v4.1.1 (download from USB Stack|Freescale). The USB MSD example has an option to use SPI interface to talk to an SD card.

Regards!

Jorge Gonzalez