microSD Click Board
microSD Click Board
Need more additional memory' We've got just the thing for you - microSD Click Board™. It features a microSD card slot for microSD cards used as mass storage media for portable devices. microSD Click Board™ is designed to run on a 3.3V power supply. Industry-standard SPI interface ensures simple communication at high data rates. Use it for reading or storing data like music, text files, videos and more.
Need more additional memory? We've got just the thing for you - microSD Click Board™. It features a microSD card slot for microSD cards used as a mass storage media for portable devices. microSD click is designed to run on 3.3V power supply. Industry standard SPI interface ensures simple communication at high data rates. Use it for reading or storing data like music, text files, videos and more.
USING MICROSD CARDS
Board contains the slot for standard microSD cards. Once power is turned on, power LED will indicate that board is in operation. Data is read and written to the card using industry standard SPI interface.
POWER SUPPLY – 3.3V ONLY
Board is designed to use 3.3V power supply only. If you need to add MMC/SD feature to your 5V prototype or development board, we recommend you to use other boards such as the MMC/SD Accessory Board.
SPECIFICATIONS
Type | microSD |
Applications | The microSD Click Board™ is ideal for storing and reading acquisition data, images, music, video and data files, or any other application where fast mass storage is needed. |
On-board modules | microSD card slot |
Key Features | microSD card slot for microSD cards used as a mass storage media for portable devices |
Interface | SPI |
Compatibility | mikroBUS |
Click board size | S (28.6 x 25.4 mm) |
Input Voltage | 3.3V |
PINOUT DIAGRAM
This table shows how the pinout of the microSD Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | NC | ||
NC | 2 | RST | INT | 15 | NC | ||
SPI chip select | CS | 3 | CS | TX | 14 | NC | |
SPI clock | SCK | 4 | SCK | RX | 13 | NC | |
Serial data output | SDO | 5 | MISO | SCL | 12 | NC | |
Serial data input | SDI | 6 | MOSI | SDA | 11 | NC | |
Power supply | +3.3V | 7 | 3.3V | 5V | 10 | NC | |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
Software Support
Code examples for the microSD Click Board™, written for MikroElektronika hardware and compilers are available on Libstock.
CODE SNIPPET
The following code snippet shows part of the code that is responsible for the microSD Click Board™ initialization.
01 void main() { 02 const char FILL_CHAR = 'm'; 03 unsigned int i, SectorNo; 04 char mmc_error; 05 bit data_ok; 06 07 ANCON0 = 0; // Configure ports as digital I/O 08 ANCON1 = 0; 09 ANCON2 = 0; 10 11 Mmc_Card_Detect_Direction = 1; // Set card detection pin to be input 12 13 UART1_Init(19200); // Initialize UART1 module 14 Delay_ms(10); 15 UART1_Write_Line("Insert microSD Card"); 16 17 while(Mmc_Card_Detect) // Loop until card is detected 18 ; 19 20 Delay_ms(500); 21 22 UART1_Write_Line("microSD Card inserted"); // microSD Card present report 23 24 // Initialize SPI1 module 25 SPI1_Init_Advanced(_SPI_MASTER_OSC_DIV4, _SPI_DATA_SAMPLE_MIDDLE, _SPI_CLK_IDLE_LOW, _SPI_LOW_2_HIGH); 26 27 // Initialize MMC card 28 mmc_error = Mmc_Init(); 29 if(mmc_error == 0) 30 UART1_Write_Line("MMC Init-OK"); // If MMC present report 31 else 32 UART1_Write_Line("MMC Init-error"); // If error report
Software Support
Code examples for the microSD Click Board™, written for MikroElektronika hardware and compilers are available on Libstock.
CODE SNIPPET
The following code snippet shows part of the code that is responsible for the microSD Click Board™ initialization.
01 void main() { 02 const char FILL_CHAR = 'm'; 03 unsigned int i, SectorNo; 04 char mmc_error; 05 bit data_ok; 06 07 ANCON0 = 0; // Configure ports as digital I/O 08 ANCON1 = 0; 09 ANCON2 = 0; 10 11 Mmc_Card_Detect_Direction = 1; // Set card detection pin to be input 12 13 UART1_Init(19200); // Initialize UART1 module 14 Delay_ms(10); 15 UART1_Write_Line("Insert microSD Card"); 16 17 while(Mmc_Card_Detect) // Loop until card is detected 18 ; 19 20 Delay_ms(500); 21 22 UART1_Write_Line("microSD Card inserted"); // microSD Card present report 23 24 // Initialize SPI1 module 25 SPI1_Init_Advanced(_SPI_MASTER_OSC_DIV4, _SPI_DATA_SAMPLE_MIDDLE, _SPI_CLK_IDLE_LOW, _SPI_LOW_2_HIGH); 26 27 // Initialize MMC card 28 mmc_error = Mmc_Init(); 29 if(mmc_error == 0) 30 UART1_Write_Line("MMC Init-OK"); // If MMC present report 31 else 32 UART1_Write_Line("MMC Init-error"); // If error report
microSD Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.