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

16f1828 IOC PORTA

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



Joined: 14 Jul 2010
Posts: 9
Location: Switzerland

View user's profile Send private message

16f1828 IOC PORTA
PostPosted: Tue Feb 07, 2012 9:16 am     Reply with quote

I have CCS compiler version 4.128

I want to use the INTERRUPT-ON-CHANGE for PORTA to wake up from sleep.
My problem is that the entry:
// Constants used in ENABLE/DISABLE_INTERRUPTS() are:
#define GLOBAL 0x0BC0
...
#define RA 0x....
...
is missing in the 16f1828.h file!

The 16f1824.h file has some entries about IOC on RA like:
Code:

#define INT_RA                    0x30FF0B08
#define INT_RA0                   0x30010B08
#define INT_RA0_L2H               0x10010B08
#define INT_RA0_H2L               0x20010B08

The datasheet for 16f1828 says that IOC is possible on both, PORTA and PORTB.
Is there a mistake in the compiler CCS or datasheet Microchip?

Have a nice day
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Feb 07, 2012 1:30 pm     Reply with quote

They added INT_RA support for 16F1828 in vs. 4.129. I can see the
#define statements for it in 16F1828.h. Also, the #int_ra directive
compiles with no errors in 4.129 (it didn't work in 4.128).

So if possible, upgrade to vs. 4.129.
duchonic



Joined: 14 Jul 2010
Posts: 9
Location: Switzerland

View user's profile Send private message

PostPosted: Thu Feb 09, 2012 4:48 am     Reply with quote

Just updated to 4.129 and it works. thank you
thientaisodo



Joined: 31 Aug 2009
Posts: 5

View user's profile Send private message

PostPosted: Fri Apr 27, 2012 4:33 am     Reply with quote

Hi guy!
I can't find 16F1828.h. Can you post for me here?
Thanks so much
dyeatman



Joined: 06 Sep 2003
Posts: 1912
Location: Norman, OK

View user's profile Send private message

PostPosted: Fri Apr 27, 2012 4:41 am     Reply with quote

Quote:
I can't find 16F1828.h. Can you post for me here?

No, please don't ask again. It's against forum rules and a CCS
copyright violation.

Anyway, simply having the header file won't do you any good. If you don't
already have the header file the compiler version you are using does
not support the chip. If you have been monitoring this board since 2009
you should already know these things.
_________________
Google and Forum Search are some of your best tools!!!!
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