Hello!
I am working with EVM5515 and CCSv4.
I've done a simple project to prove the SAR interrupts. I declared a loop in the main in order to wait for SAR interrupts. Once a SAR interrupt is done, I increment the value of a variable. However, I wanted that the interrupt occurred when I press a button (SW6-SW15). However, There are lots of interrupts even if I do not press any button.
I Don't know why. I configurated SAR in this way:
void
Init_SAR(void)
{
*SARCTRL = 0x3C00;
// select AIN3, which is GPAIN1
//*SARDATA;
*SARCLKCTRL = 0x0031;
// 100/50 = 2MHz
*SARPINCTRL = 0x7104;
*SARGPOCTRL = 0x0040;
}
I am a little lost. Please help.
Thankyou!