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

PWM max freq.

pwm max freq netduino plus 2

  • Please log in to reply
3 replies to this topic

#1 Murat GUNES

Murat GUNES

    New Member

  • Members
  • Pip
  • 4 posts
  • LocationKocaeli / TURKEY

Posted 09 May 2013 - 01:01 PM

Hi,

 

I have a netduino plus 2 and firmware 4.2.2.2 successfully filashed. I need to produce a signal (a square wave) of 2 MHz with 250 ns positive and negative pulse width. As I figured out, by reading the forum, it's impossible to achieve a frequency more then 500 KHz with PWM. Is there another way to get a 2 MHz square wave or should I back to STM32F4Discovery + MikroC (I really don't like both as a C# developer).

 

Another question I've been reading the forum and noticed that there is no a stable way for to produce a microsecond delay in NETMF, don't you think this is a handicap? Thanks in advance.

 

Inst. Murat GUNES

Kocaeli University Department of Computer Programming

BEAM R&D IT Manager


Inst. Murat GUNES

Kocaeli University Department of Computer Programming

BEAM R&D IT Manager


#2 Shadi

Shadi

    Member

  • Members
  • PipPip
  • 12 posts

Posted 09 May 2013 - 09:55 PM

Using the Microsoft.SPOT.Hardware.PWM class, what happens when you try SetPulse(500, 250)?



#3 Murat GUNES

Murat GUNES

    New Member

  • Members
  • Pip
  • 4 posts
  • LocationKocaeli / TURKEY

Posted 11 May 2013 - 05:19 PM

When I use ->

 

PWM fm = new PWM(Cpu.PWMChannel.PWM_0, 500, 250, PWM.ScaleFactor.Nanoseconds, false);

 

it doesn't response, nothing happens. But it's very strange that we cannot achieve a PWM with nanosecond dutycycle, I am changind to STM32F4Discovery unfortunately.

 

Thanks for the reply...


Inst. Murat GUNES

Kocaeli University Department of Computer Programming

BEAM R&D IT Manager


#4 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 11 May 2013 - 06:52 PM

its not Cpu.PWMChannel.

- its PWMChannels.yourpin

 

cpu. maps the hardware pins, so cpu.pin0 would be pin0 on the uC







Also tagged with one or more of these keywords: pwm, max, freq, netduino plus 2

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.