CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

3.224 dosn't recongnize INT_COMP2 for 16F877A

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Amity
Guest







3.224 dosn't recongnize INT_COMP2 for 16F877A
PostPosted: Sun Jan 01, 2006 5:43 pm     Reply with quote

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
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jan 01, 2006 6:15 pm     Reply with quote

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
Amity
Guest







3.224 dosn't recongnize INT_COMP2 for 16F877A
PostPosted: Mon Jan 02, 2006 6:03 pm     Reply with quote

Thank you PCM,
Amity
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group