In SX Microcontrollers, SX/B Compiler and SX-Key Tool, George Herzog wrote: You really need to get into SX/B for your questions to be answered. SERIN and SEROUT are clearly explained in both the manual and the help screens. If you installed SX-Key, read the Help Screens for SX/B for a quick introduction. They don't print out well and if you require printed documentation, download the manual and print it. Regarding 'Select Case' - this is a multiple branching function. IN SX/B, you would use 'IF.... THEN.... ELSE' to do a similar kind of branching. While the Command's name maybe different, the use is the same. Of course, there will be other differences in programing style. But, it isn't that difficult to adapt if you fully understand the original program. The fact is, that all fundamental Basic programing functions are functionally quite similar but different products choose to create a different lexicon for their functions. The SXes support Nibble Swapping in their machine code and since I see that Modbus depends on nibbles to compactly transmit numbers, you might find that feature quite handy to even improve on the PIC code. [Though I suspect the PIC has the same feature available.] It isn't very difficult, once you adapt to it. I suspect SX/B may even be simpler as it doesn't have to adapt to the dozens of different chips that PIC makes. Essentially, there are only two hardware types - The SX-18/20/28 type and the SX-48/52 type. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=254810#m255321 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)