Hi,
I want to use PWM_A (pin 32 on J22) of an efusA9 with wec2013
I want to use c#.net for this.
Has anyone any clue on how to do this?
kind regards
Hi,
I want to use PWM_A (pin 32 on J22) of an efusA9 with wec2013
I want to use c#.net for this.
Has anyone any clue on how to do this?
kind regards
I added these registry values:
HKLM\Drivers\Buildin\EfusA9\PWM3
Default: 2500
Prefix: PWM
Dll: fs_pwm.dll
Order: 153
Index: 3
Flags: 0
Steps: 4095
Freq: 300000
Mode: 0
but i get nothing out of pin 32 on J22
i got this in debug:
PWM: Version 1.2, ActiveKey = Drivers\Active\53
Freq = 0x000493e0 = 300000
Steps = 0x00000fff = 4095
Default = 0x000009c4 = 2500
Mode = 0x00000000 = 0
Channel = 0x00000000 = 0 (Default)
index = 0x00000001 = 1
!! EUA does NOT support PM
Why is support not answering my question?
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.
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.