GHI electronics G400-S Manuel utilisateur

GHI Electronics
G400 SoM User Manual
Rev 0.07 May 4, 2015 User Manual
G400-S Top G400-S Bottom
G400-D Top

GHI Electronics,LL G400 SoM User Manual
Rev 0.07 Page 2 of 72 www.GHIElectronics.com
Revision History
Rev No. Date Modification
Rev 0.07 05/04/15 larified absence of analog output.
Rev 0.06 02/17/15 More UART map enhancements
Rev. 0.05 12/23/14 UART map enhancements
Rev. 0.04 12/23/14 Pin PA11 & SAM-BA
Rev. 0.03 12/23/14 Pin clarification PA11, PA12, PA13, PA9,PA25
Rev. 0.02 11/24/14 larified some Pin descriptions (Ethernet, etc.)
Rev. 0.01 08/26/14 Preliminary version

GHI Electronics,LL G400 SoM User Manual
Table of ontents
Table of ontents
1.Introduction...................................................................................4
1.1.The .NET Micro Framework................................................4
1.2.GHI Electronics and NETMF...............................................5
1.3. Key Features......................................................................6
1.4.Example Applications..........................................................6
2.The Hardware...............................................................................7
2.1.The SAM9X35 Microcontroller............................................7
2.2.SDRAM................................................................................7
2.3.FLASH.................................................................................7
2.4.G400 Products.....................................................................7
3.Pin-Out Description.......................................................................8
3.1.G400-S Pin-out Table..........................................................8
3.2.G400-D Pin-out Table........................................................12
4.Booting. Sequence and ontrol..................................................18
4.1.Boot Mode Pins.................................................................18
4.2.GHI Boot Loader vs. TinyBooter vs. G400 Firmware
(NETMF/Tiny LR)...................................................................19
4.3.Physical Bus Used During Programming, “the Debug
Access Interface”.....................................................................20
5.The GHI Boot Loader..................................................................21
5.1.Updating TinyBooter..........................................................21
5.2.Steps for Using “Update” (SAM-BA):................................21
6.TinyBooter...................................................................................24
6.1.Tiny LR (firmware) Update With FEZ onfig
(Recommended)......................................................................25
6.2.Firmware Update Using MFDeploy (Deprecated).............26
7.NETMF Tiny LR (firmware).......................................................30
7.1.Assemblies and Version Matching....................................30
7.2.Deploying to the Emulator.................................................31
7.3.Deploying to the G400.......................................................35
7.4.Targeting Different Versions of the Framework.................35
8.The Libraries...............................................................................36
8.1.Finding NETMF Library Documentation............................37
8.2.Loading Assemblies...........................................................38
8.3.Digital Inputs/Outputs........................................................39
Interrupt Pins.....................................................................42
8.4. Analog Inputs/Outputs......................................................43
8.5.PWM..................................................................................43
8.6.Signal Generator...............................................................44
8.7.Signal apture...................................................................45
8.8.Serial Port (UART).............................................................46
8.9.SPI.....................................................................................47
8.10.I2 ...................................................................................48
8.11. AN.................................................................................49
8.12.One-wire..........................................................................50
8.13.Graphics..........................................................................51
Fonts..................................................................................52
Glide..................................................................................52
Touch Screen....................................................................53
8.14.USB Host.........................................................................54
8.15.Accessing Files and Folders...........................................55
SD/MM Memory..............................................................57
USB Mass Storage............................................................57
8.16.Secure Networking (T P/IP)...........................................57
The Extensions..................................................................57
MA address setting.........................................................57
IP address (DH P or static):.............................................58
Ethernet.............................................................................58
Wireless LAN WiFi............................................................60
8.17.PPP..................................................................................61
8.18.USB lient (Device) ........................................................62
8.19.Extended Weak References (EWR)................................64
8.20.Real Time lock..............................................................64
8.21.Watchdog.........................................................................66
8.22.Power ontrol..................................................................66
8.23.In-Field Update................................................................66
8.24.SQLite Database.............................................................67
9.Advanced use of the Microprocessor ........................................69
9.1.Register.............................................................................69
9.2.AddressSpace...................................................................69
9.3.Runtime Loadable Procedure............................................69
10.design onsideration................................................................70
10.1.Required Pins..................................................................70
10.2.SPI hannels...................................................................70
10.3.Watchdog.........................................................................70
11.Soldering the G400...................................................................71
Legal Notice...................................................................................72
Licensing..................................................................................72
Disclaimer................................................................................72
Page 3 of 72 www.ghielectronics.com

