All Forums
 Hardware
 General Hardware, ADSmartIO, Digital I/O and A/Ds
 Digital Output on SmartIO (Hi-Z available?)
 Forum Locked
 Printer Friendly
Author Topic  

esavolle

31 Posts

Posted - 01 Feb 2005 :  10:56:18  Show Profile
Hi,
we used VGX CE 4.20.20.

Are digital ouputs on VGX three-state ouputs (high-level,low-level, high-impedance) ?

I haven't found the answers in vgx documentation.

thanks for your help

eric

ctacke

877 Posts

Posted - 01 Feb 2005 :  11:22:21  Show Profile
Which outputs are you using? Many can be placed into a high-z state by setting them as inputs. See the DIO spec for further details.
Go to Top of Page

esavolle

31 Posts

Posted - 01 Feb 2005 :  11:56:49  Show Profile
We used the port A of smartio as outputs.
Go to Top of Page

akidder

1519 Posts

Posted - 01 Feb 2005 :  14:00:41  Show Profile
Yes, they can be put into a Hi-Z state. In the VGX user manual, look at the signal "Type" column. Any pin that is a type of IO can be placed in a Hi-Z state.
Go to Top of Page

esavolle

31 Posts

Posted - 03 Feb 2005 :  08:30:55  Show Profile
So i sum up:

-we have cabled port A of smartio
-we configure each channel of port A as digital ouput with SIOInitDDRA
-we write value with SIOWritePortA
-if i want to place a channel in Hi-Z state, i configure this channel as input with SIOInitDDRA (the other ones as output)

Am i correct ?

One more question : if i write value on port A and one channel is configured as input, is the bit for this channel ignored ?

thanks for help

eric

Go to Top of Page

akidder

1519 Posts

Posted - 08 Feb 2005 :  11:59:07  Show Profile
You are correct. You can place ADSmartIO channels in a hi-Z state as you described.

Important: Even though an AVR I/O pin is configured as an input, it can still be taken out of a hi-Z state if you enable the pull-up pin (for details, see topic 306).

To keep I/O lines in a hi-Z state when writing to the port, write a "0" to all lines that are configured as inputs.
Go to Top of Page
  Topic  
 Forum Locked
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.01 seconds. Snitz Forums 2000