View previous topic :: View next topic |
Author |
Message |
balaji
Joined: 30 Mar 2010 Posts: 21
|
dsPIC dual UART |
Posted: Thu Apr 29, 2010 8:37 am |
|
|
Hai all,
I am using dsPIC30F3011 for my project. I need full duplex comm for both UART.
I tried with one UART. It`s working fine. Now if i enable both UART then how the data will send/receive from ports. I`m confused
can anybody help me.
Thanks in advance. |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19360
|
|
Posted: Thu Apr 29, 2010 9:29 am |
|
|
First thing, streams.
You use stream names in the two #use RS232 declarations, and stream names to get/put the characters (fgetc, fputc, and fprintf, rather than getc/putc).
Second thing, if using interrupts, there are two interrupts for the two UARTs. Normally INT_RDA for the first, and INT_RDA2 for the second.
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
balaji
Joined: 30 Mar 2010 Posts: 21
|
u r right |
Posted: Fri Apr 30, 2010 3:37 am |
|
|
It works with streams. |
|
![](templates/subSilver/images/spacer.gif) |
|