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.

Haclogen generated code for GIO Interrupt does not work

Other Parts Discussed in Thread: HALCOGEN

Hi All,

The Halcogen code for Interrupts on GIOA&B does not work

void gioHighLevelInterrupt(void)
{
uint32 offset;

/* USER CODE BEGIN (14) */

/* USER CODE END */
if (gioREG->OFF1 != 0U)
{
offset = gioREG->OFF1 - 1U;
if (offset >= 8U)
{
gioNotification(gioPORTB, offset - 8U);
}
else
{
gioNotification(gioPORTA, offset);
}
}
/* USER CODE BEGIN (15) */
/* USER CODE END */

}

As stated in the TRM reading gioREG->OFF1 clears the register.  So, regardless of the pin or if it is GIOA or GIOB, offset always equals 0xFFFFFFF7.

Cheers,

Alan