Latest FirmWare - General Discussion - Netduino Forums
   
Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Latest FirmWare


  • Please log in to reply
4 replies to this topic

#1 Tek10

Tek10

    New Member

  • Members
  • Pip
  • 6 posts

Posted 06 October 2011 - 12:27 AM

Will the release of firmware 4.2.0 require the .NET Micro Framework 4.2 or visa versa? Will the new firmware have ability to adjust frequency for PWM? I'm new to this forum so if I posted incorrectly please let me know where I should post. Any help would be appreciated.

#2 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 06 October 2011 - 06:03 AM

Will the release of firmware 4.2.0 require the .NET Micro Framework 4.2 or visa versa?

Yep

Will the new firmware have ability to adjust frequency for PWM?

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!
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#3 Cuno

Cuno

    Advanced Member

  • Members
  • PipPipPip
  • 144 posts
  • LocationZürich / Switzerland

Posted 06 October 2011 - 07:54 AM

Will the new firmware have ability to adjust frequency for PWM?

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

#4 Tek10

Tek10

    New Member

  • Members
  • Pip
  • 6 posts

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 Tek10

Tek10

    New Member

  • Members
  • Pip
  • 6 posts

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

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.