TOP Contributors

  1. MIKROE (2642 codes)
  2. Alcides Ramos (347 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (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 (136217 times)
  2. FAT32 Library (69478 times)
  3. Network Ethernet Library (55705 times)
  4. USB Device Library (45989 times)
  5. Network WiFi Library (41638 times)
  6. FT800 Library (40780 times)
  7. GSM click (28788 times)
  8. PID Library (26327 times)
  9. mikroSDK (26051 times)
  10. microSD click (25139 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: 4065 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

DIGI POT 6 click

0

DIGI POT 6 Click features the MCP41HVX1 family of devices which have dual power rails (analog and digital). The analog power rail allows high voltage on the resistor network terminal pins.

[Learn More]

Hall Current 5 click

5

Hall Current 5 Click is a very accurate electric current measurement Click board based on the ACS733 IC. This IC is a galvanically isolated current sensor, which utilizes the Hall-effect principle.

[Learn More]

FM click

0

FM Click with it’s Si4703 IC is a complete FM radio tuner in the form of add-on board. It supports worldwide FM band (76 – 108 MHz).

[Learn More]