Using GPIOs with the PicoMOD4

  • Hi,


    I'm trying to configure the PicoMOD 4's unused GPIOs but have not been very successful.


    I would like a particular IO (IO17, pin 46) to be high on startup. It seems to default to low on startup.


    The registry settings I've used are:


    reg open \drivers\builtin\DigitalIO\
    reg set value UseAsIO hex 00,00,00,01,00,00
    reg set value DataDir hex 00,00,00,01,00,00
    reg set value DataInit hex 00,00,00,01,00,00
    reg save


    But this has no effect.


    I've used 00,00,00,01,00,00 for the parameter for UseAsIO, DataDir and DataInit as IO17 should be on the 17th bit.


    Anyone have any ideas?


    Thanks

  • Hello,
    sorry the feature for using "hex" values is not implemented until now. As a workaround (and also in future) you may use "DWORD" values. For example:

    Code
    1. reg set value UseAsIOA dword 0x...
    2. reg set value UseAsIOB dword 0x...
    3. ....


    instead of

    Code
    1. reg set value UseAsIO hex 00, ...
    2. ...

    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.

  • So far I have:


    This should make bit 17 and output and configure it to be on but the output on the PicoMOD has not switched on.


    Is there something I'm missing here?

  • No, this (0x100) assigns bit9 and start is not bit1 but bit0!
    So 0x10000 assigns bit17.

    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.