In SX Microcontrollers, SX/B Compiler and SX-Key Tool, rodneymc wrote: I wanted do look more at the assembly code for the I/O pins from my post "Delay, PIN Command, BaudRate Options & SX-Key Listing Feature Request" at [url=http://forums.parallax.com/forums/default.aspx?f=7&m=146347]http://forums.parallax.com/forums/default.aspx?f=7&m=146347[/url] That one got a little complicated, so I wanted to narrow down a couple of questions and try again, since I've had a chance to investigate a little more. 1. Revisiting the PIN command I did two versions of one program with the only difference in the two files was on pint was defined as: [code] MyOut1 PIN RA.1 OUTPUT [/code] And then I changed the other file as: [code] MyOut1 VAR RA.1 [/code] I compiled each code and went to the SASM output directory and did a file compare. The only differences was the SX/B code differences, shown above and down further where the output field is accessed, which had MOV W,#252 ; for the PIN RA.1 OUTPUT %1111_1100 MOV W,#254 ; for the VAR RA.1 %1111_1110 So do these SASM constant impactin the TRIS register? It seems logical as 0 is an output. I guess I was expecting PIN ... Output to give more assembly differences. [quote="Bean"] [b][/b] Rodney, The code to setup the pins is generated by the "PROGRAM" directive. Bean. Bean, I didn't quite understand what you were saying there. Can you give a little more detail? 2. Revisiting the difference betwen the T and the OT baud modes in the baud rate for SERIN/SEROUT, does the O refer to "Open Collector"? Thanks! Rodney ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147995 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)