View previous topic :: View next topic |
Author |
Message |
Amity Guest
|
3.224 dosn't recongnize INT_COMP2 for 16F877A |
Posted: Sun Jan 01, 2006 5:43 pm |
|
|
Hello,
V 3.224 doesn't recognize enable_interrupts(INT_COMP2) for 16F877A. It doesn't seem ccs has INT_COMP2 for 16F877A.H, Way to work arround it?
Thank you,
Amity
Code: | ////////////////////////////////////////////////////////////////// INT
// Interrupt Functions: ENABLE_INTERRUPTS(), DISABLE_INTERRUPTS(),
// EXT_INT_EDGE()
//
// Constants used in EXT_INT_EDGE() are:
#define L_TO_H 0x40
#define H_TO_L 0
// Constants used in ENABLE/DISABLE_INTERRUPTS() are:
#define GLOBAL 0x0BC0
#define INT_RTCC 0x0B20
#define INT_RB 0x0B08
#define INT_EXT 0x0B10
#define INT_AD 0x8C40
#define INT_TBE 0x8C10
#define INT_RDA 0x8C20
#define INT_TIMER1 0x8C01
#define INT_TIMER2 0x8C02
#define INT_CCP1 0x8C04
#define INT_CCP2 0x8D01
#define INT_SSP 0x8C08
#define INT_PSP 0x8C80
#define INT_BUSCOL 0x8D08
#define INT_EEPROM 0x8D10
#define INT_TIMER0 0x0B20
#define INT_COMP 0x8D40
#list |
|
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Jan 01, 2006 6:15 pm |
|
|
Quote: | It doesn't seem ccs has INT_COMP2 for 16F877A.H |
There is only one interrupt for both comparators. This is explained in the
16F877A data sheet, in Section 12.6.
The following thread is about the 18F2420, but the comparator interrupts
are handled in the same way, so it has useful information:
http://www.ccsinfo.com/forum/viewtopic.php?t=22641 |
|
![](templates/subSilver/images/spacer.gif) |
Amity Guest
|
3.224 dosn't recongnize INT_COMP2 for 16F877A |
Posted: Mon Jan 02, 2006 6:03 pm |
|
|
Thank you PCM,
Amity |
|
![](templates/subSilver/images/spacer.gif) |
|