TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (91 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 (139266 times)
  2. FAT32 Library (71754 times)
  3. Network Ethernet Library (57128 times)
  4. USB Device Library (47432 times)
  5. Network WiFi Library (43092 times)
  6. FT800 Library (42408 times)
  7. GSM click (29835 times)
  8. mikroSDK (28101 times)
  9. PID Library (26886 times)
  10. microSD click (26198 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: 4563 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

GSM/GNSS Click

0

GSM/GNSS Click combines GPS/GLONASS location tracking with GSM module capability for mobile communication. The Click features Quectel’s MC60 quad-band module.

[Learn More]

NO2 click

5

NO2 click is a very accurate nitrogen-dioxide gas sensor Click board, equipped with the SPEC amperometric gas sensor which electrochemically reacts with the nitrogen-dioxide (NO2).

[Learn More]

RS485 2 Click

0

RS485 2 Click is an RS422/485 transceiver Click board™, which can be used as an interface between the TTL level UART and the RS422/485 communication bus.

[Learn More]