control PWM_A on efusA9 with VS2012 on wec2013

  • It started to work:


    i have now these registry values:
    HKLM\Drivers\Buildin\EfusA9\PWM4
    Default: 2500
    Prefix: PWM
    Dll: fs_pwm.dll
    Order: 153
    Index: 4
    Flags: 0
    Steps: 4095
    Freq: 50000 (=50Khz)
    Mode: 0
    Debug: 4
    Channel: 4


    in debug:
    PWM: Version 1.2, ActiveKey = Drivers\Active\49
    Freq = 0x0000c350 = 50000
    Steps = 0x00000fff = 4095
    Default = 0x000009c4 = 2500
    Mode = 0x00000000 = 0
    Channel = 0x00000004 = 4
    index = 0x00000004 = 4
    EXTRTC: Version 1.2, ActiveKey = Drivers\Active\50


    pwm is coming out of the board.


    Now i have to interface it in c#.net
    can someone give me the file: pwm_sdk.h ???


    or can support tell me how to do it?
    All i know now is that i have to use WriteFile and ReadFile....


    thanks

  • Hello and sorry for the late reply.


    Why do you create an own key for PWM? The driver is loaded by default HKLM\Drivers\builtin\efusa9\pwm4! You can not use channel 0! Refer Device Driver Doc.


    But right there seems to be a disagreement between Device Driver Doc (channel=4) and actual registry (channel=2). Did you checked these values?
    I will check code asp.


    Thanks.

    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.

  • Hm, too late. Thanks.


    You will find DLL imports for CreateFile, ReadfFile, WriteFile, CloseFile here GPIO access via C#.
    PWM_SDK.h is part of the FSimx6SDK which you can download.

    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.