TOP Contributors

  1. MIKROE (2752 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 (139069 times)
  2. FAT32 Library (71594 times)
  3. Network Ethernet Library (56989 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29777 times)
  8. mikroSDK (27874 times)
  9. PID Library (26859 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

SQI Flash click

Rating:

0

Author: MIKROE

Last Updated: 2018-03-07

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: FLASH

Downloaded: 4886 times

Not followed.

License: MIT license  

SQI FLASH click is based upon the SST26VF064B, 64 Mbit Serial Quad I/O flash device from Microchip. The chip utilizes 4-bit multiplexed I/O serial interface to boost performance. The click is a very fast solid-state, non-volatile data storage medium, that can be electrically erased and reprogrammed.

No Abuse Reported

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

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

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

  • mikroSDK Library 2.0.0.0
  • Comments (0)
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

SQI Flash Click

SQI Flash Click

Native view of the SQI Flash Click board.

View full image
SQI Flash click

SQI Flash click

Front and back view of the SQI Flash click.

View full image

Library carries all the necessary functions for the SQI Flash click.

Key functions

void SQIFLASH_WriteArray(uint32_t address, uint8_t* pData, uint16_t number) - Writes array of data to the address specified

void SQIFLASH_ReadArray(uint32_t address, uint8_t* pData, uint16_t num) - Reads array of data from the address specified

void SQIFLASH_SectorErase(uint32_t address) - Erases sector where provided address belong to

Examples Description

The application is composed of three sections :

  • System initialization - Initializes pins, SPI peripheral, UART used for logging.
  • Application initialization - Initializes driver and configures module but also checks the communication by reading the chip ID.
  • Application task - (Code snippet) Sequentially writes and reads data from the SQI FLASH click. Written and read data must match because both of them are at the same address. Information about the current reading and writing will be logged to UART.

The example uses the SQIFLASH_WriteByte function to write the value to a 32bit address, forwarded as the parameter to the write function. Both the value and the address are derived from the same variable - counter, which is increased at the end of the application task function. This value is printed at the UART terminal. 
After that, SQIFLASH_ReadByte function is used to read from the address of the SQI Flash module and it is stored in a separate variable, labeled - result. This value gets converted and it gets printed at the UART terminal. The application task function is executed inside the while loop

void applicationTask()
{
    SQIFLASH_WriteByte(counter, counter);
    UART1_Write_Text( "rnValue Written : " );
    ByteToStr( counter, txt );
    UART1_Write_Text( txt );
    Delay_ms( 100 ); 

    result = SQIFLASH_ReadByte(counter);
    UART1_Write_Text( "rnValue Read : " );
    ByteToStr( result, txt );
    UART1_Write_Text( txt );
    Delay_ms( 100 ); 

    counter++;

    if (counter == 256) 
    {
        counter = 0;
    }
    Delay_ms( 2000 );
}

Other mikroE Libraries used in the example:

  • UART Conversions

Additional notes and information

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

 

ALSO FROM THIS AUTHOR

DTMF Generator click

5

DTMF Generator Click is a compact add-on board that generates DTMF (Dual-Tone Multi-Frequency) signals designed for MCU interfaces. This board features the HT9200A, a dual-tone multi-frequency decoder mostly used in mobile communications systems from Holtek Semiconductor Inc.

[Learn More]

EnOcean 3 click

5

EnOcean 3 Click carries a ultra-low power TCM515 transceiver gateway module which operates at 868MHz radio band, perfectly suited for the realization of transceiver gateways, actuators and controllers for systems communicating based on the EnOcean radio standard.

[Learn More]

SPI Isolator 8 Click

0

SPI Isolator 8 Click is a compact add-on board representing a digital isolator optimized for a serial peripheral interface. This board features the ISOW7743, a quad-channel digital isolator from Texas Instruments. This device has a maximum data rate of 100Mbps and transfers digital signals between circuits with different power domains featuring reinforced isolation for a withstand voltage rating of 5kVRMS for 60 seconds.

[Learn More]