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 CCS Technical Support

16F886.h

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







16F886.h
PostPosted: Wed Jul 18, 2007 4:49 am     Reply with quote

hello all.

I have some problem reaching int_RB with 16F886. I took a look to the 16F886.h and compared it to the 16F876A.h , those 2 pics are nearly the same )

i change in 16F886.h line :
#define INT_RB 0x1FF0B08

to :

#define INT_RB 0xFF0B08

after this the int _RB works.

but i have seen this under :

#define INT_RB0 0x010B08
#define INT_RB1 0x020B08
#define INT_RB2 0x040B08
#define INT_RB3 0x080B08
#define INT_RB4 0x100B08
#define INT_RB5 0x200B08
#define INT_RB6 0x400B08
#define INT_RB7 0x800B08

and after checking 16F886 datasheets , this pic have single INT on all of theses PINS

so i tried something like this :

#int_RB4
void RB_isr4(void)
{

printf(" Inside RB4 \r\n");
}

enable_interrupts(INT_RB4);

but #int_RB4 is an unknown preprocessor directive.

Anbody solve this problem ?
Thank you.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Wed Jul 18, 2007 5:15 am     Reply with quote

Which compiler version are you using?
KevinKevin
Guest







PostPosted: Wed Jul 18, 2007 5:33 am     Reply with quote

Sorry

4.032
KevinKevin
Guest







PostPosted: Wed Jul 18, 2007 3:58 pm     Reply with quote

WELL i tried to replace the int_rb HexValue with hexvalue_of_rb_X

exemple :

#define INT_RB 0x200B08 // this value is #define INT_RB5 0x200B08

and the PIC only reach int_rb on rb5 pin change.
Guest








PostPosted: Mon Aug 20, 2007 12:04 pm     Reply with quote

On the 16F887 you have the same problem.
I haved asked ccs about is but they say it isnt supported by the ccs compiler, i think thats wrong.
The Datasheet clearly saves that it support interrup by pin.
Mark Weir



Joined: 11 Sep 2003
Posts: 51
Location: New Zealand

View user's profile Send private message

Take Care
PostPosted: Mon Aug 20, 2007 2:51 pm     Reply with quote

Hi all,

Take care migrating any code to the 16F886 or 887.
The current testing of these devices with CCS functions appears to be minimal and there are many changes between say the 876 and the 886.

I have spent many hours with the assistance of PCM Programmer attempting to get the i2c module working as a slave but it just doesn't at the moment.

I guess we will have to give CCS time to complete their testing.

Cheers

Mark
_________________
Life is too short to avoid asking questions
same same
Guest







same for me
PostPosted: Sat Oct 06, 2007 3:56 am     Reply with quote

no way getting I2C work :/
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