I removed INTCON and PIE0 as per:
https://www.picbasic.co.uk/forum/sho...517#post154517
The HeartbeatLED doesn't hang any more, but the ISR doesn't seem to get triggered.
Richard gives me hope; the 16F18875 is part of the same family as the 16F18877:
https://www.picbasic.co.uk/forum/sho...529#post154529
I have no idea what section of the datasheet I'm supposed to be looking at.You need to redo the section that #defines the interrupt bit locations.
It's in the section that looks like this...
You need to get the datasheet for the part and change the 'PIR0,INTF, PIE0,INTE' statements to match.Code:#define INT_INT PIR0,INTF, PIE0,INTE ;-- External INT #define IOC_INT PIR0,IOCIF, PIE0,IOCIE ;-- Int On Change *
https://www.picbasic.co.uk/forum/sho...497#post154497
EDIT: Found this from MpgMike (got some reading to do):
https://support.melabs.com/forum/pic...tant-interrupt




Bookmarks