How does it work?
microSD Click is based on the microSD card slot for microSD cards used as a mass storage media for portable devices. The microSD card slot has a push-in ejector, which helps a lot while inserting or removing the microSD card without damaging it. It also helps to hold the microSD card tight in place, thus making all internal connectors safely connected with the microSD card and securing reliable connection and data flow. The power supply of the microSD card is properly decoupled with capacitors, which eliminates the noise on the microSD Click board and ensures your data is safe on the microSD card.
microSD Click and the microSD card use the standard 4-Wire SPI serial interface to communicate with the host MCU. The CS pin is pulled up by default, and the same goes for the card detect pin of the microSD card slot. When the microSD card is inserted, you will get the logic Low state on the CD pin of the mikroBUS™ socket.
This Click board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. Also, it comes equipped with a library containing functions and an example code that can be used as a reference for further development.
Specifications
Type
microSD
Applications
Can be used for the development of data storage applications, like data-logging or storing music, text files, videos, and more
On-board modules
microSD card slot for microSD cards used as a mass storage media for portable devices
Key Features
Push-in ejector which helps a lot while inserting or removing the microSD card without damaging it, card detection, and more
Interface
SPI
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V
Pinout diagram
This table shows how the pinout on microSD click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
microSD Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Software Support
We provide a library for the microSD Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for microSD Click driver.
Key functions
-
microsd_check_card_detection
This function checks and waits for a microSD card to be inserted to the click board. -
microsd_create_directory
This function creates a new directory at the selected absolute path. The path should contain a name of the directory to be created. -
microsd_display_directory
This function reads and displays the content of the directory at the selected path.
Example Description
This example demonstrates a basic file system functionality and operations with files and directories using a microSD click board.
void application_task ( void )
{
microsd_display_directory ( PATH_ROOT );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
microsd_display_directory ( PATH_DIR1 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
microsd_display_directory ( PATH_DIR3 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
microsd_display_directory ( PATH_DIR5 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
log_printf ( &logger, "rnn" );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.microSD
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.