All Forums
 Hardware
 General Hardware, ADSmartIO, Digital I/O and A/Ds
 Problems with Bitsy ADSmartIO (PC6-PC7, PD0-PD1)
 Forum Locked
 Printer Friendly
Author Topic  

wabtec4

59 Posts

Posted - 18 Jun 2004 :  12:44:42  Show Profile
I am trying to manipulate SMTIO0-SMTIO3 but can't seem to get it working. If I try using the port name "SMTIO2:", I cannot open the port. If I use the wrapper class listed above I see no change on the I/O pins when I try to toggle them. Code snippet:

ADSmartIO gSmartIO;

gSmartIO.SelectOption(3);
gSmartIO.InitDDRA(0x00); /* PAx = ALL INPUT */
gSmartIO.InitDDRB(0x00); /* PBx = ALL INPUT */
gSmartIO.InitDDRC(0xC0); /* PCx = PC0..5=INPUT, PC6,7=OUTPUT */
gSmartIO.InitDDRD(0x00); /* PDx = ALL INPUT */

gSmartIO.WritePortC(0xC0); // write 1's to PC6 & PC7

I am using Bitsy and never see the pins J3-35(PC6) or J3-37(PC7) change state. Is there something I am not doing correctly?

Also, can PD0 and PD1 be used as discrete input? Note above indicates that they can't be used as output, but doesn't indicate whether they can be used as input on Bitsy.

akidder

1519 Posts

Posted - 19 Jun 2004 :  11:13:56  Show Profile
Thanks for your note, Craig. I think this post at topic 306 will help for details about availability of these ADSmartIO ports on the Bitsy. In short, they are probably not available for application use.

Let us know if you need further details!
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.02 seconds. Snitz Forums 2000