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

interrupt handler to software rs232

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



Joined: 13 Dec 2009
Posts: 1

View user's profile Send private message

interrupt handler to software rs232
PostPosted: Mon Dec 14, 2009 6:06 pm     Reply with quote

I'm using 18F97J60 and need to create 4 rs232 interfaces. The chip have 2 hardware rs232 interfaces. The 2 others I created by software using #use rs232 directive. How I can obtain an interrupt handler to these 2 interfaces when character arrive??
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Dec 14, 2009 11:02 pm     Reply with quote

To run two software UARTs you probably need to use method #1 as
described on this page:
http://www.8052.com/faqs.phtml?FAQ=124758
There are several appnotes on the net describing how to do this.
Or, asmallri offers commerically available code already done.

If you were just using one soft UART, then method #2 could work with
an External interrupt pin and an isr.

Another option is to use an external hardware UART chip.

This thread has more information:
http://www.ccsinfo.com/forum/viewtopic.php?t=38471
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