TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 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 (137045 times)
  2. FAT32 Library (70171 times)
  3. Network Ethernet Library (56044 times)
  4. USB Device Library (46366 times)
  5. Network WiFi Library (41984 times)
  6. FT800 Library (41313 times)
  7. GSM click (29080 times)
  8. mikroSDK (26520 times)
  9. PID Library (26454 times)
  10. microSD click (25449 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: 4543 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

mikromedia for PIC18FK - Examples

0

Set of examples for mikromedia for PIC18FK. Provided examples demonstrate working with mikromedia's various features and modules: - Accelerometer - MMC SD card - MP3 - Serial Flash - TFT - Touch Panel - USB UART

[Learn More]

Proximity 2 click

5

Proximity 2 clickâ„¢ features MAX44000, an IC that integrates an ambient light as well as a proximity sensor. The IR proximity detector is matched with an integrated IR LED driver (for the onboard high power infrared LED). Proximity 2 clickâ„¢ communicates with the target board microcontroller through mikroBUS I2C (SCL, SDA), and INT lines.

[Learn More]

Waveform click

5

Waveform Click is a precise sine/triangle/square waveform generator, capable of reproducing frequencies up to 12MHz.

[Learn More]