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.

TM4C129EKCPDT: Pulse Generation and same pulse width measurement and pulse voltage read using ADS9224R

Part Number: TM4C129EKCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL

Hi, I am using TM4C129EKCPDT with ADS9224R and TI-RTOS for Pulse generator and pulse width measurement and pulse voltage. 

Minimum pulse width 10us. What will be the right way to generate and measure the 10us of pulse width and pulse voltage??

How to handle 10us pulse width measurement and pulse voltage read in ti-rtos. 

Regards,

Sumit Chaulya

  • Hi,

      As far as capturing input for measurements, there are two hardware modules in TM4C that can do the job. One is the PWM module and the other is General Purpose Timer module. TI-RTOS has drivers for PWM module to handle input captures and PWM generation. Please refer to the TI-RTOS PWM driver for Tiva device. https://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/tirtos/2_14_04_31/exports/tirtos_full_2_14_04_31/docs/doxygen/html/index.html. The API to use for input capture measurement will be PWM_getPeriodCounts. TI-RTOS does not have drivers for General Purpose Timer. If you want to use General purpose timer for input capture, you will need to use the TivaWare drivers for this module. 

    If you want to use TI-RTOS driver for input capture then I will suggest you first start with a TI-RTOS PWM example. You can download the example from Resource Explorer. You can modify this example for your application which will be easier than starting from scratch. 

    If you want to use Timer module to perform input capture, you can reference this bare-metal example in C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl\timer_edge_capture. This example counts edges but you can modify to count times. 

    For measuring voltage, you will need to use ADC. TI-RTOS does not have drivers to support ADC module. You will need to use TivaWare drivers for it. There are examples that you can find in C:\ti\TivaWare_C_Series-2.2.0.295\examples\peripherals\adc and C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl\adc_udma_pingpong.