subdivide data SRAM and work with float data

20 Jun 2012

Hello I had two specific questions. First I would like to know if starting from an array of float (32 bits each memory location) I can subdivide each memory location in the array in 16-bit registers to increase the size of it, occupying as little space as possible SRAM. If possible to do, how I can do? The second is how to convert 4 bytes I get for the UART to its corresponding value in a data type float. That's all. Best regards.