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.

Szpiro

Member Since 17 Jan 2013
Offline Last Active Feb 03 2013 05:06 PM
-----

Topics I've Started

netduino plus 2 execution speed expectations

18 January 2013 - 11:07 PM

The (release) code below produces 11usec pulses with a 45usec period. This implies that a simple  floating point operation take 11usec. This is incredibly slow for a Cortex F4 with 168MHz clock. Am I expecting too much from the CLR operation? :mellow:

 

Thanks,

 

Amos Szpiro

 

	public static void Main()	{		double f1, f2;		var ledPort = new OutputPort(Pins.ONBOARD_LED, false);		var tmPort = new OutputPort(Pins.GPIO_PIN_A0, false); 		while (true)		{			f1 = 1.25;			tmPort.Write(true);			f2 = 1.21 * f1;			tmPort.Write(false);			ledPort.Write(true);	// turn on LED			//Thread.Sleep(500);	  // wait 500 ms 			ledPort.Write(false);   // turn off LED			//Thread.Sleep(500);	  // wait 500 ms		}	}

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.