Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: EXP430G2 (2553) problem with ACLK

$
0
0
Hello, I am noticing some strange behavior with the G2553 when selecting ACLK as clock source for timer1. Timer0 can use ACLK as clock source but its output is affected if timer1 also uses ACLK; timer1 doesn’t seem to be able to use ACLK at all. Both timer appears to output properly with SMCLK. I use output mode 4 to monitor the timer0 and timer1 output on P1.1 and P2.0 respectively. The following code is used for experiment by changing PxSEL and TASSEL. The outputs that confuses me are marked in RED in the table following the code. Can someone please explain to me why timer1 with ACLK behaves that way? Can that information be found in the datasheet? Many thanks, Foon #include void clockConfig () { BCSCTL1 = CALBC1_1MHZ; // Set DCO DCOCTL = CALDCO_1MHZ; } void main ( void ) { WDTCTL = WDTPW + WDTHOLD; // Stop WDT clockConfig(); P1OUT = BIT1; P1DIR = BIT1; P1SEL = BIT1; TACCR0 = 10; TACCTL0 = OUTMOD_4; TACTL = TASSEL_1 | MC_1; P2OUT = BIT0 ; P2DIR = BIT0 ; P2SEL = BIT0; TA1CCR0 = 10; TA1CCTL0 = OUTMOD_4; TA1CTL = TASSEL_1 | MC_1; } Hardware: EXP430G2 ( MSP430G2553 ) Kit crystal installed with 12.5pf ceramic caps oscilloscope Software: compile with CCS 6.1.3 programmed with mspdebug

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>