Other Parts Discussed in Thread: SYSBIOS
I am using HRCAP3 as an interrupt for determining when pin 51 is high or low. When I apply GND to that pin I get the following error code and the program stops executing.
ti.ti.sysbios.family.c28.Hwi: line 1032: E_unpluggedInterrupt: Unplugged interrupt flagged: intr# 19
xdc.runtime.Error.raise: terminating execution
This is what my interrupt looks like for HRCAP3. What am I doing to cause this?
//-----------------------------------------
// ======== SWGInput4HWI ========
//-----------------------------------------
Void SWGInput4HWI()
{
// unsigned char SWGInput4 = 1;
GpioDataRegs.GPBTOGGLE.bit.GPIO34 = 1; // toggle LED9 using "TOGGLE" (1 = ON)
EALLOW;
HRCap3Regs.HCCTL.bit.FALLINTE = 0; // Disable falling edge interrupts
HRCap3Regs.HCCTL.bit.RISEINTE = 0; // Disable rising edge interrupts
// GpioDataRegs.GPBTOGGLE.bit.GPIO39 = 1; // toggle ON LED10 using "TOGGLE" (1 = ON)
if( GpioDataRegs.GPBDAT.bit.GPIO56 )
SWGInput4 = 1;
else
SWGInput4 = 0;
Mailbox_post(SWGInput4Update, &SWGInput4, BIOS_NO_WAIT);
HRCap3Regs.HCICLR.all = 0x001F; // Clear all HRCAP interrupts
HRCap3Regs.HCCTL.bit.FALLINTE = 1; // Re-enable falling edge interrupts
HRCap3Regs.HCCTL.bit.RISEINTE = 1; // Re-enable rising edge interrupts
HRCap3Regs.HCICLR.bit.INT=1; // Clear HRCAP interrupt flag
PieCtrlRegs.PIEACK.bit.ACK4=1; // Acknowledge PIE Group 4 interrupts.
EDIS;
}