Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to store an array (such as w25p 16) in spi flash and how to read this array by single chip microcomputer. The array is in.
How to store an array (such as w25p 16) in spi flash and how to read this array by single chip microcomputer. The array is in.
As simple as int a[0] uchar a0h = a[0] >. & gt8; a0L = a[0]; This can be divided into single byte storage.

There is another way to support a consortium.

alliance

{

int a _ I[ 10];

Unsigned character b _ c [20];

} test.

Assign the value of the array directly to test.a_i[ 10], and then write it into flash with byte writer test.b_c[20].

When reading data, give the lonely data to test.b_c[20], and it takes an integer to read test.a_i directly!