Flash Click Board
Flash Click Board
Introduce additional flash memory to your design with the Flash Click Board™. This small accessory board offers an easy and reliable solution for externally storing large amounts of data to be used in the project. The board features an EN25F80 8 megabit serial flash memory with uniform 4 Kbytes sector architecture. Designed for applications that need high performance and low power consumption, it supports clock frequency up to 75 MHz. EN25F80 module comes with software and hardware Write protection that enables the user to Write Protect all or portion of memory via software. The memory is divided into 16 sectors, each containing 256 pages; each page is 256 bytes wide. Flash Click Board™ communicates with the target board microcontroller through the SPI interface. The board is designed to use a 3.3V power supply only. The green LED diode denotes the power supply status.
The Flash Click Board™ is an ideal choice for a mass storage option in multimedia devices, drives, optical and printing devices.
Software Support
We provide a library for Flash click on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided click library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.
Key Functions
uint8_t flash_WriteArray(uint32_t address, uint8_t* pData, uint16_t nCount);
- The function writes data to successive addresses.void flash_ReadArray(uint32_t address, uint8_t* pData, uint16_t nCount)
- The function reads the data to successive addresses.
Example Description
The application is composed of three sections:
- System Initialization - CS GPIO and SPI module initialization.
- Application Initialization - Flash click driver and click initialization.
- Application Task - (code snippet) - Writing data to click memory and displaying the read data via UART.
void applicationTask() { flash_SectorErase(0x015015); mikrobus_logWrite("Writing MikroE to Flash memory, from address 0x015015:",_LOG_LINE); flash_WriteArray (0x015015, &wrData[0], 9); mikrobus_logWrite("Reading 9 bytes of Flash memory, from address 0x015015:",_LOG_LINE); flash_ReadArray (0x015015,&rdData[0],9); mikrobus_logWrite("Data read: ",_LOG_TEXT); mikrobus_logWrite(rdData,_LOG_LINE); Delay_ms(1000); }
The full application code, and ready to use libraries can be found on our Libstock page.
Other mikroE Libraries used in the example:
- SPI
- UART
Additional Notes and Information
Depending on the development board you are using, you may need a 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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
The Flash Click Board™ is supported by mikroSDK - MikroElektronika 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.
Flash Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.