Shop OBEX P1 Docs P2 Docs Learn Events
Pin Defines — Parallax Forums

Pin Defines

StolzieStolzie Posts: 15
edited 2005-03-22 00:31 in General Discussion
Hi All,

As I am new to SX's, and have been mucking around with PIC's generally. I am wondering how you do pin defines in SX assembler? I have downloaded the beginers assembler for the SX and this topic is not mention anywhere.


This is how you do it in PIC stuff

#define··SPO·PORTA,0··;INPUT ··SHUTTLE POT OUTPUT
#define··RLED·PORTA,1··;OUTPUT··RRLED
#define··SPN·PORTA,2··;INPUT··SHUTTLE POT NEGATIVE
#define··SPP·PORTA,3··;INPUT··SHUTTLE POT POSITIVE
#define··ROW5·PORTA,4··;OUTPUT··ROW5
#define··ROW4·PORTA,5··;OUTPUT··ROW4

#define··DBUS·PORTD··;I/O ··DATA BUS D0-D7

But how do you do it in SX?

Thanks

Stolzie

Comments

  • BeanBean Posts: 8,129
    edited 2005-03-21 12:04
    SPO EQU RA.0
    RLED EQU RA.1
    SPN EQU RA.2
    SPP EQU RA.3
    Row5 EQU RA.4
    Row4 EQU RA.5

    DBUS EQU RD

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out· the "SX-Video Display Module"

    www.sxvm.com

    "A problem well defined, is a problem·half solved."
    ·
  • StolzieStolzie Posts: 15
    edited 2005-03-22 00:31
    Thanks for that info bean!

    Muchly appreciated.

    Best regards

    Stolzie
Sign In or Register to comment.