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.

ADC output

Other Parts Discussed in Thread: TM4C123GH6PGE

I am using TM4C123GH6PGE and i am configuring ADC0 module and getting the digital value in PuTTY. If i want to see my output independent of conneting to PC by providing Power Supply How can i do this and check my output in oscilloscope. Thank You..

  • Hello Guntoju,

    SQSA: If you want an output on the scope, then connect the UART TX to the scope. Of course this would be really difficult reading the data and making sense out of it. Hence it would be worthwhile to rely on the PuTTY or Console.

    So what is that you would with the output on the scope?

    Regards
    Amit
  • I want to see the output of given input from a sensor
  • GUNTOJU ANAND KUMAR said:
    I want to see the output of given input from a sensor

    If we assume that sensor supplies an analog output - and that output is constrained w/in acceptable MCU's ADC input levels - then output via UART to PC is most normal.  

    Still hard to understand your desire for scope view.   Do you seek to test/verify the ADC's output - by comparing to the scope?

    Might a better method result from your "injecting" known/fixed voltages into the ADC - and then comparing the ADC's reading?

  • hello cb1_mobile
    If a signal conditioning block is used after sensor output it would be known (minimum and maximum) values to ADC.thank you
  • GUNTOJU ANAND KUMAR said:
    If a signal conditioning block is used after sensor output it would be known (minimum and maximum) values to ADC

    Assuming that the signal condx block is proper - still (a mystery) is the "replacement" value of the scope over ADC output (via a UART) for monitoring upon a PC.

    Should your (unexplained) desire be to create a "pseudo DAC" - any of the MCU's PWM Generator modules may well serve - and that may be well monitored upon a scope.

    Should your (unexplained) desire be to "escape the PC" then a small, text Lcd may receive & display the ADC's output post adequate processing...

    Appears neither Amit nor myself have really understood your goal...

  • Hello Guntoju,

    The you must be connecting the scope probe to the senor output (of course buffer the same to reduce loading due to a passive probe) and not the ADC output on a scope.

    Regards
    Amit
  • Poster's reluctance to provide caring, more detailed description (despite multiple requests) hampers real understanding.
    Poster guidelines (somewhere that voice rings) once again - prove so sorely missed...
  • My goal is to make microcontroller independent from pc and getting the digital data from analog signal(sensors to 24 channels of ADC ) stored in memory of MCU.Can you suggest me if there is a possibility of storing this digital data in Mcu or any external memory is required.
  • Hello Guntoju

    Clearly, there is more to the post. You can store the data on a USB stick or a SD Card. To do so you would need to "study" the examples in TivaWare and then co-relate to your board (I suspect it is the DK-TM4C123, in which case some tweak of the example code).

    Regards
    Amit
  • hello amit sir

    yes Amit sir it is DK-TM4C123 Development board.The example you are mentioning is the data logger example or any other?

    If there is any other example program  send me the link.

    regards anand 

  • Hello Anand

    It is the data logger example in TivaWare examples/boards/dk-tm4c123g

    Regards
    Amit
  • Thank you Amit Sir I will study it.I am using CCSv5.4 is that required for upgrading to CCv6.
    regards anand
  • Hello Anand,

    You can use either of them. I have versions CCSv5.5 and 6.0 and the example code works well for both of them,

    Regards
    Amit
  • Hello Amit Sir,

    If I want to use a sensor that is not in the driver library of dk-tm4c123 board can i get drivers for the selected or TI provides the particular sensor driver libraries ?

    Regards

    Anand

  • Hello Anand,

    Then you would need to build the driver for the device. There are 1000's of sensors and it is not possible to roll out the same for each one of them. The existing examples work as guide/template.

    Regards
    Amit
  • GUNTOJU ANAND KUMAR said:
    I am using TM4C123GH6PGE and i am configuring ADC0 module and getting the digital value in PuTTY. If i want to see my output independent of connecting to PC by providing Power Supply How can i do this and check my output in oscilloscope. Thank You..

    and later (after some "slight" prompting):

    GUNTOJU ANAND KUMAR said:
    My goal is to make microcontroller independent from pc and getting the digital data from analog signal(sensors to 24 channels of ADC ) stored in memory of MCU.Can you suggest me if there is a possibility of storing this digital data in Mcu or any external memory is required.

    Poster's revamped writing is far easier to understand - and better focuses upon his objective.   Gone is use of Putty and the requirement to "check output on a scope." that "scope output" bit beyond both Amit & this reporter...

    We note too that not a single ADC channel has escaped your note.  (you paid for them, all)   Yet - KISS dictates that your, "chances for success" rise dramatically if you limit your number of analog channels - and build successes gradually & methodically - rather than attempting "everything" in one go!

    Your search for "more & more" sensors shifts some attention to your (possible) overload of sensors w/analog outputs.   Many modern sensors now embed a small MCU - and "talk back" via I2C or SPI.  You'd be wise to extend your investigation to such "non-analog" sensors - and you'd enjoy writing unique program code for these as well...

  • hello Amit Sir,
    In logger example 4 Analog channels, 9-axis sensors etc., are used. Did this code works If i want to use all 24 analog channels for logging by removing sensors acquisition and adding analog channels.
    REGARDS
    ANAND KUMAR.G
  • Hello Anand,

    You may use the 24 channels for analog sensing. However do note that using the 24 channels (if mapping is allowed on the device) will drop the effective sampling rate to 83Ksps which should be first checked w.r.t your application requirement.

    Regards
    Amit