DIO EFUS A9 (WEC2013)

  • After reading the forum thread "Explanation of DIO registry configuration" and implementing this i'm confussed why my DIO's configures as outupts do not work.
    i want Port's 10 and 11 configured as outputs.


    regestry
    [IMG:http://i62.tinypic.com/ff7c5x.png]


    code:



  • Hello,


    - pins of port 10,11 are also used for other interfaces (refer IO table in the Device Driver Document). Ensure that these interface are off (flags=DWORD:4 for the corresponding driver).
    - Don't mix old (UseAsIOX, ...) and new (UseAsIO, ...) notation. I would prefer the new one so please delete UseAsIOC, ... .
    Try:

    Code
    1. reg open \Drivers\builtin\digitalio
    2. reg delete value UseAsIOC
    3. ...
    4. reg set value UseAsIO hex 00,00,00,00,00,00,00,00,00,00,00,0xff,0xff
    5. reg set value DataDir hex 00,00,00,00,00,00,00,00,00,00,00,0xff,0xff
    6. ...
    7. reg set value Debug dword 255
    8. reg save
    9. reboot


    Enable "debug" for testing and regard the serial debug output while booting and execute your program. Assume we will get further information.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Hello,


    registry looks ok for me. But i miss the serial output caused from your application! Here we should get more details about failure.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • No, that still no what i desire. Is there no addion output when you run application? Every access to "DIOx:" should cause an output!

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Hello,


    you are wirting to port 0 ("DIO: write Port0 PortData=0xff")! So use "SetFilePointer" or registry value "Port" to write to a different port.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.