Transmiting 8 channal adc's data through 8051 uart

Discussion in 'Embedded Systems and Microcontrollers' started by sagar474, Nov 23, 2012.

  1. sagar474

    Thread Starter New Member

    Jul 22, 2010
    16
    0
    I have 8 channel multiplexed 8 bit ADC.
    connected to 8051.
    I need to transfer 8 channel data through UART.

    what is the best way to do that ?

    I have already successes in transmitting single channel data.
     
    Last edited: Nov 23, 2012
  2. MrChips

    Moderator

    Oct 2, 2009
    12,442
    3,361
    A UART is just a hardware communications channel that allows you to transmit one byte at a time. You can use that channel to transmit anything you wish.
     
  3. sagar474

    Thread Starter New Member

    Jul 22, 2010
    16
    0
    f3 f3 a3 c4 dc 33 24 12 f3 f3 a3 c4 dc 33 24 12 f3 f3 a3 c4 dc 33 24 12 f3 f3 a3 c4 dc 33 24 12 f3 f3 a3 c4 dc 33 24 12 f3 f3 a3 c4 dc 33 24 12 f3 f3 a3 c4 dc 33 24 12 f3 f3 a3 c4 dc 33 24 12 f3 f3 a3 c4 dc 33 24 12 f3 f3 a3 c4 dc 33 24 12 f3 f3 a3 c4 dc 33 24 12 f3 f3 a3 c4 dc 33 24 12 f3 f3 a3 c4 dc 33 24 12 f3 f3 a3 c4 dc 33 24 12 f3 f3 a3 c4 dc 33 24 12 f3 f3 a3 c4 dc 33 24 12

    I get this type of streaming data on term.

    now the problem is how to differentiate each sensor data ?

    do any one know the best protocol for that ?
     
  4. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    4,887
    1,012
    I have no idea what you are trying to ask.

    If the question is how to read the protocol data then no one is going to be able to answer that for you without more information. Even then, if it is a proprietary protocol, the question may not be able to be answered.
     
  5. MrChips

    Moderator

    Oct 2, 2009
    12,442
    3,361
    You have to realize that you can send whatever you want.

    The message can be totally verbose, such as:

    ADC #1 is 234
    ADC #2 is 123

    etc.
     
Loading...