6D302 4D SYSTEMS, 6D302 Datasheet
![OLED DISPLAY 160x128PIXELS 33.6mmx27mm](/photos/41/1/410171/4817062_sml.jpg)
6D302
Specifications of 6D302
Related parts for 6D302
6D302 Summary of contents
Page 1
... USERS MANUAL µOLED (Serial Command Platform) Revision 1.3 4D Systems 160 GMD1 µSD ...
Page 2
... In no event shall 4D Systems be liable to the buyer or to any third party for any indirect, incidental, special, consequential, punitive or exemplary damages (including without limitation lost profits, lost savings, or loss of business opportunity) arising out of or relating to any product or service provided provided by 4D Systems, or the use or inability to use the same, even if 4D Systems has been advised of the possibility of such damages ...
Page 3
Table of contents 1. µOLED Description 1.1 Introduction 1.2 µOLED-160-GMD1 2. µOLED-160-GMD1 2.1 Command Protocol 2.2 General Command Set 2.2.1 Add User Bitmapped Character 2.2.2 Set Background Colour 2.2.3 Place Text button 2.2.4 Draw Circle 2.2.5 Block copy & Paste ...
Page 4
Display Object from Memory Card 2.4.10 Run Program from Memory Card 2.4.11 Delay 2.4.12 Set Counter 2.4.13 Decrement Counter 2.4.14 Jump to Address If Counter Not Zero 2.4.15 Jump to Address 2.4.16 Exit Program from Memory Card 2.5 Serial ...
Page 5
Description 1.1 Introduction The µOLED is a compact & cost effective all in one ‘SMART” OLED Display with an embedded graphics controller that will deliver ‘stand-alone’ functionality to your project. The ‘simple to use’ embedded commands not only ...
Page 6
The µOLED-160-GMD1 is aimed at being integrated into a variety of different applications via a wealth of features designed to facilitate any given functionality quickly and cost effectively and thus reduce ‘time to market’. These features are as ...
Page 7
The heart of the µOLED-160-GMD1 comprises of a handful of easy to learn instructions that can draw lines, circles, squares, etc, to provide a full text and graphical user interface. The commands are sent to the µOLED-160-GMD1 command ...
Page 8
Command Protocol The following are each of the commands with the correct syntax. Please note that all command examples listed below are in hex (00hex). Due to the high colour depth of the µOLED, a pixel colour value will ...
Page 9
General Command Set General Command Set (A) Add User Bitmapped Character (B) Set Background Colour (b) Place Text button (C) Draw Circle (c) Block copy and Paste (bitmap copy) (D) Display User Bitmapped Character (E) Erase Screen (F) Font ...
Page 10
Add User Bitmapped Character Syntax : cmd, char#, data1, data2, …….., dataN cmd : hex ascii char# : bitmap character number to add to memory (00 data1 to dataN : number of data ...
Page 11
Set Background Colour Syntax : cmd, colour cmd : hex ascii colour : pixel colour value: 2 bytes (16 bits) msb:lsb (msb:lsb) 65,536 colours to choose from Black = 0000 White = FFFF Description : This ...
Page 12
Text button Syntax : cmd, state, x textWidth, textHeight, char1, .., charN, terminator cmd : hex ascii state : Specifies whether the displayed button is drawn as UP (not pressed) or DOWN (pressed ...
Page 13
Draw Circle Syntax : cmd cmd : hex ascii x : circle centre horizontal position circle centre vertical position. 0 rad : radius size of the circle. 0 colour ...
Page 14
Block copy & Paste (Screen Bitmap Copy) Syntax : cmd cmd : hex ascii xs: top left horizontal start position of block to be copied (source) ys: top left vertical start position ...
Page 15
Display User Bitmapped Character Syntax : cmd, char cmd : hex ascii char# : which user defined character number to display from the selected group. 0 dec x : horizontal display position of the ...
Page 16
Erase Screen Syntax : cmd cmd : hex ascii Description : This command clears the entire screen using the current background colour. Example : 45 hex Clear the screen. (E) www.4dsystems.com.au 16 ...
Page 17
Set Font Size Syntax : cmd, size cmd : hex ascii size : = 00 : 5x7 small size font hex = 01 : 8x8 medium size font hex = 02 : 8x12 large size font ...
Page 18
Draw TrianGle Syntax : cmd, x1, y1, x2 cmd : hex ascii x1, y1, x2, y2, x3 vertices of the triangle. These must be specified in an colour : 2 byte triangle colour ...
Page 19
Draw Polygon Syntax : cmd, vertices, x1 cmd : hex ascii vertices : number of vertices from Specifies the number of vertices of the polygon. (x1, y1 (xn, yn) : ...
Page 20
Display Image Syntax : cmd cmd : hex ascii x : Image horizontal start position (top left corner Image vertical start position (top left corner) width : horizontal size of the ...
Page 21
Draw Line Syntax : cmd, x1, y1 cmd : hex ascii x1 : horizontal position of line start vertical position of line start horizontal position of line end. 0 ...
Page 22
Opaque / Transparent Text Syntax : cmd, mode cmd : hex ascii mode : = 00 : Transparent Text, objects behind the text can be seen. hex = 01 : Opaque Text, objects behind text is ...
Page 23
Put Pixel Syntax : cmd colour , cmd : hex ascii x : horizontal pixel position vertical pixel position. 0 colour : pixel colour value: 2 bytes (16 bits) msb, ...
Page 24
Set pen Size Syntax : cmd, size cmd : hex ascii size : = 00 : All objects such as circles, rectangles, triangles, etc are solid hex = 01 : All objects are wire frame (empty) ...
Page 25
Read Pixel Syntax : cmd cmd : hex ascii x : horizontal pixel position vertical pixel position. 0 Description : This command will read the colour value of pixel ...
Page 26
Draw rectangle Syntax : cmd, x1, y1 cmd : hex ascii x1 : top left horizontal start position of rectangle 159 ( top left vertical start position of rectangle . 0 x2 ...
Page 27
Place String of Ascii Text (unformatted) Syntax : cmd terminator cmd : hex ascii x : the horizontal start position of string (in pixels the vertical start position of string (in ...
Page 28
Place string of Ascii Text (formatted) Syntax : cmd, column, row cmd : hex ascii column : horizontal start position of string for 5x7 font for 8x8 and 8x12 font. ...
Page 29
Place Text Character (formatted) Syntax : cmd, char, column, row, colour cmd : hex ascii char : inbuilt standard ASCII character, 32 column : horizontal position of character, see range below for 5x7 ...
Page 30
Place text Character (unformatted) Syntax : cmd, char, x cmd : hex ascii char : inbuilt standard ASCII character the horizontal position of character (in pixel units the vertical position of ...
Page 31
OLED DisplaY Syntax : cmd, mode, value cmd : hex ascii mode : = 00 : BACKLIGHT hex value = XX OLED display. This is only retained for legacy. mode : = 01 : DISPLAY hex ...
Page 32
Version/Device Info Request Syntax : cmd, output Response : device_type, hardware_rev, firmware_rev, horizontal_res, vertical_res cmd : hex ascii output : 00 : outputs the version and device info to the serial port only. hex 01 : ...
Page 33
Display Specific Command Set Different OLED display panels that are used in the display modules have certain built in features that are controlled directly by the embedded driver controller. These features otherwise would be too cumbersome to implement in ...
Page 34
Write to OLED Register Syntax : spCmd, cmd, reg, data spCmd : hex ascii cmd : hex ascii reg : OLED internal register address. Refer to SEPS525 OLED driver data sheet for all ...
Page 35
Display Scroll Control Syntax : spCmd, cmd, register, data spCmd : hex ascii cmd : hex ascii reg : Scroll Control Register. register 0x00 (Scroll Enable/Disable) 0x01 (Scroll Direction) 0x02 (Scroll Speed) data ...
Page 36
Extended Command Set The following commands are related to the set and they are described in this section. The around the GOLDELOX-MD1 module (can be seen in the images below) which has an integrated micro-SD (µSD) memory card adaptor. ...
Page 37
Extended Command Set (@i) initialise uSD Memory Card (@R) Read Sector (@W) Write Sector (@r) read Byte (@w) write Byte (@A) Set Address (@C) Copy Screen to Memory Card (@I) Display Image/Icon from Memory Card (@O) Display Object from Memory ...
Page 38
Memory Card Syntax : extCmd, cmd extCmd : hex cmd : hex ascii Description : This command initialises the µSD memory card. The memory card is always initialised upon Power-Up or Reset ...
Page 39
Read Sector Data from Memory Card Syntax : extCmd, cmd, SectorAddress extCmd : hex cmd : hex ascii SectorAddress (hi:mid:lo 16,777,215 depending on the capacity of the card. Each sector is ...
Page 40
Write Sector Data to Memory Card Syntax : extCmd, cmd, SectorAddress extCmd : hex cmd : hex ascii SectorAddress (hi:mid:lo 16,777,215 depending on the capacity of the card. Each sector is ...
Page 41
Byte Data from Memory Card Syntax : extCmd, cmd extCmd : hex cmd : hex ascii Description : This command provides a means of reading a single byte of data back from ...
Page 42
Byte Data to Memory Card Syntax : extCmd, cmd, data extCmd : hex cmd : hex ascii data : 1 byte of memory card data. Description : This command allows writing single ...
Page 43
Set Memory Address Syntax : extCmd, cmd, Address extCmd : hex cmd : hex ascii Address (Umsb:Ulsb:Lmsb:Llsb) access. Description : This command sets the card memory Address pointer for byte wise reads and ...
Page 44
Copy Screen to Memory Card Syntax : extCmd, cmd width, height, SectorAddress extCmd : hex cmd : hex ascii x : Screen horizontal start position (top left corner Screen ...
Page 45
Display Image/Icon from Memory Card Syntax : extCmd, cmd width, height, colourMode, SectorAddress extCmd : hex cmd : hex ascii x : Screen horizontal start position (top left corner ...
Page 46
Display Object from Memory Syntax : extCmd, cmd, Address extCmd : hex cmd : hex ascii Address (Umsb:Ulsb:Lmsb:Llsb) previously stored Object that is about to be displayed. Description: Some of the commands can ...
Page 47
Run Program from Memory Card Syntax : extCmd, cmd, Address extCmd : hex cmd : hex ascii Address (Umsb:Ulsb:Lmsb:Llsb) command execution. Description : The Run command forces the 32bit internal memory pointer to ...
Page 48
Delay Syntax : cmd, value cmd : 07 hex value : A 2 byte delay value in milliseconds. Maximum value of (msb:lsb) 65,535 milliseconds or 65.5 seconds. Description : When objects from the memory card such as ...
Page 49
Set Counter Syntax : cmd, value cmd : 08 hex value : A 1 byte counter value that can be used with Decrement Counter and Jump to Address If Counter Not Zero commands to form loops. Practical values should ...
Page 50
Decrement Counter Syntax : cmd, value cmd : 08 hex Description : Decrements the counter. See detailed description on how this command can be used effectively in the Set Counter command section. (09 ) hex (memory card command only) ...
Page 51
Jump to Address If Counter Not Zero card command only) Syntax : cmd, Address cmd : 0A hex Address (Umsb:Ulsb:Lmsb:Llsb) counter is not zero. Description : If the internal counter is not zero the program pointer will jump to ...
Page 52
Jump to Address Syntax : cmd, Address cmd : 0B hex Address (Umsb:Ulsb:Lmsb:Llsb) Description : This command will force the internal 32 bit program memory pointer to jump unconditionally to the specified address and start executing commands from there. ...
Page 53
Exit Program from Memory Card Syntax : cmd cmd : 0C hex Description : This command forces the program to stop executing from the memory card and ready to accept and execute commands from the host via the serial ...
Page 54
Summary of Commands Executable from Memory Card Command (B) Set Background Colour (b) Place Text button (C) Draw Circle (E) Erase Screen (F) Font Size (G) Draw TrianGle (L) Draw Line (O) Opaque or Transparent Text (p) Set pen Size ...
Page 55
Serial Interface (TTL) The µOLED needs to be connected via a serial link to a host system. The host uses this serial link to send commands to the be displayed on the screen. Use the signal pin-outs as well ...
Page 56
USB Interface The µOLED can be interfaced using a standard USB cable and the 4D Systems microUSB module (uUSB-MB5) as shown below. The microUSB module (optional extra), simply connects to the data and converts it into ...
Page 57
Personality Module Micro Code (PmmC) One of the important features of the GOLDELOX-MD1 module that drives the uOLED-160-GMD1 is the ability to upload its onboard GOLDELOX processor with a micro-Code firmware which allows the module to take on a ...
Page 58
Specifications The µOLED has the following electrical specifications which must be adhered to at all times to prevent damage to the device. Symbol Characteristic Vdd Supply voltage I Current Deg C Operating temp Tpu Power-up delay Display Life Time ...
Page 59
Host Interface pin-outs Pin Function + +ve Power Supply input: 3.3 to 6.0 Volts D.C Tx Serial Transmit Data Pin 3.3Volt signal levels. Rx Serial Receive Data Pin 3.3Volt signal levels. - -ve Power Supply ...
Page 60
Mechanical Details The µOLED module footprint is 52mm x 32mm x 8.8mm. www.4dsystems.com.au 60 ...
Page 61
Circuit Diagram www.4dsystems.com.au 61 ...
Page 62
Colour Bitmap Organisation The µOLED 65K colour byte is organised as 5 bits for D15), 6 bits for Green(D5, D6, D7, D8, D9, D3, D4). This will give a combination of 32x64x32 = 65,536 colours. Each colour is ...
Page 63
Example: To Obtain the Colour Magenta D15 D14 D13 D12 D11 D10 Example: To Obtain the Colour White D15 D14 ...
Page 64
Colour Bitmap Organisation The µOLED 256 colour byte is organised as 3 bits for Green (D2, D3, D4) and 2 bits for 8x8x4 = 256 colours. Each colour is not limited to 4/8 shades. For example a lighter ...
Page 65
Power-Up Reset When the µOLED comes out of a power up reset it initialises the Graphics RAM and the internal Display registers. Allow up to 500ms before attempting to communicate with the µOLED. The power up sequence of events ...
Page 66
Appendix 4.1 Available Models: uOLED-160-GMD1 (with uSD memory card adaptor) Please check stock availability with your local supplier. www.4dsystems.com.au 66 ...
Page 67
... Software Utility Tools (free download) o Range of PC based software utility tools for Windows o Download images/text/animations into the uOLED-128-GMD1 micro-SD memory card. o For available software tools user guides please visit the page of your local distributor or visit the 4D Systems website www.4dsystems.com.au www.4dsystems.com.au µOLED interface µOLED web- 67 ...
Page 68
Auto Demo/Slide Show: The uOLED-160-GMD1 modules are equipped to accept memory cards. There pin jumper at the back of the unit (on the component side). Upon power-up, if the shunt is inserted and there are preloaded ...