DLPU057A March 2018 – April 2022
Step 1: Use an integer pointer to access the floating point value of ‘Data’ (which contains 1.0)
Uint32* DataInt = (Uint32*) &Data;
Step 2: Split the value stored in the integer pointer into bytes.
The value of the integer pointer (*DataInt) is 0x3E800000.
Hence the 4 bytes are 0x3E, 0x80, 0x00 and 0x00 respectively
Step 3: Send each byte (LSB first) in the SPI command
Byte 1 = 0x00
Byte 2 = 0x00
Byte 3 = 0x80
Byte 4 = 0x3E