GHI Electronics,LLC G120 SoM User Manual
Ta le of Contents
Table of ontents
1.Introduction...................................................................................4
1.1.The .NET Micro Framework................................................4
1.2.GHI Electronics and NETMF...............................................5
1.3.G120 Module Key Features................................................6
1.4.Example Applications..........................................................6
2.The Hardware...............................................................................7
2.1.LPC1788 Microcontroller.....................................................7
2.2.SDRAM................................................................................7
2.3.FLASH.................................................................................7
3.Pin-Out Description.......................................................................8
3.1.Pin-out Ta le........................................................................8
4.G120 on oot up.........................................................................12
4.1.Boot Mode Pins.................................................................12
4.2.GHI Boot Loader vs. TinyBooter vs. G120 Firmware
(NETMF/TinyCLR)...................................................................13
4.3.The Loader and Firmware De ug Access Interface..........13
5.The GHI Boot Loader..................................................................14
5.1.The Commands.................................................................14
5.2.Updating TinyBooter..........................................................14
Updating TinyBooter using FEZ Config.............................15
Updating TinyBooter Manually..........................................17
Loading using XMODEM...................................................18
5.3.TinyBooter.........................................................................20
5.4.TinyCLR (firmware) Update Using FEZ Config.................21
5.5.Firmware Update Using MFDeploy...................................23
6.NETMF TinyCLR (firmware).......................................................26
6.1.Assem lies Version Matching...........................................26
6.2.Deploying to the Emulator.................................................27
6.3.Deploying to the G120 Module..........................................29
6.4.Targeting Different Versions of the Framework.................29
7.The Li raries...............................................................................31
7.1.Finding NETMF Li rary Documentation............................32
7.2.Loading Assem lies...........................................................32
7.3.Digital Inputs/Outputs........................................................34
Interrupt Pins.....................................................................37
7.4. Analog Inputs/Outputs......................................................38
7.5.PWM..................................................................................38
7.6.Signal Generator...............................................................39
7.7.Signal Capture...................................................................40
7.8.Serial Port (UART).............................................................41
7.9.SPI.....................................................................................42
7.10.I2C...................................................................................43
7.11.CAN.................................................................................44
7.12.One-wire..........................................................................45
7.13.Graphics..........................................................................45
Fonts..................................................................................47
Glide..................................................................................47
Touch Screen....................................................................47
7.14.USB Host.........................................................................48
7.15.Accessing Files and Folders...........................................49
SD/MMC Memory..............................................................51
USB Mass Storage............................................................51
7.16.Secure Networking (TCP/IP)...........................................51
The Extensions..................................................................51
MAC address setting.........................................................51
IP address (DHCP or static):.............................................52
Ethernet.............................................................................53
Wireless LAN WiFi............................................................54
7.17.PPP..................................................................................55
7.18.USB Client (Device) ........................................................55
7.19.Extended Weak References (EWR)................................57
7.20.Real Time Clock..............................................................57
7.21.Watchdog.........................................................................59
7.22.Power Control..................................................................59
7.23.In-Field Update................................................................61
7.24.SQLite Data ase.............................................................61
8.Advanced use of the Microprocessor ........................................63
8.1.Register.............................................................................63
8.2.AddressSpace...................................................................63
8.3.Battery RAM......................................................................63
8.4.EEPROM...........................................................................64
8.5.Runtime Loada le Procedure............................................64
9.design Consideration..................................................................65
Required Pins....................................................................65
Interrupt Pins.....................................................................65
SPI Channels....................................................................65
10.Soldering G120.........................................................................66
Legal Notice...................................................................................67
Licensing..................................................................................67
Disclaimer................................................................................67
G120 Module Page 3 of 67 www.ghielectronics.com