-
Notifications
You must be signed in to change notification settings - Fork 73
Description
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.