View previous topic :: View next topic |
Author |
Message |
duchonic
Joined: 14 Jul 2010 Posts: 9 Location: Switzerland
|
16f1828 IOC PORTA |
Posted: Tue Feb 07, 2012 9:16 am |
|
|
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
|
|
Posted: Tue Feb 07, 2012 1:30 pm |
|
|
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
|
|
Posted: Thu Feb 09, 2012 4:48 am |
|
|
Just updated to 4.129 and it works. thank you |
|
|
thientaisodo
Joined: 31 Aug 2009 Posts: 5
|
|
Posted: Fri Apr 27, 2012 4:33 am |
|
|
Hi guy!
I can't find 16F1828.h. Can you post for me here?
Thanks so much |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1934 Location: Norman, OK
|
|
Posted: Fri Apr 27, 2012 4:41 am |
|
|
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!!!! |
|
|
|