TOP Contributors

  1. MIKROE (2751 codes)
  2. Alcides Ramos (372 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139058 times)
  2. FAT32 Library (71588 times)
  3. Network Ethernet Library (56988 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29769 times)
  8. mikroSDK (27874 times)
  9. PID Library (26858 times)
  10. microSD click (26129 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

Flash 3 click

Rating:

8

Author: MIKROE

Last Updated: 2019-05-03

Package Version: 1.0.0.1

mikroSDK Library: 1.0.0.0

Category: FLASH

Downloaded: 4545 times

Not followed.

License: MIT license  

Flash 3 click is a mikroBUS add-on board for adding more Flash Memory to your target board microcontroller. It carries an ISSI IS25LP128 IC with 128 Mbit capacity.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Flash 3 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Flash 3 click" changes.

Do you want to report abuse regarding "Flash 3 click".

  • mikroSDK Library 2.0.0.0
  • Comments (2)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Front / Back view

Front / Back view

Front and back view of Flash 3 click board

View full image

Library Description

The library covers all the necessary functions that enables the usage of the Flash 3 click board. It offer a choice for writing and reading into and from memory array, also user can access status, and function register and use diferent erase functions. For additional functionality user can check the state of HLD, CE and PW pins.

Key functions:

  • void flash3_normalRead( uint32_t addr, uint8_t* buff, uint32_t cnt ) - Function is used to read memory contents at a maximum frequency of 50MHz.
  • void flash3_write( uint32_t addr, uint8_t *buff, uint32_t cnt ) - Function is used to write data into Flash 3 device.
  • void flash3_fastRead( uint32_t addr, uint8_t* buff, uint32_t cnt ) - Function is used to read memory contents at a maximum frequency of 133MHz.

Examples description

The application is composed of the three sections :

  • System Initialization - Initializes SPI module, LOG and GPIO structures, sets RST, CS and PWM pins as input.
  • Application Initialization - Initalizes SPI driver, Flash 3 click board and makes an initial log.
  • Application Task - (code snippet) This is an example that shows the capabilities of the Flash 3 click by writing into memory array of a Flash 3 click board and reading same data from memory array.
void applicationTask( )
{
    mikrobus_logWrite( "", _LOG_LINE );
    mikrobus_logWrite( "____________________", _LOG_LINE );
    mikrobus_logWrite( "Begin demonstration!", _LOG_LINE );
    mikrobus_logWrite( "", _LOG_LINE );

    mikrobus_logWrite( "Writing : ", _LOG_TEXT );
    mikrobus_logWrite( valIn, _LOG_LINE );
    flash3_write( 0x000000, &valIn[ 0 ], 6 );
    Delay_ms( 100 );
    mikrobus_logWrite( "------------------", _LOG_LINE );

    mikrobus_logWrite( "Reading : ", _LOG_TEXT );
    flash3_normalRead( 0x000000, &valOut[ 0 ], 6 );
    mikrobus_logWrite( valOut, _LOG_LINE );
    Delay_ms( 100 );
    mikrobus_logWrite( "------------------", _LOG_LINE );

    mikrobus_logWrite( "Erasing...", _LOG_LINE );
    flash3_sectorErase( 0x000000 );
    Delay_ms( 300 );
    mikrobus_logWrite( "Erased!", _LOG_LINE );
    Delay_ms( 100 );
    mikrobus_logWrite( "------------------", _LOG_LINE );

    mikrobus_logWrite( "Reading : ", _LOG_TEXT );
    flash3_fastRead( 0x000000, &valOut[ 0 ], 6 );
    mikrobus_logWrite( valOut, _LOG_LINE );
    Delay_ms( 100 );
    mikrobus_logWrite( "------------------", _LOG_LINE );

    mikrobus_logWrite( "Demonstration over!", _LOG_LINE );
    mikrobus_logWrite( "___________________", _LOG_LINE );
    mikrobus_logWrite( "", _LOG_LINE );
    Delay_ms( 5000 );
}

Other mikroE Libraries used in the example:

  • SPI
  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

Schematic

Schematic

Flash 3 click board schematic

View full image

ALSO FROM THIS AUTHOR

RTC 18 Click

0

RTC 18 Click is a compact add-on board that accurately keeps the time of a day. This board features the RV-3032-C7, an I2C-configurable real-time clock module that incorporates an integrated CMOS circuit and an XTAL from Micro Crystal AG. The RV-3032-C7 is a temperature compensated RTC with premium accuracy (0.22 sec/day) and extremely low power consumption, allowing it to be used with a single button cell battery for an extended period. It can measure temperature with a typical accuracy of ±1°C and a resolution of 0.0625°C/step with a programmable alarm on top and bottom temperature limits. It features standard RTC functions with automatic leap year correction, and standard interrupt for Periodic Countdown Timer and Periodic Time Update (seconds, minutes), date/hour/minute alarm, and an external event.

[Learn More]

Brushless 16 Click

0

Brushless 16 Click is a compact add-on board suitable for controlling BLDC motors with any MCU. This board features the LB11685AV, a three-phase full-wave current-linear-drive motor driver from ON Semiconductor.

[Learn More]

ccRF 3 click

7

ccRF 3 click carries the CC1120 high-performance RF transceiver for narrowband systems from Texas Instruments. The clicks will enable you to add a low-power consumption radio transceiver at 433 MHz frequency. ccRF 3 click is designed to run on a 3.3V power supply. It communicates with the target microcontroller over SPI interface.

[Learn More]