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.

can we use multiple capture compare register in Two timers(TimerA0 & TimerA1)

Other Parts Discussed in Thread: MSP430G2553

Sir,  in msp430g2553

can we use TimerA0 capture compare register and in port 1.2  and  another TimerA1 capture compare register

in port 2.2(Both timer is used for different operations if no pulse is  applied  to port1.2 means port 1.6 alone should  be high and at that same time port 2.2 is receiving pulse means p2.6 should be low  and         viceversa )

In my design i use CCI to measure the frequency of the pulse given in both the pins(p1.2 & p2.2)

if anyone knows means reply me with some examples code so that i get a cleat cut idea 

thank you

  • TimerA0 and TimerA1 are independent timer modules. Which functions (compare/PWM output or capture input) of which timer’s CCR is available on what pin, can be found in the device datasheet.

    Of course you can use both timers and their CCRs at the same time. However, it is a bit difficult to synchronize the two timers (so their count is always the same) and therefore it is a little bit more complex to combine capture results of both timers into one calculation. But definitely possible.

    (e.g. you can disable SMCLK, switch both timers to SMCLK and reset their counts, then enable SMCLK

  • I’m still (or even more) confused. In your schematics, you connect two pins together for signal 1 and 2. Why that? You can use the same pin for triggering a capture and reading its state.
    The comments about the LED indication and so on do not make any sense without knowing the code that does something with the inputs and outputs. Without the code, pins are just pins without meaning and without any connection.
    In your original post, the description of what you want to do is quite fuzzy. Perhaps you should try again to explain what you want to do (the problem itself, not how you tried to solve it) with a few more sentences. Something like “I have a signal, and when the signal does this, that shall happen”. Then I can perhaps give you a guide how to solve the problem.

**Attention** This is a public forum