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.

Compiler/TM4C123GH6PM: c

Part Number: TM4C123GH6PM


Tool/software: TI C/C++ Compiler

AOA !

I need to enable interrupts and start timer for one interrupt and stop at other and measure the time to find out the speed.

Project: Human speed detector 

2 Infrared detector modules one at the start and 2nd at end and idk how to configure the interrupts and how to measure time ! 

kindly help ?

  • I suggest you use a general purpose timer and "Input Edge-Time Mode". This mode is described in section 11.3.2.4 of the datasheet. Download TivaWare and look the timer functions described in chapter 29. If you have not already done so, I suggest you start with some of the examples in TivaWare so that you are accustomed to the Code Composer GUI and the compiler.