View previous topic :: View next topic |
Author |
Message |
pathmasugu
Joined: 21 Feb 2014 Posts: 25
|
receiver interrupt |
Posted: Thu Mar 20, 2014 3:29 am |
|
|
hi,
can i use more then one receiver interrupt in same program ......we can generate software uart upto 4 ,likewise can we use receiver interrupt?..............some one help me _________________ ROCK RAJ |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Thu Mar 20, 2014 3:45 am |
|
|
INT_RDA, is the receive data interrupt of the first UART
INT_RDA2 is the receive interrupt for the second.
Only a very few PIC's have more than two UART's.
PIC18F9xJ94, some of the PIC24's, PIC33's etc..
On these you have INT_RDA3, and INT_RDA4.
Beyond this, you have to use an external UART like the SC16IS7652 (I2C dual UART), and these will then generate a single interrupt to say that data is available, and your code will have to work out which channel it is from.
You can quite easily do the same with a small PIC as an external device. |
|
|
pathmasugu
Joined: 21 Feb 2014 Posts: 25
|
|
Posted: Thu Mar 20, 2014 3:51 am |
|
|
i m using 18f452 ..... any possible to use two receiver interrupt!!!!!!!!!!!!!!!! _________________ ROCK RAJ
Last edited by pathmasugu on Thu Mar 20, 2014 3:54 am; edited 2 times in total |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Thu Mar 20, 2014 4:36 am |
|
|
Not really.
You only have one UART.
Look at a PIC like the 18F44K22 instead. 5v, 40 pins, _dual UART_. Cheaper.
Last edited by Ttelmah on Thu Mar 20, 2014 5:02 am; edited 1 time in total |
|
|
pathmasugu
Joined: 21 Feb 2014 Posts: 25
|
|
Posted: Thu Mar 20, 2014 4:54 am |
|
|
thank you _________________ ROCK RAJ |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9246 Location: Greensville,Ontario
|
|
Posted: Thu Mar 20, 2014 5:29 am |
|
|
Technically it is possible to have 4 UARTs using the 18F452, 1 hardware, 3 software but depending on what else the PIC has to do it will be far easier with more hardware UARTs. I use the 18F46K22 similar to the 44K22 that Mr. T suggests.
Since the PIC is only $5 and has a LOT more features than the 452, I urge you to consider the simpler solution unless you like a challenge.
hth
jay |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19552
|
|
Posted: Thu Mar 20, 2014 10:13 am |
|
|
'Technically'...
However not using the CCS software UART (half duplex only, and only ever one for receive at any time). |
|
|
|