Rex K
Joined: 18 Jun 2015 Posts: 2
|
Clearing IOC Interrupt Flag (16F1783) |
Posted: Thu Jun 18, 2015 5:53 pm |
|
|
I am using 3 I/O inputs (A0,1,2) as IOCs on 16F1783. I am new at CCS C, but some experience at assembler. According to the data sheet, the IOC interrupt flag bit should be reset with an AND instruction to prevent loss of additional events.
What is the defined name for the IOC flag register?
The hardware data sheet lists this register as IOCxF where x is A. Looking at the at the 16F1783.h file and there are several defined IOC: INT_IOC & INT_IOC_Ay where y is 0-7.
Rex Klopfenstein
Bowling Green, OH |
|