Exact match. Not showing close matches.
PICList
Thread
'[SX] Beginners Question...Major Beginner'
2006\10\02@163316
by
ems1965n/a
|
|
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
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)
|
|
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
|
|
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)
|
|
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
|
|
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)
|
|
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
|
|
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)
|
|
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
|
|
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
|
|
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
|
|
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
2006\10\03@054902 by kgraceyn/a
|
|
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)
|
|
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
|
|
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
|
|
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
|
|
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)
|
|
[Quoting: "SailerMan"]Eric,
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.
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...