Good day,
I have an infrared sensor which implements the protocol RC6.
I am using the board EK-TM4C1295NCPD.
I connected the sensor data line at PM2.
According with spmu365b.pdf, PM2 implements T3CCP0.
T3CCP0 corresponds to Timer3-TimerA.
I want only to detect the push of the button on a remote controller which means that I expect the TIMER_3A to throw an interrupt.
The code is simple:
GPIOPinConfigure(GPIO_PM2_T3CCP0);
GPIOPinTypeTimer(GPIO_PORTM_BASE, GPIO_PIN_5);
SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER3);
TimerClockSourceSet(TIMER3_BASE, TIMER_CLOCK_SYSTEM);
TimerConfigure(TIMER3_BASE, TIMER_CFG_A_CAP_COUNT);
TimerLoadSet(TIMER3_BASE, TIMER_A, 4);
TimerControlEvent(TIMER3_BASE, TIMER_A, TIMER_EVENT_POS_EDGE);
TimerIntEnable(TIMER3_BASE, TIMER_CAPA_EVENT);
IntEnable(INT_TIMER3A);
IntMasterEnable();
TimerEnable(TIMER3_BASE, TIMER_A);
In .cfg file I implemented 51 hardware interrupt which corresponds to: INT_TIMER3A:
Program.global.hwiTimer2A = Hwi.create(51, "&hwiTimer2AFxn", hwi0Params);
The hardware interrupt function:
extern "C" void hwiTimer2AFxn(void)
{
TimerIntClear(TIMER3_BASE, TIMER_CAPA_EVENT);
Swi_post(swiTimer2A);
}
And the application starts but the debug does not hit the break point in interrupt function.
Here is the specification of RC6:
Can you please help me?
Thanks
Horea