GHI Electronics,LLC EMX SoM User Manual
Table of Contents
Table of Contents
1.Introduction...................................................................................4
1.1.The .NET Micro Framework................................................4
1.2.GHI Electronics and NETMF...............................................5
1.3.EMX Module Key Features.................................................6
1.4.Exam le A lications..........................................................6
2.The Hardware...............................................................................7
2.1.LPC2478 Microcontroller.....................................................7
2.2.SDRAM................................................................................7
2.3.FLASH.................................................................................7
3.Pin-Out Descri tion.......................................................................8
3.1.Pin-out Table........................................................................8
4.EMX on boot u ..........................................................................13
4.1.Boot Mode Pins.................................................................13
4.2.GHI Boot Loader vs. TinyBooter vs. EMX Firmware
(NETMF/TinyCLR)...................................................................15
4.3.The Loader and Firmware Debug Access Interface..........15
5.The GHI Boot Loader..................................................................16
5.1.The Commands.................................................................16
5.2.U dating TinyBooter..........................................................16
U dating TinyBooter using FEZ Config.............................17
U dating EMX Manually....................................................18
Loading using XMODEM...................................................18
5.3.TinyBooter.........................................................................21
5.4.TinyCLR (firmware) U date Using FEZ Config.................22
5.5.Firmware U date Using MFDe loy...................................23
6.NETMF TinyCLR (firmware).......................................................26
6.1.Assemblies Version Matching...........................................26
6.2.De loying to the Emulator.................................................27
6.3.De loying to the EMX Module...........................................28
6.4.Targeting Different Versions of the Framework.................30
7.The Libraries...............................................................................31
7.1.Finding NETMF Library Documentation............................32
7.2.Loading Assemblies...........................................................33
7.3.Im ortant Information for the Following Exam les............34
7.4.Digital In uts/Out uts (GPIO)............................................34
Out uts..............................................................................35
In uts.................................................................................37
Interru t Pins.....................................................................38
7.5. Analog In uts/Out uts......................................................39
7.6.PWM..................................................................................39
7.7.Signal Generator...............................................................40
7.8.Signal Ca ture...................................................................41
7.9.Serial Port (UART).............................................................42
7.10.SPI...................................................................................43
7.11.I2C...................................................................................44
7.12.CAN.................................................................................45
7.13.One-wire..........................................................................46
7.14.Gra hics..........................................................................47
Fonts..................................................................................48
Glide..................................................................................48
Touch Screen....................................................................49
7.15.USB Host.........................................................................50
7.16.Accessing Files and Folders...........................................51
SD/MMC Memory..............................................................53
USB Mass Storage............................................................53
7.17.Secure Networking (TCP/IP)...........................................53
The Extensions..................................................................53
MAC address setting.........................................................53
IP address (DHCP or static):.............................................54
Ethernet.............................................................................55
Wireless LAN WiFi............................................................56
7.18.PPP..................................................................................57
7.19.USB Client (Device) ........................................................57
7.20.Extended Weak References (EWR)................................59
7.21.Real Time Clock..............................................................59
7.22.Watchdog.........................................................................61
7.23.Power Control..................................................................61
7.24.In-Field U date................................................................63
7.25.SQLite Database.............................................................63
8.Advanced use of the Micro rocessor ........................................65
8.1.Register.............................................................................65
8.2.AddressS ace...................................................................65
8.3.Battery RAM......................................................................65
8.4.Runtime Loadable Procedure............................................66
9.design Consideration..................................................................67
Required Pins....................................................................67
Interru t Pins.....................................................................67
...........................................................................................67
10.Soldering EMX..........................................................................68
Legal Notice...................................................................................69
Licensing..................................................................................69
Disclaimer................................................................................69
EMX Module Page 3 of 69 www.ghielectronics.com