GHI Electronics,LL G400 SoM User Manual
Introduction
1. Introduction
The G400 is a powerful, yet low-cost, surface-mount System on Module (SoM) running the
.NET Micro Framework software, which enables the SoM to be programmed from Microsoft's
Visual Studio, by simply using a USB cable. Programming in a modern managed language,
such as # and Visual Basic, allows developers to accomplish much more work in less time
by taking advantage of the extensive built-in libraries for networking, file systems, graphical
interfaces and many peripherals.
A simple two layer circuit, with just power and some connectors, can utilize the G400 to bring
the latest technologies to any products. There are no additional licensing or fees and all the
development tools and SDKs are provided freely.
1.1. The .NET Micro Framework
Inspired by its full .NET Framework, Microsoft developed a lightweight version called .NET
Micro Framework (NETMF).
NETMF focuses on the specific requirements of resource-constrained embedded systems.
Development, debugging and deployment is conveniently performed using Microsoft's
powerful Visual Studio tools, all through standard USB cable.
Programming is done in # or Visual Basic. This includes libraries to cover sockets for
networking, modern memory management with garbage collector and multitasking services.
In addition to supporting standard .NET features, NETMF has embedded extensions
supporting:
●General Purpose IO (GPIO with interrupt handling
●Analog input/output
●Standard buses such I2 , SPI, USB, Serial (UART)
●PWM
●Networking
●File System
●Display graphics, supporting images, fonts and controls.
Rev 0.07 Page 4 of 72 www.GHIElectronics.com

GHI Electronics,LL G400 SoM User Manual
Introduction
1.2. GHI Electronics and NETMF
For years, GHI Electronics has been the lead Microsoft partner on .NET Micro Framework
(NETMF). The core NETMF was also extended with new exclusive libraries for an additional
functionality, such as database, USB Host and WiFi.
One of the important extensions by GHI Electronics is Runtime Loadable Procedures (RLP),
allowing native code (Assembly/ ) to be compiled and loaded right from withing managed
code ( #/Visual Basic) to handle time critical and processor intensive tasks. IT can also be
used to add new native extensions to the system.
As for networking, WiFi and PPP libraries are added by GHI Electronics to the NETMF core.
ombined with Ethernet and the other managed services, it is a complete toolbox for the
internet of things.
All the mentioned features are loaded and tested on the G400. GHI Electronics continuously
maintains, upgrades and solves any of the issues on the G400's firmware, to provide regular
and free releases. Users can simply load the new software on the G400 using USB or Serial,
and even use the in-field-update feature. This feature allows the upgrade to be done through
any of the available interface, including file system and networking.
Rev 0.07 Page 5 of 72 www.GHIElectronics.com

GHI Electronics,LL G400 SoM User Manual
Introduction
1.3. Key Features
●.NET Micro Framework
●400Mhz ARM 926EJ-S processor
●128MB RAM
●4MB MB FLASH
●Embedded L D controller
●102 GPIO Pins
●102 Interrupt Inputs
●2 SPI
●I2
●8 UART
●2 AN hannels
●up to 12 10-Bit Analog Inputs
●10-Bit Analog Output
●4Bit SD/SDH /MM Memory card
interface
●4 PWM
●160 mA max
●60 mA Hibernate Mode
●-40º to +85º Operational
●RoHS Lead Free
●T P/IP Stack (.NET sockets)
●SSL secure networking
●WiFi
●PPP
●One-wire on all IOs
●USB Host/Device
●Graphics (image, font and controls)
●SQLite database
●File System (SD and USB Sticks)
●Native extensions RLP
●Real Time lock
●In-Field-update
●Dimensions: (32.05mm x 67.49mm x
4.84mm )
1.4. Example Applications
●Vending machines, POS Terminals
●Measurement tools and testers
●Networked sensors
●Robotics
●entral alarm system
●Smart appliances
●Industrial automation devices
Rev 0.07 Page 6 of 72 www.GHIElectronics.com

GHI Electronics,LL G400 SoM User Manual
The Hardware
2. The Hardware
The G400 core components includes the processor, 4MB flash, and 128MB RAM.
The small, 38.1 x 26.7 x 3.55 mm, module contains everything needed to run a complex
embedded-system in a cost-effective and flexible solution. All needed is a 3.3V power source
and some connections to take advantage of the G400's long list of available features.
2.1. The SAM9X35 Microcontroller
The SAM9X35 microcontroller in the G400 is an 400Mhz, 32Bit, 926EJ-S ARM architecture. It
incorporates:
●16KB Data and Instruction aches
●internal 32KB SRAM, single-cycle at system speed
The NETMF core libraries, combined with the GHI Electronics extensions, provide a long list
of methods to access the available peripherals.
2.2. SDRAM
128MB of SDRAM comes standard with the G400
2.3. FLASH
4MB flash is available on the G400. One of the library extensions provided allows the user
application to be updated in field, even remotely (see Runtime Loadable Procedure.)
2.4. G400 Products
heck the online GHI catalog for our current product line. This section is based on products
available when this manual was initially published.
G400-D: form factor - SODIMM, has on-board Ethernet PHY
G400-S: form factor - surface-mount
FEZ Raptor: form factor - .NET Gadgeteer mainboard.
Rev 0.07 Page 7 of 72 www.GHIElectronics.com

GHI Electronics,LL G400 SoM User Manual
Pin-Out Description
3. Pin-Out Description
Many signals on the G400 are multiplexed to offer multiple functions on a single pin.
Developers can decide on the pin functionality through the provided libraries. These are some
important facts pertaining to the available pins:
●Pins with GPIO feature default to inputs with internal weak pull-up resistors, they are
not 5V tolerant
●Pins are 3.3V levels.
●Advanced details on all pins can be found in the SAM9X35 datasheet from Atmel's
website
urrently there are two different SoMs, the G400-S (surface-mount) and the G400-D (DIMM).
Be sure to reference the correct table below. In particular, note the difference between the
usage pins related to ethernet and power.
3.1. G400-S Pin-out Table
The G400-S does not have an external Ethernet PHY; so the pins are free to use.
G400-S GPIO
Multiplexed
Function(s) Notes
1 PD0
2 PD4
3 DIBP
4 PA27
5 PA16 SD MD
6 PA8 OM4 RX
7 PA3 OM2 TS
8 PA2 OM2 RTS
9 P 28
L D H Sync
OM3 TS
10 P 23
11 P 5 L D Green 0
12 P 1 L D Blue 1
13 VDDIOM1 1.8V
14 SHDN
15 JTAGSEL
16 GND1
17 PB3 ERXDV
18 PB1 ERX1
Rev 0.07 Page 8 of 72 www.GHIElectronics.com

GHI Electronics,LL G400 SoM User Manual
Pin-Out Description
G400-S GPIO
Multiplexed
Function(s) Notes
19 WKUP
20 PB18
21 PB8 AD9
22 PB14 AD3
23 PB12 AD1
24 PB6
EMD
AD7
25 PB15 AD4
26 PB0 ERX0
27 PB5 EMDIO
28 P 2 L D Blue 2
29 P 9
L D Green 4
OM5 RX
30 P 11 L D Red 0
31 P 12 L D Red 1
32 P 24
33 PA0 OM2 TX
34 P 21 PWM3
35 P 19 PWM1
36 P 22
37 PA7 OM4 TX
38 PA4 LDR1 Boot Mode ontrol
39 PB11 AD0
40 PB13 AD2
41 PB10
ETX1
AD11
42 V 3.3V
43 VBAT
44 PB7
ETXEN
AD8
45 PB2 ERXER
46 P 0 L D Blue 0
47 P 6 L D Green 1
48 VDDIOM2 1.8V
49 P 10 L D Green 5
50 P 3 L D Blue 3
51 P 15 L D Red 4
52 P 18 PWM 0
53 VDD ORE1 1.0V
54 P 13 L D Red 2
Rev 0.07 Page 9 of 72 www.GHIElectronics.com

GHI Electronics,LL G400 SoM User Manual
Pin-Out Description
G400-S GPIO
Multiplexed
Function(s) Notes
55 P 31
56 GND2
57 P 26
58 P 30 L D lock
59 PA12 SPI1 MOSI Use as SPI Only
60 PB16 AD5
61 PB17 AD6
62 PB9 ETX0 / AD10
63 PB4 ETX K
64 P 4 L D Blue 4
65 P 7 L D Green 2
66 P 8
L D Green 3
OM5 TX
67 P 14 L D Red 3
68 P 16 OM6 TX
69 P 20 PWM2
70 P 17 OM6 Rx
71 P 27
L D V Sync
OM3 RTS
72 P 29 L D Data Enable
73 PA5 OM3 TX / AN2 TX
74 PA1 OM2 RX
75 PA11 SPI1 MISO Use as SPI Only. Pull low on reset to enter SAM-BA.
For SAM-BA, do not pull low for more than 2
seconds.
76 PA10
OM1 TX
AN1 TX
77 PA9
OM1 RX
AN1 RX Must be HIGH to enter SAM-BA
78 PA15 SD D0
79 PA18 SD D1
80 PA20 SD D3
81 PA23 SPI2 LK
82 PA28
83 PA31 I2 S L Open drain port
84 V 3.3V
85 T K
86 USB D+
87 USB D-
88 USB H0+
Rev 0.07 Page 10 of 72 www.GHIElectronics.com
Ce manuel convient aux modèles suivants
1
Table des matières
Autres manuels GHI electronics Unité de contrôle
Manuels Unité de contrôle populaires d'autres marques

Festo
Festo Compact Performance CP-FB6-E Manuel de la liste des pièces

Elo TouchSystems
Elo TouchSystems DMS-SA19P-EXTME Manuel utilisateur

JS Automation
JS Automation MPC3034A Manuel utilisateur

JAUDT
JAUDT SW GII 6406 Series Guide rapide

Spektrum
Spektrum Air Module System Manuel utilisateur

BOC Edwards
BOC Edwards Q Series Manuel utilisateur













