Tool/software: TI C/C++ Compiler
Dear sir,
i am using MCLK_DEF 16
UCA2CTLW0 |= UCSWRST; // **Put state machine in reset**
UCA2CTLW0 |= UCSSEL_2; // CLK = ACLK
#if MCLK_DEF == 12
UCA2BRW_L = 0x1E; //
UCA2BRW_H = 0x05; //
UCA2MCTLW = 0x5D00; //
#endif
#if MCLK_DEF == 16
UCA2BRW_L = 0xD3; //
UCA2BRW_H = 0x06; //
UCA2MCTLW = 0x0500; //
#endif
UCA2CTLW0 &= ~UCSWRST; // **Initialize USCI state machine**
UCA2IE |= UCRXIE;
P2SEL|= BIT2 + BIT3;
#pragma vector=USCI_A2_VECTOR
__interrupt void USCI_A2_ISR(void)
{
}
my issue is my uart interrupt is not triggering i have selected this pins as pheripheral P2SEL|= BIT2 + BIT3;
my uart configuration is above ...
suggest me the answer as soon as possible because i m running out of time on this project ..