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 *
Somewhere along the line I got a file for the 16F18326... don't remember where or who did it.
Yours would be similar. I've attached it for ref, but I haven't checked or tested it.




Bookmarks