This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5529 SPI data conversion to float problem

Other Parts Discussed in Thread: MSP430F5529, ADS1192

Hey I'm new in AD converting world, I'm trying to acquire some surface biopotentials with an ADS1192, sending data to a MSP430F5529 MCU via SPI. The ADS shifts out data with this format <16 bit STAT><16 bit Channel1data><16 bit Channel2data>. I only need to save data from Channel 1 into a float variable. The UCBxRXBUF is an 8 bit register, so I should acquire 8 most significant bits, save them, acquire the last 8 bits and reunite them into one 16 bit float data. I'm struggling to get this with my code because I can't do bitwise operations with float and I'm not sure about what I can/cannot do, do you have any idea on how I could accomplish my mission?

Best regards

Alberto

**Attention** This is a public forum