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 CCS Technical Support

MRT

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



Joined: 07 Jun 2010
Posts: 50
Location: Banned - spammer

View user's profile Send private message

MRT
PostPosted: Mon Nov 28, 2011 12:36 am     Reply with quote

sdrgfzv
_________________
Banned for spamming his own posts


Last edited by vortexe9000 on Sun Feb 19, 2012 7:46 am; edited 2 times in total
TMLtech



Joined: 20 Jul 2011
Posts: 21
Location: Finland

View user's profile Send private message

PostPosted: Mon Nov 28, 2011 2:01 am     Reply with quote

Int_rda only works if you use hardware uart.
Ttelmah



Joined: 11 Mar 2010
Posts: 19498

View user's profile Send private message

PostPosted: Mon Nov 28, 2011 5:32 am     Reply with quote

If you use a chip with multiple hardware UART's, you will have INT_RDA, and INT_RDA2 (and even RDA3, and 4, in chips like the 24FJ128DA106).

You can potentially give a 'semi' interrupt driven behaviour using the software, but with a _lot_ of limitations, by connecting the incoming data to a line supporting a hardware level interrupt. Program this to receive the character when it falls. Problems, _only_ ever 'half duplex' (you can only send _or_ receive with a software UART), and your code will stick inside the interrupt code for the entire character time, potentially degrading the whole system....

Alternative, add an external UART. Phillips do some I2C UART's, giving the advantage of hardware buffering, or (typically similar/less cost), use a really small PIC with a hardware UART, and connect this to receive the data for you.

Best Wishes
temtronic



Joined: 01 Jul 2010
Posts: 9221
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Nov 28, 2011 8:54 am     Reply with quote

You don't say how many UARTs you're needing OR the speed of them !. If less than 4, there are PICs that will work by themselves or use external UARTs in I2C or SPI devices.
If more than 4, then the 'network' might be better served by using RS485, RS488 or other devices. You could even 'daisychain' the RS232 devices to one PIC with hardware UART and use software to figure out who is transmitting to you.One Z80 computer was famous for this type of structure.
There is a tradeoff in hardware vs. software so it depends upon where your strengths lie, money for the project, and overall scope.
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