User manual

GHI Electronics,LLC Embedded Master User Manual
Hardware and Software Library
11.1.1 Non-TFT version SPI LCD interface
Embedded Master Modules also support low-cost low-resolution displays. The module has
a dedicated SPI2 bus to transfer the video buffer to the display. Some applications may
require large color displays. These displays, such as TFT LCD, require a lot of RAM and
an LCD controller from the system. Embedded Master TFT version supports these TFT
LCDs. Note that all TFT LCD required pins are on a separate 40-pin 0.5mm FPC
connector. Designers are not required to use it at all.
Also, TFT modules still support the low-cost low-resolution displays that are refreshed from
a dedicated SPI2 bus.
Embedded Master also supports UG-2828GDEAF01 color OLED from Univision
technologies (www.sparkfun.com) and OS128064PK27MY from OSRAM (discontinued). It
also supports the very common F-51852 displays from Opterx (www.optrex.com)
Any LCD support has to be done in the .NET Micro Framework core. This means that the
display has to be supported by GHI. Displays with SPI2 interface usually contain one of
the common LCD/OLED controllers. So even though the display can be different, the
controller could be the same and then the display could be used. Note that even if displays
use the same controller they may not have the same pin-out.
Note: User cannot use SPI2 if it is used by the SPI-based Embedded Master LCD Driver.
TFT
PIN#
Non-
TFT
PIN#
Name Description
12 12 LCD_RST Default pin for LCD reset
18 18 LCD_CMD Default pin for LCD command/data select
56 46 LCD_SSEL (SPI2) LCD salve select
61 51 LCD_MISO (SPI2) LCD master in slave out (usually not used)
58 48 LCD_SCK (SPI2) LCD serial clock
59 49 LCD_MOSI (SPI2) LCD master out slave in
To select one of the many supported displays, refer to Miscellaneous Hardware Access
section.
.Net Micro Framework supports colored bitmap displays through a set of classes that
allows the display to be manged as a simple bitmap. Also, it has a more complex approach
based on the WPF (Windows Presentation Foundation).
Microsoft.SPOT.Bitmap is a simple class to handle graphics on the LCD. For example, writing
text, drawing simple shapes and displaying images.
Windows Presentation Foundation provides a number of advanced user interface
technologies to the developer. For example, using panels, text, images, list boxes and
interaction with buttons.
Rev. 2.06 TFT Page 59 of 102 www.ghielectronics.com