Hello every one
The MSP432 ADC uses has a resolution of 14 bits, but de ADC14MEMx (where the ADC data is saved) has 16 bits, I want to transfer that information through UART to my PC, but UART let me transfer only 8 bits, so I have to split the 16 bits of the ADCMEMx in two parts and send them one afther another.
this is a ADC14: 0001111110111000
this is his HEX: 1FB8
Then I have to send the HEX value through UCA0TXBUF:
UCA0TXBUF = 0xB8; // First
UCA0TXBUF = 0x1F; //Second
My question is: How I can save de binary data of ADC14MEM in an hexadecimal variable and split it to send it?
My goal is to use all the speed of UART to transfer the data of an analog Acelerometer.