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.

MSP430 Capture/Compare Blocks

Other Parts Discussed in Thread: MSP430F5418A

Hi there,

I'm using MSP430F5418A in my design. There are some interrupt pins from other chips which are connected to MSP430 TA0.x pins. I wonder if I can use use the

capture/compare function to capture the interrupt and execute the corresponding functions. If the usage isn't correct, could you tell me how to use the Capture/Compare Blocks?

And from what I said above, could you tell me a way to detect the interrupt and correspond it immediately?

 

Thank a million

Nick

  • If you are using the TA0.x pins that are also associated with the Port 1 signals, then you could actually use the Port 1 interrupt capabilitiy for this purpose.

    If you need the Timer capture mode, the MSP430x5xx/MSP430x6xx Family User's Guide (Rev. I) is a resource I would suggest reviewing, specifically Chapter 14 on the Timer A.  Section 14.2.4.1 discusses the capture mode of the TimerA.  A capture occurs on the selected edge of the input signal.  When this happens, the timer value is copied into the TAxCCRn register and the interrupt flag CCIFG is set.  This can then interrupt the CPU and you can take action on the event.

     

**Attention** This is a public forum