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.

How can i send 10 bits in the code example(msp430x20x3_ta_uart2400) from ADC10 conversion.

Other Parts Discussed in Thread: MSP430G2231

HELLO

I´VE  USED THE MSP430G2231 TO SEND DATA FROM ADC10 at COMPUTER PORT(VIA RS232), I USED A CODE EXAMPLE (msp430x20x3_ta_uart2400), BUT THIS   TWO_BYTE sent FOR EACH TIME, . I WOULD LIKE SEND 1 BITS FROM ADC10  AT SAME TIME. WHAT CAN I DO?

 

  • serial transmissions are byte-wise (8 or 7 bits per transmission). If you want to send more, you need to send it in two pieces (for 9..16 bit values) and assemble it on the receiving side. Or you need to reduce your values to <=8 bit (by right-shifting) with a loss of information.
    That's the way serial transfer (UART/RS232) is standardized.

**Attention** This is a public forum