Latest FirmWare
#1
Posted 06 October 2011 - 12:27 AM
#2
Posted 06 October 2011 - 06:03 AM
YepWill the release of firmware 4.2.0 require the .NET Micro Framework 4.2 or visa versa?
I believe so, but no details are available so far.Will the new firmware have ability to adjust frequency for PWM?
The makers of Netduino are working hard on the Netduino 4.2 RC3 firmware. Stay tuned!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#3
Posted 06 October 2011 - 07:54 AM
Yes. You can set the period and duration (within a period) of the pulses, or alternatively the frequency and duty cycle.Will the new firmware have ability to adjust frequency for PWM?
namespace Microsoft.SPOT.Hardware { public class PWM : IDisposable { public PWM(Cpu.PWMChannel channel, uint period_us, uint duration_us, bool invert); public PWM(Cpu.PWMChannel channel, double frequency_Hz, double dutyCycle, bool invert); public uint Duration { get; set; } public uint Period { get; set; } public double DutyCycle { get; set; } public double Frequency { get; set; } ... } }Frequency and DutyCycle are only syntactic sugar, they are internally converted to Duration and Period. The latter are both interpreted as microseconds (in the source code, the comments erroneously claim that they are a frequency and a percentage).
Best regards
Cuno
#4
Posted 06 October 2011 - 02:23 PM
Yep
I believe so, but no details are available so far.
The makers of Netduino are working hard on the Netduino 4.2 RC3 firmware. Stay tuned!
Thanks... waiting patiently
#5
Posted 06 October 2011 - 02:25 PM
Yes. You can set the period and duration (within a period) of the pulses, or alternatively the frequency and duty cycle.
namespace Microsoft.SPOT.Hardware { public class PWM : IDisposable { public PWM(Cpu.PWMChannel channel, uint period_us, uint duration_us, bool invert); public PWM(Cpu.PWMChannel channel, double frequency_Hz, double dutyCycle, bool invert); public uint Duration { get; set; } public uint Period { get; set; } public double DutyCycle { get; set; } public double Frequency { get; set; } ... } }Frequency and DutyCycle are only syntactic sugar, they are internally converted to Duration and Period. The latter are both interpreted as microseconds (in the source code, the comments erroneously claim that they are a frequency and a percentage).
Best regards
Cuno
This is awesome!!! exactly what i've been looking to do
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users