Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

microSD Click

microSD Click

$20.87

microSD click, a low-cost click board to interface a microcontroller project with an SD card using SPI interface.
Note: Specifications, Prices & Availability may change without notice. Images are for illustration purposes only. E&OE

Brand: MikroElektronika

Availability: 1 in stock SKU: STC-00125 Category: Tags: ,
  • Description
  • Specifications
  • TECHNICAL DETAILS & TUTORIAL
  • Additional information
  • Reviews (0)

Description

microSD click 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.

An effective and low-cost click board that you can use to interface easily your microcontroller project with an SD card.

TypeSD/MMC
ApplicationsmicroSD click 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 modulesmicroSD card slot
Key BenefitsSmall dimensions, easy to integrate into your prototype devices.
InterfaceSPI
Input Voltage3.3V
CompatibilitymikroBUS
Click board sizeS (28.6 x 25.4 mm)

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).

NotesPinMikrobus logo.pngPinNotes
NC1ANPWM16NC
NC2RSTINT15NC
SPI chip selectCS3CSTX14NC
SPI clockSCK4SCKRX13NC
Serial data outputSDO5MISOSCL12NC
Serial data inputSDI6MOSISDA11NC
Power supply+3.3V73.3V5V10+5VPower supply
GroundGND8GNDGND9GNDGround

Programming

Code examples for microSD click, 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 microSD click 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

Downloads

Additional information

Weight28 g
Brand

MikroElektonika

Reviews

There are no reviews yet.


Be the first to review “microSD Click”

You may also like…

You've just added this product to the cart:

Select your currency
EUR Euro
USD United States (US) dollar