Code snippet
This code snippet shows one part of the example provided alongside with the click board™. The
task writes value 42 into the memory address 0x10 and then the read value from the same
memory part. The read value should match the written value (42).
01 void Fram_2_Task()
02 {
03 uint8_t readData;
04 char outputText [5];
05 memset ( outputText, 0, 5);
06 UART1_Write_Text ("rnWriting value 42 into register 0x10...");
07 Fram_2_Write (0x00, 0x00, 0x10, 42 );
08
09 UART1_Write_Text ("rnReading from register 0x10...");
10 readData = Fram_2_Read (0x00, 0x00, 0x10);
11 ShortToStr (readData, outputText);
12 UART1_Write_Text ("rnRead value: ");
13 UART1_Write_Text (outputText);
14 }
https://shop.mikroe. com/fram‐2‐click11‐3‐17