Skip to content

Problem with using interrupt on Kit_XMC14_2Go #429

@integratedjoy

Description

@integratedjoy

I am using the Kit_XMC14_2Go to talk to some sensor IC via SPI. To initiate the SPI sequence, the controller is instructed to wait for a pin to go low. I am intending to solve this with an interrupt. However, the implemented solution in Arduino is not working.
After executing the command
attachInterrupt(digitalPinToInterrupt(9), measurementCompleteISR, FALLING);
the subsequent execution of the remaining code is stopped.
Checking the github, I saw that you implemented the attachInterrupt command for the XMC1400. Do you have a minimal working example for this board using an external interrupt? I could not identify one from the available examples. I assume that only pin 9 or P1.4 is capable of producing such an interrupt.

I saw the section on readthedocs talking about using interrupt 0 instead of 1 to prevent problems with the serial communication, but the attachInterrupt command should use interrupt 0 anyways to my understanding.

I am using the Arduino IDE in version 2.3.7 and the release 4.0.1 from this repo.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions