2005-06-01 01:06 AM
2005-05-31 11:10 PM
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, Brian2005-06-01 01:06 AM
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