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.

Debug capture with external signal

Other Parts Discussed in Thread: TMS320C28346

It took me one day to figure out something so I want to share it to save your time.

In essence when you use external signal which is free running,.set capture in free run mode. 

I am using TMS320C28346. I wanted to use the capture peripheral so I took a signal generator and connected it to the appropriate pin. Strangely enough every time I stop the debugger to check the contents of the CAP registers I find that they are changing and always equal the counter register value. I expected it to show the value of the pulse width.

After several hours of debug I found out that if there is a free running signal on the capture pin you must set capture in "Free run" mode otherwise the capture registers will not show the desired result when you stop the processor to check the contents.

sunil