Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
2Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
Guide to NETMF

Guide to NETMF

Ratings: (0)|Views: 391 |Likes:
Published by test1234567x

More info:

Published by: test1234567x on Sep 14, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/08/2012

pdf

text

original

 
Beginners Guide toC#
and
.NET Micro Framework
October 8
th
2010
Rev 1.06
Copyright © 2010 GHI Electronics, LLCwww.GHIElectronics.comwww.TinyCLR.comBy: Gus Issa
 
Beginners guide to C# and .NET Micro Framework
Table of Contents
1.Change Log...............................................................42.About the Book..........................................................52.1.Intended Audience............................................52.2.Translating the Book..........................................53.Introduction................................................................63.1.Advantages.......................................................64.Porting vs GHI's Offers..............................................74.1.Features............................................................74.2.Support..............................................................74.3.Maintenance......................................................74.4.Robustness.......................................................74.5.Time-to-Market..................................................85.Selecting a Device.....................................................95.1.ChipworkX Module............................................95.2.EMX Module....................................................105.3.USBizi Chipset................................................105.4.FEZ Family......................................................11FEZ Domino and FEZ Mini...............................11FEZ Cobra........................................................13Other Devices...................................................146.Getting Started........................................................156.1.System Setup..................................................156.2.The Emulator...................................................15Create a Project...............................................15Selecting Transport..........................................17Executing..........................................................18Breakpoints......................................................196.3.Running on Hardware......................................20MFDeploy can Ping!.........................................20Deploying to Hardware.....................................217.Component Drivers..................................................228.C# Level 1...............................................................238.1.What is .NET?.................................................238.2.What is C#?.....................................................23“Main” is the Starting Point...............................23Comments........................................................24while-loop.........................................................25Variables..........................................................26 Assemblies.......................................................28What Assemblies to Add?................................31Threading.........................................................329.Digital Input & Output..............................................359.1.Digital Outputs.................................................35Blink an LED.....................................................379.2.Digital Inputs....................................................389.3.Interrupt Port...................................................409.4.Tristate Port.....................................................4110.C# Level 2.............................................................4310.1.Boolean Variables.........................................4310.2.if-statement....................................................4510.3.if-else-statements..........................................4610.4.Methods and Arguments...............................4810.5.Classes..........................................................4910.6.Public vs. Private...........................................5010.7.Static vs. non-static.......................................5010.8.Constants......................................................5110.9.Enumeration..................................................5111.Assembly/Firmware Matching...............................54Boot-up Messages...........................................5412.Pulse Width Modulation.........................................56Simulating PWM...............................................58Controlling Servo Motors and Fine-tune thePWM................................................................5812.1.Piezo.............................................................6013.Glitch filter.............................................................6114.Analog input & output............................................6214.1.Analog Inputs................................................6214.2.Analog Outputs..............................................6315.Garbage Collector.................................................6515.1.Losing Resources..........................................6615.2.Dispose.........................................................6715.3.GC Output Messages....................................6816.C# Level 3.............................................................6916.1.Byte...............................................................6916.2.Char...............................................................6916.3.Array..............................................................7016.4.String.............................................................7116.5.For-Loop........................................................7216.6.Switch Statement...........................................7417.Serial Interfaces.....................................................7717.1.UART.............................................................7717.2.SPI.................................................................8117.3.I2C.................................................................8317.4.One Wire.......................................................8417.5.CAN...............................................................8518.Output Compare....................................................8819.Loading Resources................................................9220.Displays.................................................................9620.1.Character Displays........................................9620.2.Graphical Displays.........................................96Native support..................................................96Non-native support.........................................101Native-support on non-standard display.........10121.Time Services......................................................10521.1.Real Time Clock..........................................10521.2.Timers.........................................................10622.USB Host.............................................................10822.1.HID Devices................................................109Copyright © 2010 GHI Electronics, LLCPage 2/173
 
Beginners guide to C# and .NET Micro Framework22.2.Serial Devices.............................................11122.3.Mass Storage..............................................11323.File System..........................................................11523.1.SD Cards.....................................................11523.2.USB Mass Storage......................................11823.3.File System Considerations.........................12024.Networking..........................................................12124.1.USBizi (FEZ) Network Support....................12124.2.Raw TCP/IP vs. Sockets.............................12224.3.Standard .NET Sockets...............................12324.4.Wi-Fi (802.11)..............................................12424.5.GPRS and 3G Mobile Networks..................12525.Cryptography.......................................................12625.1.XTEA...........................................................126XTEA on PCs.................................................12725.2.RSA.............................................................12726.XML.....................................................................13026.1.XML in Theory.............................................13026.2.Creating XML..............................................13126.3.Reading XML...............................................13427.Expanding I/Os....................................................13627.1.Digital..........................................................136Button Matrix..................................................13627.2.Analog.........................................................138 Analog Buttons...............................................13828.USB Client...........................................................13928.1.Serial (COM) Debugging.............................13928.2.The Setup....................................................14028.3.Mouse, the Perfect Prank............................14128.4.Keyboard.....................................................14228.5.CDC -Virtual Serial......................................14428.6.Mass Storage..............................................14528.7.Custom Devices..........................................14629.Low Power...........................................................14830.Watchdog............................................................154System Execution Recovery...........................154Limiting Time-Critical Tasks...........................155Detecting Watchdog Cause............................15631.Wireless...............................................................15731.1.Zigbee (802.15.4)........................................15831.2.Bluetooth.....................................................15931.3.Nordic..........................................................16132.Objects in Custom Heap......................................16232.1.Management of Custom Heap.....................16232.2.Large Bitmaps.............................................16432.3.LargeBuffer..................................................16433.Thinking Small.....................................................16633.1.Memory Utilization.......................................16633.2.Object Allocation..........................................16634.Missing Topics.....................................................17134.1.WPF............................................................17134.2.DPWS..........................................................17134.3.Extended Weak Reference..........................17134.4.Serialization.................................................17134.5.Runtime Loadable Procedures ...................17134.6.Databases...................................................17234.7.Touch Screen..............................................17234.8.Events.........................................................17234.9.USB Host Raw............................................17235.Final Words.........................................................17335.1.Further Reading...........................................17335.2.Disclaimer....................................................173Copyright © 2010 GHI Electronics, LLCPage 3/173

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->