|
|
View previous topic :: View next topic |
Author |
Message |
Mike M. Guest
|
Which port caused interrupt |
Posted: Mon Dec 03, 2001 5:28 pm |
|
|
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
|
Re: Which port caused interrupt |
Posted: Mon Dec 03, 2001 6:45 pm |
|
|
:=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 |
|
|
|
|
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
|