Parallax SX28 Mov Instructions and Registers
microcontrolleruser
Posts: 1,194
Looking for the datasheet.I remember a Ubicom SX datasheet.
Will that match up 100% ?
Or are there some differences in the Parallax SX 28 chips?
Going to look for the three basic MOV's.
MOVLW,MOVWF and MOVFW.
EDIT:Opened the editor and loaded PWM.src
What is the difference between SASM and Parallax Assembler?
Will that match up 100% ?
Or are there some differences in the Parallax SX 28 chips?
Going to look for the three basic MOV's.
MOVLW,MOVWF and MOVFW.
EDIT:Opened the editor and loaded PWM.src
What is the difference between SASM and Parallax Assembler?
Comments
They are one in the same. (From Wikipedia).:
http://www.cryogenius.com/hardware/sx/SX-DDS-SX2028AC-16.pdf
https://www.parallax.com/sites/default/files/downloads/SX20AC-SX28AC-Datasheet-v1.7.pdf
Parallax SX-Keyâ/Blitz Manual v2.00
Where is this manual on Parallax site?
EDIT
Found it!
Version 2.00 is on website and a shortcut on my desktop.
This has the instruction set in Appendix A.
\https://www.parallax.com/product/sx48bd-g
It's like a Stamp board.
Very cool to see headers next to breadboards with PORT's.
Port A has 4 pins.0-3 PortB and PortC have 8 pins each.0-7.
Then it has RTCC and MCLR.Then VDD and VSS.
How does the RTCC work?
http://www.ic0nstrux.com/download/gcd_kit/SxUsersManualV31.pdf
Thank you Publison.
Forgot that trick.
Probably got ours from SX Key sell page.
Have the datasheet and the instruction set so I think we're all set for awhile.
Came to my senses and remembered it is a little better to get info from Parallax documents.
The Parallax approach helps a lot.
43 instructions.
That's a relief! I looked before and saw about 20 MOV instructions.
This might be a clue to that.
What are SX Instruction Mnemonics?
Parallax has a few books on the SX and Jon Williams used it in a number of Nuts and Volts articles.
https://www.parallax.com/product/sx48bd-g
Click on Downloads & Documentation
I think this is what you are looking for.
https://www.parallax.com/downloads/beginning-assembly-language-sx-microcontroller
Beginning Assembly looks very cool.Thank you.
Parallax explains 'Register Banking' and 'Program Pages'.
THAT should be interesting!
-Phil
'I you're able to master SX assembly'
At my pace that will be around 2025.Check with you then.
'Interrupts on the SX can be very tricky, BTW, if you enable pin and timer interrupts.'
Thanks.We are at the 'One page program' stage.Interrupts are a ways off.Like peripherals and other stuff.
Just working on the basics.
-Phil
THAT is how you write a beginner's manual.
1 Keep things limited
2 Refer to what's ahead.
This looks like that Lindsay's work.
32 registers. Now we are getting in the power band!
I'll comment on this later.
First order of business is to slow down this board.
Take out that 50mhz.Put in a 4mhz one.
Keep SX 28 DIP from blowing up.
Here's a pretty good little datasheet.
https://www.parallax.com/downloads/sx20ac-and-sx28ac-datasheet
It's by Parallax too! So it has tips about compilers and stuff in it.
It's is not on 'Downloads' under SX Key sell page at Parallax.
We're off the hook changing resonators on the board!
You just set it to 4mhz in SX Editor equivalent of PIC configuration.Run/clock menu.
THIS is a good manual!
This is from SX User's Manual by Ubicom.
They list each move combination.
This is from Beginning Assembler by Parallax.
They just give you the instruction and show you some examples.
All cleared up!
'going to learn assembly'
Have a foothold in PIC assembly.Let me tell you just that takes some doing!
Playing around with SX assembly as a break.It is very interesting comparing the two.
'trying SX/B'
There are other compilers that attempt to convert assembler to basic too.PICBasic to name one.
Just never seems to come out right.
PICaxe WJEC assembler lessons are really unique.
They have 'sugar coated' assembler instructions.To protect you from the real time burners.
Yet it is very true to PIC assembler.Interesting.Very.
http://www.tech-tools.com/d_pictools.htm
-Phil
You are right.It is fun figuring out what they mean.'What they are trying to say.'
'their PIC assembler to Tech-Tools'
That Tech Tools guy is hard core technical.Found himself a new niche business.
In the real world you have to just deal with Microchip and PIC's.
Although I see why they went after Ubicom and by inheritance Parallax for the SX.
It is kind of like the 'engineer's ' PIC.
There are a number of Nuts & Volts articles that Jon Williams wrote that use SX/B.
#116 (Volume 5)
#117, 122, 125 (Volume 6)
#129, 137, 139 (Volume 7)
Genetix
Unfortunately have to stay away from any language but assembler for now.
That is a very good product.Like all Parallax does.
That's just the way it is right now.
SX/B looks just like PBASIC.
And generates Assembler to boot !
'generates Assembler to boot'
Will take a look at it again.
The PIC ones that attempt that have a few problems.
You expect result to look like a regular assembler program and it does not.
Full of EQU's about a page and a half of them.That is what one did.Kind of a jolt expecting
little assembler program and seeing that.