TOP Contributors

  1. MIKROE (2750 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 (139022 times)
  2. FAT32 Library (71563 times)
  3. Network Ethernet Library (56975 times)
  4. USB Device Library (47295 times)
  5. Network WiFi Library (43003 times)
  6. FT800 Library (42291 times)
  7. GSM click (29727 times)
  8. mikroSDK (27853 times)
  9. PID Library (26846 times)
  10. microSD click (26093 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: 4502 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

Touchkey 2 Click

0

TouchKey 2 Click has four capacitive pads powered by Microchip's ATtiny817 which has an integrated touch QTouch® controller.

[Learn More]

LR 11 915MHz Click

0

LR 11 Click - 915MHz is a compact add-on board for long-range, low-power wireless communication in IoT applications. This board features the 453-00139R, an ultra-low power LoraWAN module Ezurio (part of the RM126x series), integrating the Silicon Labs EFR32 SoC and the Semtech SX1262 radio. It supports LoRaWAN classes A, B, and C, offering secure, scalable, and bi-directional communication. It operates in the 902-928MHz frequency range with a typical transmit power of up to 22dBm and a communication range of up to 15km.

[Learn More]

Accel 12 Click

0

Accel 12 Click is an advanced 3-axis motion tracking Click board™, which utilizes the MC3216, a low-noise, and low power 3-axis accelerometer.

[Learn More]