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 support@ccsinfo.com

int_rda and timeouts

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



Joined: 04 Jul 2007
Posts: 4

View user's profile Send private message

int_rda and timeouts
PostPosted: Thu Jul 12, 2007 4:50 pm     Reply with quote

hi all,
i was wondering what would be the best way of implementing the ex_tgetc example with interrupts. I know you should never execute and interrupt from another interrupt as i was thinking of using:

#INT_RTCC // to control timeout
#INT_RDA // receive data on serial 1
#INT_RDA2 // receive data on serial 2

This is to be implemeted on a PIC18F8722. I need to rx/tx on both serial 1 and 2. So messages from 1 go to 2 and 2 to 1. Anybody please got any suggestions?
inservi



Joined: 13 May 2007
Posts: 128

View user's profile Send private message

PostPosted: Fri Jul 13, 2007 3:20 am     Reply with quote

Hello,

If the datas need to be replicated from one port to the other without altering, why not to simply plug the rx from the first port to the tx of the second and vice versa ?

If you need to altering these datas before replicating, then the difficulties is depending on the baud and the speed of the PIC.

dro.
_________________
in médio virtus
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