In SX Microcontrollers, SX/B Compiler and SX-Key Tool, tdg8934 wrote: I tried to convert this into SX/B (Basic for the SX-28 micro-controller) but ran into a couple of minor issues in the "C" code that I need answered (as I don't know "C" - but can figure out most of the conversion): 1. [b]value[/b] is given a value of $f0 (or [b]0xf0[/b] in the "C" program). However, the rest of the program refers to [b]value[/b] as [b]value1[/b]. Hopefully, all that is needed is to change [b]value[/b] to [b]value1[/b]. [b][color=red>Can anyone][/b] 2. Many of the lines are [b]commented out [/b]that maybe should not be for the program to run. [b]What should be and should not be commented out?[/color][/b] 3. [b]DAT_R1=value1 & 0x01[/b] in the "C" program converts to [b]DAT_R1 = value1 & $01[/b] in my SX/B program. I don't know "C" programming but can figure out that [b]DAT_R1 is a bit [/b]from a pin and [b]value1 is a byte [/b]so SX/B see's this as an error. [b]Can anyone confirm if this is how it is supposed to be written?[/b] Thanks - standing by! ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=273480#m275654 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)