Support
·I begin research some Kits of·SX Microcontroller (MC)·and All Basic stamp Kits of Parallax that·I purchase them.
·But I don't know anything:
· 1.·Can Basic Stamp V2.2· Load opcode to SX28ac/ss.·Is it·like PCW C·compiler IDE for File.src , .asm. How do you use to·Basic stamp for SX MC? Examples?
·2. What·are C compiler·and ASM compiler to·File.HEX··for load to·SX MC ?
·3. SX/B ? .src to .Hex?
·But I don't know anything:
· 1.·Can Basic Stamp V2.2· Load opcode to SX28ac/ss.·Is it·like PCW C·compiler IDE for File.src , .asm. How do you use to·Basic stamp for SX MC? Examples?
·2. What·are C compiler·and ASM compiler to·File.HEX··for load to·SX MC ?
·3. SX/B ? .src to .Hex?
Comments
2. I'm not sure I understand the question, but if you have the .SRC output from a C compiler you can open it in the SX-Key IDE and assemble it, then save the output to a .HEX file (use Run\Device\Save Hex).
3. Compile your SX/B program, open the .SRC file, the use Run\Device\Save Hex.
1) The basic stamp IDE is NOT a compiler, so it does not generate .src or .asm files. As Jon stated it generates byte codes that are only understood by the basic stamp modules.
2) If you are using the SX-Key or SX-Blitz there is no need to convert files to .HEX for programming. If you are using some other programmer, then maybe you will.
3) SX/B is a compiler. It does generate a very readable .SRC file that you can convert to a .HEX file if you need that.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
“The United States is a nation of laws -· poorly written and randomly enforced.” - Frank Zappa
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
·
I will download SX/B for research SX MC!
I write prog. and run SX-key, but ERROR 75, 229.
SX-key don't have help for ERROR index (number of ERROR).
People could help me!!!!!!
Thanks everybody!!!!!!!!!!
DEVICE SX28, OSC4MHZ, TURBO, STACKX, OPTIONX
FREQ 4_000_000
'
' IO Pins
'
LED VAR RB.0
'
' Variables
'
result VAR Byte
cmpValue VAR result.0
Watch_List:
WATCH cmpValue, 1, UBIN
' =========================================================================
PROGRAM Start
' =========================================================================
'
' Program Code
'
Start:
CMP_B = 0 ' enable comparator
TRIS_B = %11111110 ' RB.0 is output
Main:
CMP_B = result ' exchange result with CMP
GOTO Main
I used SX MC 28AC, crystal 50MHz! And other prog is too!
Note, too, that the latest version of SX/B (1.51.03) includes a command called COMPARE that will simplify that program -- have a look in the Help file
Communication pass Com1 is good!
People have SX-key 3.2 HELP for ERROR then sent for me!
Thanks!
Your code is using the internal 4MHz so you don't need the 50MHz resonator.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
“The United States is a nation of laws -· poorly written and randomly enforced.” - Frank Zappa
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
·
http://www.dontronics.com/stampstick2.html
... that board has a BS2sx interpreter in it, and I'm rather doubting that you have a means to reprogram it with the SX-Key IDE. You can in fact use the BASIC Stamp IDE, but you can only program it in PBASIC. That board is not a raw SX chip; it is a form of BASIC Stamp.
I drived it!