Hello,
i find only a few hints to the registry settings and a file "pwm_sdh.h",
this file was not fount on my system.
Where do i find more information to the driver for PWM output ?
Regards
Thomas
Hello,
i find only a few hints to the registry settings and a file "pwm_sdh.h",
this file was not fount on my system.
Where do i find more information to the driver for PWM output ?
Regards
Thomas
Hello,
QuoteWhere do i find more information to the driver for PWM output ?
Please use Device Driver Document for FSVYBRID.
You will it here https://www.fs-net.de/de/produkte/netdcu/netdcua5/ -> Documents.
Quote... a file "pwm_sdh.h", this file was not fount on my System.
Which SDK have you installed? I found it in FSVybrid WEC7 and FS Vybrid WEC2013 SDK. Thereby the content:
Hello,
the SDK is Win CE 60 for NETDCUA5 with Visual Studio 2008
please give me a sample to use the driver, like this:
// open File handler
hPWM = CreateFile(_T("PWM1:"), .................................);
// write to set pwm output parameter
WriteFile(hPWM, ...........................);
is this file pwm_sdk.h ok to include to my project with win ce60 ?
Thanks
Thomas
Hello,
the code is independend from the OS in use. Do you really need support for calling OS functions;). If registry value "Mode" is configured as "percent mode" following results a PWM with 40% high phase:
Note, by default PWM is deactivated (registry value Flags=4). Please delete this value to activate the driver.
Any problems? Which values return "GetLstError()"? Which Information si shown on the serial debug line (driver loaded)?
Hello,
thanks for the sample, it works.
I need a tunable PWM Frequency from 50-70Hz, but the registry setting for PWM frequency lower than 1260 has no effect.
The lowest Frequency is always 1260Hz.
Is it possibility to set the PWM frequency in the range between 50-70Hz ?
Thanks
Thomas
Hello,
i checked out:
at the time PWM driver uses Vybrids Flex Timer Module and IPS Clock as source clock. This results in a minimal frequency of 1259.3Hz (=1260Hz)!
For go below this limt a driver modification is needed.
Any deadlines? At the time we are busy.
Hello,
there's no hurry,
but it's important to tune the frequency with my application without reset windows.
The best solution are, when i can set the output frequency in 1Hz steps from 45 to 100Hz.
At this moment it is importent to know is it possible to modyfy the driver with this function ?
Otherwise i must generate the signal with external Hardware.
In the next Days i must finalize the hardware. For the Software they are another 4 weeks.
kind regards
Thomas
Sorry for delayed answer, i will try it latest at KW23/2016.
Hello,
thanks for this info.
The Hardware is ready to use the PWM-function.
Kind reguards
Thomas
Hello, attached you will find the pwm driver V1.5 for WCE6/WCE7.
I test according the code below (unforunately under WEC2013 but this should be not significant). Does this driver fulfills your desire?
Hello,
any news about your tests?
Does this driver fulfills your desire?
Hello,
now there was a little time to test the driver,
it works fine
Thank you very much for the support
Kind reguards
Thomas
Hello,
nice that everything is working fine now. If any further issue about pwm features please come back to this thread.
Thank you too for your patience.