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 timers

Other Parts Discussed in Thread: MSP430G2231

p1SEL is used to select the multiplexed output on the port pins.

in msp430 launchpad which has msp430g2231 microcontroller the pin P1.6 has following output functions multiplexed together

P1.6/          General-purpose digital I/O pin
TA0.1/ Timer0_A, capture: CCI1A input, compare: Out1 output

what does the highlighted line means..??please explain..
  • When configured in capture mode the timer will take a snapshot of the timer count value on a transition of the input pin and copy it to the CCR1 register.  This would be used e.g. in timing external signals.

    When setup in compare mode the timer can be configured to set/clear an output signal when the count value hits the compare value in CCR1.  This is used e.g. in generating PWM signals.

    Have a look at the TimerA chapter of the user guide.

**Attention** This is a public forum