flash12
2.1.0.0
|
PRVIH_PAR_RECENICA_SA_PRODUCT_PAGE_DA_ISPRATE_CELINU
[click Product page](CLICK_PRODUCT_PAGE_LINK)
We provide a library for the Flash 12 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for Flash 12 Click driver.
flash12_cfg_setup
Config Object Initialization function. flash12_init
Initialization function. flash12_default_cfg
Click Default Configuration function. flash12_memory_write
This function writes a desired number of data bytes starting to the selected memory address by using SPI serial interface. flash12_memory_read
This function reads a desired number of data bytes starting from the selected memory address by using SPI serial interface. flash12_erase_memory
This function erases the selected amount of memory which contains the selected address. This example demonstrates the use of Flash 12 click board by writing specified data to the memory and reading it back.
The demo application is composed of two sections :
The initialization of SPI module and log UART. After driver initialization, the app sets the default configuration.
The demo application writes writes a desired number of bytes to the memory and then verifies if it is written correctly by reading from the same memory location and displaying the memory content. Results are being sent to the UART Terminal, where you can track their changes.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
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 MikroElektronika compilers.