Part Number: TMS320F28075
Other Parts Discussed in Thread: SYSBIOS
Hi,
I have an external interrupt on GPIO2.
The ISR function defined in SYS/BIOS as illustrated in the attached screenshot.
Upon init, I configure it in the following way, but I don't reach the ISR function.
On the oscilloscope I see the 1ms wide signal coming every 100ms.
Please advise what could wrong. Did I missed something?
Thanks for your help,
Alex.
EALLOW;
GpioCtrlRegs.GPAMUX1.bit.GPIO2 = 0; // GPIO2
GpioCtrlRegs.GPADIR.bit.GPIO2 = 0; // explicitly input
GpioCtrlRegs.GPAQSEL1.bit.GPIO2 = 0; // // XINT1 Synch to SYSCL
EDIS;
EALLOW;
InputXbarRegs.INPUT4SELECT = 2; // XINT1 is GPIO2
EDIS;
XintRegs.XINT1CR.bit.POLARITY = 1; // Interrupt is selected as positive edge triggered.
XintRegs.XINT1CR.bit.ENABLE = 1; // Enable XINT1