This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR2522: No available timer to handle GPIO polling

Part Number: MSP430FR2522


Hi

We are using the MSP430 to handle a captivate touch keypad. The MSP is acting as an i2c slave (i2c register) and the software is generated from Captivate Design Studio.

In addition to handling the touchpad the MSP also needs to poll one of the GPIOs once every 300ms to handle a tamper switch. In order to do this we need to set a timer but since our MSP only has 2 timers (A0 and A1) and both the timers are being used by the i2c slave implementation my question is if you have any other options to handle the polling?

Not that the tamper solution does not allow us to set an interrupt on the GPIO and handle it without polling.

The (default) i2c implementation uses both eTimerDelayedFunction_A and eTimerDelayedFunction_B in FunctionTimer.h

#define TIMER__CCR0_VECTOR (TIMER1_A0_VECTOR)
#define TIMER__CCR1_VECTOR (TIMER1_A1_VECTOR)

Regards,

Martin

**Attention** This is a public forum