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_RDA

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



Joined: 01 Feb 2011
Posts: 32
Location: 53

View user's profile Send private message AIM Address

#INT_RDA
PostPosted: Thu Apr 26, 2012 8:44 am     Reply with quote

I've just got my serial buffer (based on ex_sisr) working on com1 of my 18f45k22.

Now I'm trying to do the same for a 2nd com port - com2.

Does INT_RDA only notify for data arriving in COM1 or can it be configured for COM2 also?

In other words how do I set up an interrupt to notify me when data is received on com2.

Any pointers would be much appreciated.
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Thu Apr 26, 2012 8:56 am     Reply with quote

Hi,

You do it exactly the same way, except you use INT_RDA2. So, you just need to create a 2nd interrupt handler for the 2nd UART.

John
jmaudley



Joined: 01 Feb 2011
Posts: 32
Location: 53

View user's profile Send private message AIM Address

PostPosted: Thu Apr 26, 2012 9:03 am     Reply with quote

Thanks for the reply John.

I just tried it before you responded and it's as simple as that.

Thanks again.
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