Searching \ for '[SX] Beginners Question...Major Beginner' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/ubicom/devices.htm?key=sx
Search entire site for: 'Beginners Question...Major Beginner'.

Exact match. Not showing close matches.
PICList Thread
'[SX] Beginners Question...Major Beginner'
2006\10\02@163316 by ems1965n/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ems1965 wrote:


DEVICE          SX28, OSCHS3, TURBO, STACKX, OPTIONX  

FREQ            50_000_000

PROGRAM Start  

Start:
  \Mov !RB,#0
  \Mov RB,#1

Main:
ASM
  Mov W,#$FF
  XOR RB,W
EndASM


Pause 25

Goto Main


As you can see I am a major beginner.. I want to know why this program runs when I'm in Debug and does not in normal mode.


What simple thing am I missing.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202
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)

2006\10\02@173620 by beann/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

I see no reason why it shouldn't work.

What is "normal" mode ?

Is that with the SX-Key connected ? Or trying to run from a resonator ?

If from a resonator, try OSCHS2, and/or add BOR42 to the device line.

Bean.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202#m147210
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)

2006\10\02@182731 by ems1965n/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ems1965 wrote:

If I run the Above code with the Key installed on the SX Tech Board the program seems to not run. When I compile in Debug mode and Click the run button, the LED's I have connected to RB.0 and RB.1 Alternate like they should. Do I need different clock settings or something?

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202#m147217
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)

2006\10\02@183117 by beann/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

Try putting a "PAUSE 1" just after "\MOV RB,#1" and before the "Main:" label.
See if that works. If it does, the problem is the age-old "Read-Modify-Write" issue.

Bean.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202#m147218
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)

2006\10\02@184710 by ems1965n/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ems1965 wrote:

No it didn't work... This is really odd... This is such a simple program, even I understand it... Ugh!

If I change to This....

DEVICE          SX28, OSC4MHZ, TURBO, STACKX, OPTIONX,BOR42

FREQ            4_000_000

It seems to work
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202#m147219
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)

2006\10\02@185810 by beann/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

What is happening when you "it doesn't work" ?
Do the LEDs say dark ? Are both lit ? What happens ?

Bean.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202#m147221
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)

2006\10\02@190528 by ems1965n/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ems1965 wrote:

It is fairly random from what I can tell... If I push the reset button on the SX Tech board they change randomly.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202#m147225
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)

2006\10\02@192649 by beann/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

Hmm, Somthing's wierd if it does that.
Have you tried a different SX28 chip ?
What value resistor do you have on your LEDs ?

Bean.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202#m147226
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)

2006\10\02@194843 by ems1965n/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ems1965 wrote:

I tried another Chip and the same result...then it hit me... The Device Screen.. could this cause my problem? What should the setting be?  I'm using 220 ohm Resistor BTW.


I played around with the Device Screen and it didn't change a thing for me.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202#m147229
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)

2006\10\02@230346 by PJMontyn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote:

Sailorman,
You still never mentioned what you are using to run the SX chip when the SX-Key is not attached.  You say the program works when you have the OSC4MHZ directive, and not when you have the OSCHS3 directive.  This implies that you don't have a clock source running when the key is not attached.  The OSC4MHZ directive uses the internal oscillator built into the chip itself.  
Also, are you clear about the difference between programming a chip using "program" (Ctrl-P) versus "debug" (Ctrl-D) ? This is something that trips up a lot of people when they first use the SX chip and the SX-Key.

[list]Thanks,
PeterM[/list]
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202#m147243
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)

2006\10\03@043344 by ems1965n/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ems1965 wrote:

I have the SX Tech board and I am always keeping the Key attached.


[Quoting: "PJMonty"]
Also, are you clear about the difference between programming a chip using "program" (Ctrl-P) versus "debug" (Ctrl-D) ? This is something that trips up a lot of people when they first use the SX chip and the SX-Key.

What should I know... I'm just trying to get this small program to run in any instance.
WIth or without the Key.
Anyhelp would be greatly appreciated.
Eric


---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202#m147256
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)

2006\10\03@054902 by kgraceyn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, kgracey wrote:

Eric,
You shouldn't be having such a painful start with the SX. Call us at Parallax and we'll walk you through the setup and programming of an SX. Ask for myself or Chris Savage 916 624 8333. We'll both be there in about an hour.

Ken Gracey
Parallax, Inc.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202#m147264
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)

2006\10\03@064235 by beann/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

Eric,
 I just tried your original program on my SX-Tech board and it seems to work fine.
 I just left the SX-Key attached, and did Ctrl-R (RUN).

 Then I increased the pause to 100, just to be sure. It works fine.

 There must be something odd with your setup or something. Hopefully Ken or Chris can get you going.

 Would it be possible to take a picture of your setup ?

 Your not using an SX-Blitz are you ?

Bean.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202#m147273
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)

2006\10\03@073623 by kgraceyn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, kgracey wrote:

Eric,
Regarding Peter's question - is there a clock source in the project? Did you plug a 4 MHz resonator into the 3-pin socket near the SX chip? If it works with DEBUG, then the SX-Key is generating the clock source. I think the issue lies with the clock.

Ken Gracey
Parallax, Inc.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202#m147283
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)

2006\10\03@143547 by ems1965n/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ems1965 wrote:

OMG.... I can't believe I just wasted everyones time... I was looking at the contents of the SX Tech kit... Needless to say I was not aware of a 4MHZ and 50 MHZ Resonator.

I really appoligize for wasting everyones time.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202#m147348
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)

2006\10\03@143645 by g_daubachn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, g_daubach wrote:

SailerMan,
you might also download the SX FAQ document, and refer to the "The SX-Key "Run" Menu Option" section in this document. You can find the FAQ document for download in the "sticky" post at the beginning of this forum section.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202#m147349
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)

2006\10\03@145802 by beann/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

[Quoting: "SailerMan"]
OMG.... I can't believe I just wasted everyones time... I was looking at the contents of the SX Tech kit... Needless to say I was not aware of a 4MHZ and 50 MHZ Resonator.

I really appoligize for wasting everyones time.

Eric,
 No problem. I guess Ken gets the credit for figuring out this one. Kudos Ken !

 Don't let this "put you off" from using the SX.


Bean.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147202#m147356
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)

More... (looser matching)
- Last day of these posts
- In 2006 , 2007 only
- Today
- New search...