Shop OBEX P1 Docs P2 Docs Learn Events
SX/B commands in SX assembly — Parallax Forums

SX/B commands in SX assembly

Wissam Ch.Wissam Ch. Posts: 36
edited 2008-03-16 09:28 in General Discussion
Hi,
Is there a way to find the equivalent of any SX/B command in SX Assembly Language.
Iam looking particulary for SEROUT .
Iam working on a project and was using a set of 6 7-Segment LED display , iam shifting to LCD instead, and got stuck on how to send data to the LCD display using SX28 Assembly coding.

Regards



·

Comments

  • PJMontyPJMonty Posts: 983
    edited 2008-03-14 19:56
    Wissam,

    View the list file. Either use the hotkey "CTRL-L" or go to the menu "Run->View List".

    Thanks,
    PeterM
  • Wissam Ch.Wissam Ch. Posts: 36
    edited 2008-03-14 20:20
    Thanks Peter,
    I am able to see the assembly equiv of the SX/B.
    It is little bit scary , i think i should move to SX/B very soon and abandon SX Assembly.

    I hoped to find an easy equiv for the SEROUT SX/B ....!!!!
  • JonnyMacJonnyMac Posts: 9,216
    edited 2008-03-14 21:29
    No need to abandon assembly altogether, mix it into SX/B where appropriate. The program I've attached does buffered transmit and receive. I didn't write the assembly code for the UARTs, I just modified and folded it into my program -- it's easy to do with SX/B.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2008-03-15 17:44
    I found that interpreting SX/B listings in assembly were a bit daunting. You might look at examples of particular tasks from Guenther's text to get a better understanding.

    For me, the problem is that SX/B abstracts the assembly code in a system that is without any comments. All the registers have generic names and it seems that I'd have to learn more than I want to know about how SX/B converts code to assembly.

    JonnyMac is right - it is probably easiest just to mix the two as you find most convenient. Reading the CNTL-L listing is pretty demanding.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PLEASE CONSIDER the following:

    Do you want a quickly operational black box solution or the knowledge included therein?······
    ···················· Tropically,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • Wissam Ch.Wissam Ch. Posts: 36
    edited 2008-03-16 09:28
    I managed to make my own implementation for the SEROUT SX/B command in Assembly .
    the Listing helped me to capture the concept , and then i used my own coding in Assembly .
    It worked and i can send data to the serial LCD from Parallax.

    I think i will use both in parallel as you suggested , with focus on Assembly coding , i found it easier in debuging your own written code , than debuging in a complied SX/B code.

    Thanks to all
Sign In or Register to comment.