Skip to main content
Visitor II
June 1, 2005
Question

IO Pins & Indart STX

  • June 1, 2005
  • 2 replies
  • 628 views
Posted on June 01, 2005 at 10:06

IO Pins & Indart STX

    This topic has been closed for replies.

    2 replies

    brian4Author
    Visitor II
    June 1, 2005
    Posted on June 01, 2005 at 08:10

    Hi

    When using the Indart STX the 2 comms pins (ICCC data & Clk)must be configured as inputs, but in my final application I whish to use these as outputs.

    What is the best method to configure these pins in Assembler?

    Can I do anything using the Debug / Release option? (I find this confusing)

    Or is it a condition on assembly if so can I make this automatic?

    Regards, Brian

    Visitor II
    June 1, 2005
    Posted on June 01, 2005 at 10:06

    Brian,

    the method for configure a pin does not depends on the programming language.

    You have to write the right values on the Data Direction Register and on the Port Option Register.

    The micro documentation tells you the meaning of each bit and warns you to use right sequence according to which the registers values must be changed.

    The Debug/Release option helps in doing what you need.

    1. Open the ''Projects Settings / ST7ASM'' property page.

    2. Add ''Release'' in the ''Defines'' edit box when the combo box ''Settings for:'' displays ''Release''

    3. Wherever you have to differentiate between debug and production code, you can use the following pattern:

    #IFDEF Release

    ; Put here the instructions for the production code

    #ELSE

    ; Put here the instructions for the Indart STX debug session

    #ENDIF

    NOTICE: before the '#' character there must be a space or tabulator

    Regards

    EtaPhi