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

Which port caused interrupt

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Mike M.
Guest







Which port caused interrupt
PostPosted: Mon Dec 03, 2001 5:28 pm     Reply with quote

If I have 2 serial ports (one HW, one SW) and I am using the RDA interrupt, how can I tell which port caused the interrupt?
I searched the archives but all I got were people asking how to use more than one port. I can do that, I just want to be able to tell which port to read from when the interrupt comes in.

Thanks,
Mike
___________________________
This message was ported from CCS's old forum
Original Post ID: 1437
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: Which port caused interrupt
PostPosted: Mon Dec 03, 2001 6:45 pm     Reply with quote

:=If I have 2 serial ports (one HW, one SW) and I am using the RDA interrupt, how can I tell which port caused the interrupt?
:=I searched the archives but all I got were people asking how to use more than one port. I can do that, I just want to be able to tell which port to read from when the interrupt comes in.

INT_RDA is only used by the hardware USART. It's not
used by the software USART.

You can use INT_EXT with the software USART, to get a
receive interrupt. Set the edge to H_TO_L, then use
getc() to get the character when you're inside the INT_EXT isr.

___________________________
This message was ported from CCS's old forum
Original Post ID: 1440
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