Part Number: MSP-EXP430F5529LP
Other Parts Discussed in Thread: TRF7970A
Hi,
I want to add timer to the "F5529LP_TRF7970A_ALL_NFC_MODES" project but i can't.
In your code there is a one function about clocks:
void MCU_init(void)
{
WDT_A_hold(__MSP430_BASEADDRESS_WDT_A__);
// Setup XT1 and XT2
XT1_XT2_PORT_SEL |= XT1_ENABLE + XT2_ENABLE;
// Set Vcore to accomodate for max. allowed system speed
SetVCore(3);
// Use 32.768kHz XTAL as reference
LFXT_Start(XT1DRIVE_0);
// MCU Frequency = 25MHz
Init_FLL_Settle(MCLK_MS_COUNT, 762);
}
I wrote the following code between the init lines.
TA0CCTL0 = CCIE;
TA0CCR0 = Count_No;
TA0CTL = TASSEL_2 + MC_1 + TACLR;
What is the value for 1ms timer for Count_No?
and the intterupt vector :
#pragma vector = TIMER0_A0_VECTOR
__interrupt void TIMER0_A0_ISR (void)
{
// 1ms timer code...
}
Thanks for your attention...