|
|
View previous topic :: View next topic |
Author |
Message |
vortexe9000
Joined: 07 Jun 2010 Posts: 50 Location: Banned - spammer
|
MRT |
Posted: Mon Nov 28, 2011 12:36 am |
|
|
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
|
|
Posted: Mon Nov 28, 2011 2:01 am |
|
|
Int_rda only works if you use hardware uart. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19498
|
|
Posted: Mon Nov 28, 2011 5:32 am |
|
|
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
|
|
Posted: Mon Nov 28, 2011 8:54 am |
|
|
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. |
|
|
|
|
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
|