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

dsPIC dual UART

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



Joined: 30 Mar 2010
Posts: 21

View user's profile Send private message Send e-mail

dsPIC dual UART
PostPosted: Thu Apr 29, 2010 8:37 am     Reply with quote

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.
Ttelmah



Joined: 11 Mar 2010
Posts: 19538

View user's profile Send private message

PostPosted: Thu Apr 29, 2010 9:29 am     Reply with quote

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
balaji



Joined: 30 Mar 2010
Posts: 21

View user's profile Send private message Send e-mail

u r right
PostPosted: Fri Apr 30, 2010 3:37 am     Reply with quote

It works with streams.
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