Created Tue, 05 Jan 2016 18:44:40 +0000 by Sweis
Tue, 05 Jan 2016 18:44:40 +0000
Hello
I am using an Max32, I designed a Bluetooth Shield for the board. On INT0 I've connected the output from the bluetooth module that indicates the connection state. If it is connected the interrupt pin is pulled high, if it disconnects the interrupt pin is pulled low. I want to use the "CHANGE" interrupt to store all the settings and and if it reconnects to reload the old settings. But I cant get the "CHANGE" intterupt to work, I changed the pin to a digital input, inserted a function to check for the status of the pin then it works but I will like to use it as an interrupt. Can anyone help?
Thank you
Tue, 05 Jan 2016 19:00:06 +0000
The PIC32 microcontroller doesn't understand the concept of a CHANGE interrupt, only RISING or FALLING.
If you want CHANGE you will have to do it through the Change Notification pins not the INT pins. You might have some luck with my ChangeNotification library, but it is quite old now and things have probably changed in the compiler since I wrote it.
https://github.com/MajenkoLibraries/ChangeNotification
Wed, 06 Jan 2016 16:24:54 +0000
Thank you.