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

INT-B Not fully qualified for 18F4410 in CCS...?

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



Joined: 16 Apr 2007
Posts: 26
Location: Arizona

View user's profile Send private message Visit poster's website

INT-B Not fully qualified for 18F4410 in CCS...?
PostPosted: Thu Aug 02, 2007 12:12 pm     Reply with quote

We are running CCS 4.025

We are porting an application from a 16F887 to a 18F4410. For the Microchip descriptions of how the interrupts function on PORT-B for both devices we find them to be identical. In our app we are looking for a state change on INT-B4...

In the device definition file for the 887 the primary interrupt is defined as:

#define INT_RB 0xFF0B08

and Int-On-Change as:

#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

The 4410 only defines:

#define INT_RB 0xFFF208

With no qualification for the Int-On-Change values

Can this be resolved and added to the int-on-change values to the 4410 def file..?
_________________
Thank you,
Chris
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Aug 02, 2007 12:19 pm     Reply with quote

The two PICs don't have the same features. The 16F887 has much more
detailed features for PortB than the 18F4410. The 16F887 has an IOC
register and a WPUB register. The 18F4410 does not.
ChrisL



Joined: 16 Apr 2007
Posts: 26
Location: Arizona

View user's profile Send private message Visit poster's website

PostPosted: Thu Aug 02, 2007 1:03 pm     Reply with quote

PCM Programmer,

In description they sound identical, but i missed the fact the the IOCB register is missing in the 4410. I guess bit testing is the only other solution. Thanks for your help....
_________________
Thank you,
Chris
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