sram3 2.0.0.0
|
SRAM3 Click example. More...
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
uint8_t | buf [10] = { 'M','i','k','r','o','E', 0 } |
SRAM3 Click example.
This is an example that shows the use of SRAM memory, using SRAM 3 click. SRAM 3 click is based on ANV32AA1W, and ANV32AA1W is a 1Mb serial SRAM with a non-volatile SONOS storage element included with each memory cell, organized as 128k words of 8 bits each. The devices are accessed by a high speed SPI-compatible bus. Specifically in this example, we used the high-speed SPI communication characteristics to write data to a specific registration address and read it.
The demo application is composed of two sections :
Initialization SPI module, logger initalization and click initialization.
First, we write the data to the registry address 0x00, and then we read the data from 0x00 address.
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |
uint8_t buf[10] = { 'M','i','k','r','o','E', 0 } |