Adc with decimal value

Discussion in 'Programmer's Corner' started by feitanx, May 31, 2010.

  1. feitanx

    Thread Starter New Member

    May 31, 2010
    1
    0
    How to get an adc with decimal value and send it through rs232 with 10 bit resolution? In CCS C codes please
     
  2. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
    Have a search for 16bit binary to BCD routine. There should be loads out there.
     
  3. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    You realy do not have to convert on the MCU side. I always use a simple binary protocol, and use the power of the PC to convert the data.
     
Loading...