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
Posted: Mon Dec 14, 2009 11:02 pm
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.
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