TOP Contributors

  1. MIKROE (2659 codes)
  2. Alcides Ramos (356 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 (136944 times)
  2. FAT32 Library (70063 times)
  3. Network Ethernet Library (56015 times)
  4. USB Device Library (46330 times)
  5. Network WiFi Library (41947 times)
  6. FT800 Library (41264 times)
  7. GSM click (29050 times)
  8. mikroSDK (26467 times)
  9. PID Library (26442 times)
  10. microSD click (25404 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: 4188 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

ADC click

0

Simple example which demonstrates working with the 4-Channel 12-bit A/D Converter (MCP3204) with SPI Serial Interface. The example shows how to measure analog inputs on Channels 0, 1, 2 and 3 and display the results on LCD.

[Learn More]

CAP Wheel 2 click

5

CAP Wheel 2 Click is a capacitive touch sensor with round-shaped electrodes integrated on a Click boardâ„¢. This click can sense touch even through plastic, wood, or other dielectric materials, which can be used to protect the surface of the PCB and the sensor pad trace itself.

[Learn More]

Current Sens 2 click

0

Current Sens 2 Click is a compact add-on board designed for precise current measurements in industrial applications. This board features the HO 10-P, an AC/DC current transducer from LEM USA.

[Learn More]