I2C register settings

  • Hi,


    We have used a pressure sensor on the Netdcu8 J5 (pin 13 SCL, pin 15 SDA) for years and now we need to get it working on the A5 (CE6.0).
    We visited you in March this year and had it working on a A5 board from you. unfortunately we couldn't take that board with us and we can't remember or find notes how to set the register.



    Please help :-)


    Kind regards,
    Thomas

  • Hello,


    please read our device driver documentation. (http://fs-net.de/filelicence/get?fileid=6823&locale=de_DE) In sections 4 and 14 you can find more information about registery settings for external i2c device.

    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.

  • We used the documentation but had no good results.
    Please help us to get it working.



    We have connected our I2C device to
    SCL: J5Pin13 register setting 8
    SDA: J5Pin15 register setting 9


    We think we should use I2c1


    \: HKEY_LOCAL_MACHINE\drivers\builtin\i2c1
    00 "pinSDA"=dword:9 \
    01 "pinSCL"=dword:8 \
    02 "Debug"=dword:255 \
    03 "Order"=dword:10 \
    04 "Index"=dword:1 \
    05 "Prefix"=string:I2C \
    06 "FriendlyName"=string:I2C driver for NetDCU \
    07 "Dll"=string:fs_i2c.dll \


    We have disabled the native I2C2
    \:HKEY_LOCAL_MACHINE\drivers\builtin\netdcua5\i2c2
    00 "Prefix"=string:I2C \
    01 "Dll"=string:fs_ni2c.dll \
    02 "Order"=dword:24 \
    03 "Index"=dword:1 \
    04 "DeviceArrayIndex"=dword:2 \
    05 "FriendlyName"=string:Native I2C driver feature con. \
    06 "IntPullUp"=dword:0 \
    07 "ClockFreq"=dword:200000 \
    08 "RepeatedStarts"=dword:1 \
    09 "Flags"=dword:4 \


    I2C3 is in use for touch screen, which works just fine.
    HKEY_LOCAL_MACHINE\drivers\builtin\i2c3
    00 "Prefix"=string:I2C \
    01 "Dll"=string:fs_ni2c.dll \
    02 "Order"=dword:23 \
    03 "Index"=dword:3 \
    04 "DeviceArrayIndex"=dword:3 \
    05 "FriendlyName"=string:Native I2C driver display con. \
    06 "RepeatedStarts"=dword:1 \
    07 "IntPullUp"=dword:1 \
    08 "ClockFreq"=dword:400000 \


    When I use FS_I2CSCAN.exe to scan the I2C1 bus, No devices are found and the serial dubug gives me:
    I2C: [2125416] 0xd4683260: Device closed
    I2C: [2125425] 0xd4683260: Device opened
    I2C: I2C_IOControl(): Unknown command code (Error 87)
    +1
    I2C: [2125485] 0xd4683260: Message aborted, 65535 byte(s) left, chFlags=0x08
    -0