Hello,
This is my first time using the Timer A Capture/Compare Mode and for what I am doing I need to do this by hardware, since I need a faster frequency.
The question is how can I specify to which port I set the output signal ?
#include "msp430g2231.h"
/* Function Definitions */
void main(void) {
WDTCTL = WDTPW + WDTHOLD; // disable watchdog
P1OUT=BIT0;
P1DIR=0x41; //P1.0 y P1.6 to relay(LED)
//BCSCTL1 = CALBC1_1MHZ; // Set DCO to calibrated 1 MHz.
//DCOCTL = CALDCO_1MHZ;
TACCR0 =10; // A period of 10.
TACCR1= 8; //A period of 8.
TACTL = TASSEL_2 + MC_1 ; // SMCLK,up mode,
TACCTL0= OUTMOD2;
__enable_interrupt();
for(;;) { // Do nothing while waiting for interrupts. This would be an
} // an ideal place to use low power modes!
} // main