In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Rsadeika wrote: I am using Jon's program as a starting point for discussion. What I tried to do is add a second UART to the program; I basically added the same code that was used for the first UART, but changed some values like the TX and RX pins. Of course the program did not run as expected, but I was surprised that the sircs section of code worked as expected. So, that means that the interrupt was still in tact, from a timming perspective. So, the problem is in how the UART code is implemented, any ideas as to what should be looked at first. It seemed to me that it should be as simple as changing the pin assignment, in the code to TX1, RX1, TX2, and RX2. Now the program goes through the code for UART1 and UART2, and it should work. I looked at the Scenix DUAL UART code as a reference, but of course it's in asm, and it discussed some things like threading. Now I am not sure as to how you could achieve that using SX/B. I am already starting to run into variable space problems, and the code size is still very small, I am using an SX52 proto board. Any ideas or comments. Thanks Ray ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=182347 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)