Forum Update - Announcement about May 10th, 2018 update and your password.

Parallax SX28 Mov Instructions and Registers

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?
Basic Stamps,SX's and PIC's all share common characteristics.

'Are you ready to move up to an SX?'-Parallax

SX28 is drop in replacement for PIC16F57

Comments

  • 19 Comments sorted by Date Added Votes
  • PublisonPublison Posts: 9,989
    edited May 3 Vote Up0Vote Down
    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?

    They are one in the same. (From Wikipedia).:
    The designs for the devices are owned by Ubicom (formerly Scenix, hence "SX"). The SX dies were manufactured[citation needed] by Ubicom, who sent them to Parallax for packaging. Ubicom had made processors with 18, 20, 28, 48 and 52 pins, but because Parallax did not have packages for 18 and 52 pins chips,[citation needed] the SX-18 and SX-52 were discontinued.
    Infernal Machine
  • microcontrollerusermicrocontrolleruser Posts: 789
    edited May 3 Vote Up0Vote Down
    Thank you Publison!

    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.
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57
  • PublisonPublison Posts: 9,989
    edited May 3 Vote Up0Vote Down
    Everything SX is on this page under "Downloads and Documentation".

    \https://www.parallax.com/product/sx48bd-g
    Infernal Machine
  • microcontrollerusermicrocontrolleruser Posts: 789
    edited May 3 Vote Up0Vote Down
    Taking a look at SX Tech board and by way of that the SX28.

    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?
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57

  • Thank you Publison.

    Forgot that trick.

    Probably got ours from SX Key sell page.
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57
  • microcontrollerusermicrocontrolleruser Posts: 789
    edited May 3 Vote Up0Vote Down
    Okay.

    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.
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57

  • 43 instructions.

    That's a relief! I looked before and saw about 20 MOV instructions.

    This might be a clue to that.
    In addition to the 43 basic instructions, the SX-Key assembler allows for additional instruction
    mnemonics that are either converted internally into other basic instructions, or are expanded into two
    or more basic instructions.
    12.2 Instruction Set Summary
    Table 22 – SX Instruction Mnemonics below, contains a list of all instruction mnemonics supported by

    What are SX Instruction Mnemonics?
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57
  • microcontrolleruser,

    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!
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57
  • I you're able to master SX assembly, Propeller assembly will be a piece of cake! Interrupts on the SX can be very tricky, BTW, if you enable pin and timer interrupts.

    -Phil
    “Perfection is achieved not when there is nothing more to add, but when there is nothing left to take away. -Antoine de Saint-Exupery
  • I you're able to master SX assembly, Propeller assembly will be a piece of cake! Interrupts on the SX can be very tricky, BTW, if you enable pin and timer interrupts.

    -Phil
    I don't understand the point of bothering with SX assembly given that it's a dead product and obsolete to boot. Why not just start with the Propeller? There are plenty of people here who can help him learn Propeller assembly.

  • '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.
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57
  • David Betz wrote:
    I don't understand the point of bothering with SX assembly given that it's a dead product and obsolete to boot. Why not just start with the Propeller? There are plenty of people here who can help him learn Propeller assembly.
    That's pretty much the point I was aiming for, albeit rather more obliquely. :)

    -Phil
    “Perfection is achieved not when there is nothing more to add, but when there is nothing left to take away. -Antoine de Saint-Exupery
  • The data memory of the SX consists of a small number of byte-sized registers. Although there
    are well over 100 registers in the SX, your program can only work with 32 of them at a time.
    In a later unit, you’ll learn about banking which allows you to get to all the registers, but for
    now, suffice it to say that there are 32 registers.

    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!
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57
  • ;Beginning Assembly Language for the SX Microcontroller
    ;Program 2.1
    ;=======================================================================
    device sx28l,oschs3
    device turbo,stackx,optionx
    IRC_CAL IRC_SLOW
    reset start_point
    freq 50000000 ; 50 MHz
    org 0
    start_point mov !rb,#0 ; make all of port b outputs
    mov rb,#0 ; make all port b outputs = 0
    sleep ; go to sleep
    

    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.
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57

  • 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.
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57
  • In a real project, you must supply a
    crystal or a ceramic resonator for speeds greater than 4 MHz. However, when working with
    the SX-Key it provides the clock (you can change the clock speed using the Run|Clock menu).

    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!
    Basic Stamps,SX's and PIC's all share common characteristics.

    'Are you ready to move up to an SX?'-Parallax

    SX28 is drop in replacement for PIC16F57
Sign In or Register to comment.