From MikroElektonika Documentation
Part | Datasheet |
---|---|
![]() |
MIKROE-2267 (pdf) |
PDF Datasheet Preview |
---|
Flash 2 click From MikroElektonika Documentation Flash 2 click carries Microchip’s SST26VF064B flash-memory module with 8 MB capacity. It’s a highly reliable module with a specified minimum of 100,000 write cycles and with over 100 years of Data Retention. For data security, the module features a One-Time Programmable OTP 2 KB bit secure ID and a 64 bit unique, factory pre-programmed identifier. Additional software security measures include inidividual-block write Protection with permanent lock-down capability. Flash 2 click communicates with the target MCU through the mikroBUS SPI interface CS#, SCK, MISO, MOSI with additional functionality provided by the #HOLD pin in place of default mikroBUS RST pin . The board is designed to use a 3.3V power supply. Features and usage notes Flash 2 click Schematic also available in PDF high when not in use. The SST26VF064B/064BA memory array is organized in uniform, 4 KByte erasable sectors with the following erasable blocks: - Eight 8 KB parameter - Two 32 KByte overlay Flash 2 click IC/Module Microchip SST26VF064B - One-hundred twenty-six 64 Interface SPI MISO, MOSI, SCK , CS, #HOLD KByte overlay blocks Power 3.3V The #HOLD pin temporarily stops serial communication supply Website with the SPI Flash memory while the device is selected. This pin only works in SPI, single-bit and dual-bit Read mode and must be tied The manufacturer's data sheet has more information about the memory protection features of the chip: "SST26VF064B/064BA offers flexible memory protection scheme that allows the protection state of each individual block to be controlled separately. In addition, the Write-Protection Lock-Down register prevents any change of the lock status during device operation. To avoid inadvertent writes during power-up, the device is write-protected by default after a power-on reset cycle. A Global Block Protection Unlock command offers a single command cycle that unlocks the entire memory array for faster manufacturing throughput." Programming This snippet initializes all necessary pins and functions for using Flash 2 Click, and performs a test by writing test values to the click, and then reading them back to the user through UART communication. 1 #include <stdint.h> 2 #include "flash_2_hw.h" 4 sbit FLASH_2_WP at GPIOA_ODR.B0; 5 sbit FLASH_2_CS at GPIOD_ODR.B13; 6 sbit FLASH_2_HLD at GPIOC_ODR.B2; 8 int main void uint8_t buffer[4] uint16_t count uint32_t address = 0x0100F0; uint8_t receive_buffer[4]; char tmp[20]; GPIO_Digital_Output &GPIOA_BASE, _GPIO_PINMASK_0 ; GPIO_Digital_Output &GPIOC_BASE, _GPIO_PINMASK_2 ; GPIO_Digital_Output &GPIOD_BASE, _GPIO_PINMASK_13 ; SPI1_Init_Advanced _SPI_FPCLK_DIV64, _SPI_MASTER | _SPI_8_BIT | _SPI_CLK_IDLE_LOW | _SPI_FIRST_CLK_EDGE_TRANSITION | _SPI_MSB_FIRST | |
More datasheets: FLUKE-279FC/IFLEX | CA3101E22-18SBF80 | R272-100-000 | R270-081-000 | R272-080-000 | R272-081-000 | R273-100-000 | IRF540N_R4942 | CA20L24A28PB111 | APTGF300A120G |
Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived MIKROE-2267 Datasheet file may be downloaded here without warranties.