All Forums
 Microsoft Windows CE
 CE Drivers
 Smart IO Port C used as Input not working
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

Tim

39 Posts

Posted - 20 May 2002 :  10:28:59  Show Profile  Email Poster
I am using Port C Option 2 for DIO input and output. I have 7 pins configured as output and 1 pin as input. The output pins work fine. The input pin never changes from 0 regardless of the input line state.

Anything obvious I'm missing? Can a port be configured as input and output?

ctacke

877 Posts

Posted - 20 May 2002 :  10:59:45  Show Profile  Email Poster
What revision of the AVR are you using? The system reports this information through the debug port at startup in a line like this:

SMARTIO Detected : PartType:0x8535 Firmware:0x9002 Revision:5


This info is also queriable through the ADSmartIO API SIOReadDeviceVersion().

-----------------
Chris Tacke, eMVP
Applied Data Support
Go to Top of Page

dbrisbois

27 Posts

Posted - 20 May 2002 :  11:31:06  Show Profile  Email Poster
Did you enable the internal pull-ups? One the pin is set to input by calling SIOInitDDRC (), you can enable or disable the pull-up by calling SIOWritePortC (). Write a 1 to the pin to enable the pull-up (0 to disable). See the following topic for more information.

topic.asp?TOPIC_ID=306
Go to Top of Page

Tim

39 Posts

Posted - 20 May 2002 :  11:52:54  Show Profile  Email Poster
The Firmware version is 0x9002 and the device version is 0x34 according to SIOFirmwareVersion and SIOReadDeviceVersion.

Go to Top of Page

ctacke

877 Posts

Posted - 20 May 2002 :  12:27:36  Show Profile  Email Poster
Revision 0x34 = Ascii "4", which means you have version 4 of the AVR.

Try updating to the latest revision (currently 5), which can be found here

-----------------
Chris Tacke, eMVP
Applied Data Support
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000