Shop OBEX P1 Docs P2 Docs Learn Events
Learning how to use the SX28AC/DP for the first time :D...but where to start? — Parallax Forums

Learning how to use the SX28AC/DP for the first time :D...but where to start?

nebonatnebonat Posts: 3
edited 2008-03-28 13:48 in General Discussion
Hi everyone. I've been dabbling about with assembly programming (MASM) and recently started to learn how to program GAL chips using a programmer.

I currently have a reader for the SX28 (it's serial only. that's correct, right?), however, I have not a SINGLE clue how to program or read this chip. But reading its specs, I'm impressed at all the features and I really want to utilize this but don't have a single clue. Do I have to use C or can MASM language be sufficient?

It would be greatly appreciated if someone can point me out to some places like tutorials or a site geared towards hobbyists. I want to start slowly though, such as being able to input data and having the numbers display on a 7segment LED and such before tackling the big boys [noparse]:D[/noparse]

Comments

  • PJMontyPJMonty Posts: 983
    edited 2008-03-28 03:58
    Nebonat,

    You mention you have a "reader" for the SX28. What's it called? Is it an SX-Key or SX-Blitz or something made by a company other than Parallax? Where did you get it? Didn't it come with any documentation?

    Thanks,
    PeterM
  • John KauffmanJohn Kauffman Posts: 653
    edited 2008-03-28 04:01
    By "reader" do you mean the SX Key? If your 'reader' says SX Blitz then you can program but not debug.

    If you buy just an sx chip you will have to build the power supply resonators sockets, etc. I suggest getting a Sx Tech Tool which provides all support circuits plus built-in breadboard. That also includes the SX Key which is a "reader," programmer and debugger. If you intend to work in assembly language I suggest you get the kit that includes the Daubac book.

    SX is ver easy to program in SX/B (Basic) but you can also continue your study of assembly language.

    Here are the first steps that worked well for me:
    Download the SX IDE (including help file) form Parallax
    Open the help > contents > example projects.
    Pick one:
    - Digital Dice is a good choice because you only need 14 LEDs.
    - ADC also requires few external components other then the resonator
    Copy/paste the code to the IDE
    Read over the SX/B (Basic code) to get the general idea
    Strike Ctrl+A to assemble
    Run the program to see esults
    Go back to IDE and stirike Ctrl+L to see the assembly language (AL) that was generated
    Now you can see how each basic command was translated to AL
    Repeat for other example projects (warning: most require significant external components)
    If you do that for all 8 examples you will have a real good start
    Buy the Dauback book and start on page one - this book is 100% assembly language
    Do the tutorials every few pages (only need small external components)
    Read posts on this forum
  • nebonatnebonat Posts: 3
    edited 2008-03-28 13:21
    Hi! Thanks for the reply.

    I'm not exactly sure if it can only debug or read....but this is what it reads (the circuit board with a serial i/o mounted on it)

    STAMP STACK
    WWW.HVWTECH.COM

    it allows me to mount the sx28 and a 24LC128 (which I assume is used for data storage).

    As for documentation, I don't have any. My uncle purchased it awhile back and when he saw me trying to program GAL chips, he told me that I should learn how to use the SX28.

    Would it be more effective to program this chip in assembly, BASIC or C ?
  • BeanBean Posts: 8,129
    edited 2008-03-28 13:48
    The "Stamp Stack" is a OEM BASIC Stamp clone.
    You program it in BASIC using the Basic stamp IDE.
    You can download the IDE from here: http://www.parallax.com/tabid/441/Default.aspx

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.iElectronicDesigns.com

    ·
Sign In or Register to comment.