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

what does int_rb0 ---int_rb5 means for 12f675

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



Joined: 24 Jun 2004
Posts: 285

View user's profile Send private message

what does int_rb0 ---int_rb5 means for 12f675
PostPosted: Thu Jan 06, 2005 5:21 pm     Reply with quote

in 12f675.h there is some interrupt definition, except the int_ext, there are
Quote:

#define INT_RA 0x0B08
#define INT_RA0 0x010B08
#define INT_RA1 0x020B08
#define INT_RA2 0x040B08
#define INT_RA3 0x080B08
#define INT_RA4 0x100B08
#define INT_RA5 0x200B08


what do these mean? how I can use them?
Ttelmah
Guest







PostPosted: Fri Jan 07, 2005 3:17 am     Reply with quote

Look at the interrupt defintions in the processor data sheet. The 675, supports 'interrupt on change', on each pin of the GPIO port, with the pins being selected by the IOCB register (this is unusual, normally there is just a generic select for al the high bits of portB). Each of these definitions, enable this interrupt for a single pin. The top bytes, are the 'mask' to select which pin will interrupt. You can 'or' these together, to give more than one pin enabled at a time. Remember that as with all 'interrupt on change' inputs, your handler must read the port, and if using more than one, you will need to determine which pin was involved.

Best Wishes
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