Hey
Can I get ACLK, SMCLK and MCLK out on a pin, so I can measurement the frequency with a oscillascope and adjust DCOCTL reg. DCO and BCSCTL1 reg. RSEL ?????
#include "msp430f2272.h"
#define DCO_FREQ_VALUE 0x60 // DCOCTL reg. DCO = 3
#define RSEL_FREQ_VALUE 0x07 // BCSCTL1 reg. RSEL = 7
int main( void )
{
// Stop watchdog timer to prevent time out reset
WDTCTL = WDTPW + WDTHOLD;
P1DIR |= BIT4; //Output
P2DIR |= BIT0; //Output
P2SEL |= BIT0; // enable aclk on pins
P1SEL |= BIT4; //enable SMCLK
BCSCTL1 = XT2OFF | RSEL_FREQ_VALUE; // Set DCO to Max allowable freq. and disable xtal2
DCOCTL = DCO_FREQ_VALUE;
while(1){}
return 0;
}