cancel
Showing results for 
Search instead for 
Did you mean: 

IO Pins & Indart STX

brian4
Associate II
Posted on June 01, 2005 at 10:06

IO Pins & Indart STX

2 REPLIES 2
brian4
Associate II
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

fggnrc
Associate II
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