AIS CUBE 2.83 AMOLED DISPLAY Datasheet & Application Note Preliminary Release
TECHNICAL OVERVIEW Diagonal Size 2.83 Driving Mode Active Matrix Colour Mode 16bit RGB 5/6/5262K Colours Interface Mode 16bit RGB Interface (One Transfer per Pixel) Driver IC S6E63D6 Resolution 320 x RGB x 240 Pixel Pitch 0.06 x 0.18 mm Active Area 43.2 x 57.6 mm Outline Area 49.1 x 67.3 mm Thickness 1.75mm (Typical) Weight 16g Touch Screen 4-wire Resistive
oled pin assignment Pin Name Description 1 AR_VDD Positive Voltage for OLED (+4.6V) 2 AR_VSS Negative Voltage for OLED (-4.6V) 3 VCI Power Supply for Analogue Circuit (2.5V-3.3V) 4 VCI1 A reference voltage for 1st booster(connect a 1uF/10v capacitance to Gnd) 5 GND Ground 6 C12M External capacitance connect pin between C12M and C12P (1uF/10V) 7 C12P 8 C11M External capacitance connect pin between C11M and C11P 9 C11P 10 VLOUT1 1st booster output pin. (1uF/10V) 11 C31P External capacitance connect pin between C31M and C31P (1uF/10V) 12 C31M 13 C32P External capacitance connect pin between C32M and C32P (1uF/10V) 14 C32M 15 VLOUT3 3rd booster output pin. (1uF/16V) 16 VLOUT2 2nd booster output pin. (1uF/16V) 17 C21P External capacitance connect pin between C21M and C21P. (1uF/10V) 18 C21M 19 VGS A reference level for the grayscale voltage generation circuit. (Connect to Gnd) 20 IOVCC I/O power supply Select the CPU interface mode. 21 SPB (0=parallel interface 1=serial interface) Select the CPU type 22 ID_MIB (0=Intel 80x-system 1=Motorola 68x-system) 23 DB17 24 DB16 25 DB15 26 DB14 27 DB13 28 DB12 29 DB11 30 DB10 Bi-Directional Data bus. 31 DB9 BlazingCore Usage: 16bit CPU Interface 32 DB8 Connection Pins: DB17 - DB10, DB8 - DB1 33 DB7 34 DB6 35 DB5 36 DB4 37 DB3 38 DB2 39 DB1 40 DB0
oled pin assignment 41 VSYNC 42 HSYNC 43 DOTCLK 44 ENABLE 45 SDI 46 SDO 47 48 49 RS CSB (CS/NCS) RW_WRB (SCL) 50 E_RDB Frame-synchronizing signal. (VSPL=0 Low active, VSPL=1 High active) FIX this pin at VSS level if the pin is not used Line-synchronizing signal. (HSPL=0 Low active, HSPL=1 High active) FIX this pin at VSS level if the pin is not used Input pin for clock signal of external interface: dot clock. DPL=0 Display data is fetched at DOTCLK s rising edge DPL=1 Display data is fetched at DOTCLK s falling edge Fix this pin at VSS level if the pin is not used. Data enable signal pin for RGB interface. EPL ENABLE GRAM write GRAM address 0 0 Valid Updated 0 1 Invalid Held 1 0 Invalid Held 1 1 Valid Updated For a serial peripheral interface (SPI), input data is fetched at the rising edge of the SCL signal, Fix SDI pin at VSS level if the pin is not used. For a serial peripheral interface (SPI), serves as the serial data output pin (SDO), Successive bits are output at the falling edge of the SCL signal. Chip select signal input pin. 0= driver IC is selected and can be accessed. 1= driver IC is not selected and cannot be accessed. Pin Function CPU Type Pin Description RW 68-System Read/Write operation selection pin 0=write 1=read WRB 80-System Write strobe signal (Input pin) Data is fetched at the rising edge. SCL SPI The synchronous clock signal Register select pin. 0=Index/status, 1=instruction parameter, GRAM data Must be fixed at VDD3 level when not used. Pin Function CPU Type Pin Description E 68-System Read/Write operation enable pin RDB 80-system Read strobe signal. Read out data at the low level When SPI mode is selected, fix this pin at VDD3 level 51 RESETB Reset pin initializes the IC when low. Should be reset after power-on. 52 MVDD Internal power for RAM. Connect a capacitance (1u/10v) to Gnd. 53 VREG1OUT A reference level for the grayscale voltage. Connect a capacitance (1u/10v) to Gnd. 54 VCI Power supply for analogue circuit(2.5v~3.3v) 55 VGH The positive voltage used in the gate driver. Connect a capacitance(1u/10v) to Gnd. 56 VGL The negative voltage used in the gate driver. Connect a capacitance(1u/10v) to Gnd. 57 GND Ground 58 X- (Touch Screen) 59 Y- (Touch Screen) 60 X+ (Touch Screen) 61 Y+ (Touch Screen)
Electrical characteristics Dc characteristics
Electrical characteristics Dc characteristics (Cont d)
Absolute maximum ratings Environmental absolute ratings Item Symbol Temperature Min. Max. Storage Temperature TST -40 +80 ºC Operating Ambient Temperature Unit TOP -20 +60 ºC Remarks The storage duration for both critical temperatures (-40& 80 ºC) meet reliability test criteria. The operating duration for both critical temperatures (-20& 60 ºC) meet reliability test criteria. electrical absolute ratings Item Symbol Value Unit Power Supply Voltage 1 AR_Vdd +4.6V ± 0.05 V Power Supply Voltage 2 AR_Vss -4.4V ± 0.1 V Power Supply Voltage 3 VCI +2.5 ~ +3.3 V Power Supply Voltage 4 VDD3 (IOVcc) +1.65 ~ +3.3 V Note: Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only and functional operation of the device at those or any other conditions above those indicated in the operation listings of this specification is not implied. Exposure to maximum rating conditions for extended periods may affect device reliability.
Technical drawing
oled ORIENTATION Horizontal (Default) Vertical
pinout Y+ X+ Y- X- SDIN SDOUT CSB SPB +3.3V GND DB17 DB16 DB15 DB14 DB13 DB12 DB11 DB10 DB1 DB2 DB3 DB4 DB5 DB6 DB7 DB8 N.C N.C N.C CSB RW_WRB RS E-RDB RESETB +3.3v GND N.C GND V+ Board layout oled interface board Front Back 16BIT Parallel BUS LINE
schematics
Oled to board assembly
Interfacing to bcore64 The BCore Series boards are designed to be entirely stackable. You will find that interfacing the OLED board with the BCore64 or the BCore Audio Board is just a matter stacking the two boards with the use of standard header pins, which at the same time serves as I/O Bus and Data Connection. Pins should match up as above. Recommended stacking method as shown above, with the BCore64 & OLED Display both facing outwards.
Interfacing to bcore AUDIO The BCore Series boards are designed to be entirely stackable. You will find that interfacing the OLED board with the BCore64 or the BCore Audio Board is just a matter stacking the two boards with the use of standard header pins, which at the same time serves as I/O Bus and Data Connection. Pins should match up as above. Recommended stacking method as shown above, with the BCore Audio & OLED Display both facing outwards.
Board stack pin comparison The following table serves as a comparison of pins used when connecting the OLED Interface Board with the BCore Boards. Pins PIC32MX340F256H BCore64 BCore Audio OLED Interface 1 RE0 GIO GIO - 2 RE1 GIO GIO - 3 RE2 GIO GIO - 4 RE3 GIO GIO - 5 RE4 GIO GIO - 6 RE5 GIO GIO - 7 RE6 GIO GIO - 8 RE7 GIO GIO - 9 RB7 GIO ADC GIO ADC DB8 10 RB6 GIO ADC GIO ADC DB7 11 RB5 GIO ADC GIO ADC DB6 12 RB4 GIO ADC GIO ADC DB5 13 RB3 GIO ADC GIO ADC DB4 14 RB2 GIO ADC GIO ADC DB3 15 RB1 GIO ADC GIO ADC DB2 16 RB0 GIO ADC GIO ADC DB1 17 RB8 GIO ADC GIO ADC DB10 18 RB9 GIO ADC GIO ADC DB11 19 RB10 GIO ADC GIO ADC DB12 20 RB11 GIO ADC GIO ADC DB13 21 RB12 GIO ADC GIO ADC DB14 22 RB13 GIO ADC GIO ADC DB15 23 RB14 GIO ADC GIO ADC DB16 24 RB15 GIO ADC GIO ADC AUD IN DB17 25 RD7 GIO GIO RESET_B 26 RD6 GIO GIO E_RDB 27 RD5 GIO GIO RS 28 RD4 GIO PWM GIO PWM RW_WRB 29 RD3 GIO PWM GIO PWM CSB 30 RD2 GIO PWM GIO PWM GIO 31 RD1 GIO PWM GIO PWM GIO 32 RD0 GIO PWM GIO PWM GIO 33 RG2 GIO SCL1 (I2C1) - - 34 RG3 GIO SDA1(I2C1) UART1 UART2 +Y 35 RG6 GIO SCK2(SPI2) EEPROM EEPROM +X 36 RC14 GIO - -Y 37 RC13 GIO - -X 38 RD11 GIO - SDIN 39 RD10 GIO AUDIO SDOUT 40 RD9 GIO AUDIO CSB 41 RD8 GIO AUDIO SPB 16Bit Data Bus Line
Programming the oled Programming the OLED is done through BCoreIDE, where the library for this OLED is available. The following pages list the members in the library available to interface with the OLED Display. Ready methods like printing text to screen, drawing primitives or even placing bitmaps to the screen are available for immediate usage. Examples of use are also included. Note: These instruction notes are also available in the BlazingCore Reference Guide PDF, along with the use of VB.NET OLED Part of the BCoreIDE library consists of optimized methods to control the OLED natively to ensure efficiency and speed of data transfer to the OLED Driver. Method Init() SetColour Print Draw Description Initialises the OLED with a specified colour Set foreground and background colours Print text to OLED Draws Primitives and Bitmaps to Screen *refer to subtopic for details. Init() Does the necessary one-time initialising required for the OLED to be controlled thereafter. Parameter accepts colour for the OLED screen to be initialised with. *Note: Colour accepted as 16bit 5/6/5 RGB Component Value. OLED.Init(colour) Setcolour Set background and foreground colours of the OLED. Member Description Background Set Background Colour Foreground Set Foreground Colour OLED.SetColour.Background(colour) OLED.SetColour.Foreground(colour) print Prints text to screen using specified foreground colour. Works just like Debug.Print. *Note: Default text size is 8x8pixels. OLED.Print [string] String Variable String Const DRAW Uses inbuilt native libraries in BCore to draw primitives and bitmaps on to the screen. All primitives are drawn using the specified foreground colour. Member Description Point Plots a pixel at a specified point on the OLED Screen Points Plots an array of points. Line Draws a Line. Lines Draws an array of Lines. Rectangle Draws a Rectangle of specified sizing at a specified position. Circle Draws a Circle of specified sizing at a specified position. FillRectangle Draws a Filled Rectangle of specified sizing at a specified position. Bitmap Draws a bitmap at a specified position. EEBitmap Draws a bitmap direct from EEProm to the Screen.
Os command Reference OLED Primitives POINT Plots a single pixel at a specified point on the OLED Screen. OLED.Draw.Point(point) POINTs Plots an array of pixels. Parameters: Points() = point array; Zero-offset start = zero-offset start index of point array to start plotting from; Number of points = number of points to plot. Points(0) <x0, y0> Point1 <x1, y1> Points(1) <x1, y1> Points(2) <x2, y2> Points(3) <x3, y3> OLED.Draw.Points(points(),zero-offset start, number of points) LINE Draws a Line from point1 to point2 on the OLED Screen. Point2 <x2, y2> OLED.Draw.Line(point1, point2) Point1 <x1, y1> LINEs Draws an array of points as a continuous connected line. Parameters: Points() = point array; Zero-offset start = zero-offset start index of point array to start plotting from; Number of points = number of points to plot. OLED.Draw.Lines(points(),zero-offset start, number of points) Points(0) <x0, y0> Points(1) <x1, y1> Points(2) <x2, y2> Points(3) <x3, y3> Rectangle Draws a Rectangle using 2 points. Point1 <x1, y1> x OLED.Draw.Rectangle(point1, point2) x Point2 <x2, y2> circle Draws a circle. Parameters accept center point position and radius of circle. OLED.Draw.Circle(center-point, radius) Center-point <x,y> R fillrectangle Point1 <x1, y1> Draws a solid/filled rectangle of foreground colour from point1 to point2 on the OLED Screen. x OLED.Draw.FillRectangle(point1, point2) x Point2 <x2, y2>
Os command Reference OLED Bitmaps GRAM bitmap Draws a bitmap on the OLED screen from a.bmp file. Note: ¹Bitmaps must be in Windows Bitmap.bmp format. ²Bitmaps of bit depth 16bit 565 Mode, 24bpp, 32bpp are supported. ³For applications that require the OLED to update images really quickly, we recommend that the bitmaps are first converted to the 16bit 565 RGB Format before importing it into the storage media for the BCore to access, since 24bpp and 32bpp files are converted by the chip to the 16bit 565 format before sending to the OLED Display, thereby imposing a limitation to the update rate from the BCore to the OLED Display. OLED.Draw.BitmapFromEE(point,Address) Parameters: Point: Point XY location to draw bitmap Address: EEProm Address where the bitmap is stored Code: 01. Dim P1 As Point 02. Public Sub Main() 03. Dim I1 As Integer 04. DEBUG.PRINT "OLED - BITMAP" 05. DELAY(200) 06. OLED.INIT(0) 07. OLED.SETCOLOUR.FOREGROUND(31) 08. I1 = ADDRESSOF(DATA1.B_PLAYER) 09. P1.X = 50 10. P1.Y = 20 11. OLED.DRAW.BITMAPFROMEE(P1, I1) 12. End Sub Note: Please refer to APPENDIX A for more details on transferring Bitmap Files from the PC to the BCore s External EEPROM. GRAM Read access to the OLED GRAM is provided to the user. Read the colour data direct from GRAM, by providing the position to read. Returns the colour in 16bit 565 RGB Integer format. OLED.GRAM.ReadPoint(point) OLED.GRAM.ReadPoints(points())
APPENDIX A Transferring Bitmap Files Transferring Bitmap Files from PC to BCore Store the Bitmap Files in your BCore Project s Resource Folder, and import it using the Resource Page in BCoreIDE. Files may be imported and downloaded into an external EEPROM, FLASH or SD/MMC Card. External EEPROM 1. To store Bitmap files in the External EEPROM, make sure the Bitmap files you want loaded into the EEPROM is stored in: Your Project Folder > Resource > EEPROM Note: You may have to create these folders yourself if they do not exist. Example view using windows explorer. 2. Next, Select the data file (DATA1) under EEPROM Resources of your project, and declare an array of type data. DATA mydata(arraysize) FromFile FileName Code: 01. DATA1 02. DATA B_PLAYER(570) FROMFILE "P_PLAYER.bmp" 03. DATA BLUEB16(455) FROMFILE "Blue16.bmp" The array size should correspond to the size of your bitmap file in bytes (You can find out the size by placing your mouse over the particular bmp). (Refer to example as shown in figure above) 3. Compile and download the data file (DATA1) into the External EEPROM. Note: The data file downloads directly to the external EEPROM, separate from downloading the actual program. Downloading your program does NOT download the data from the data file to the external EEPROM at the same time.
Notes Latest documentation All our documentations are constantly updating to provide accurate and/or new information that we feel would help you with developing with our products. The latest documentation may be obtained from our website: www.aiscube.com How you can help You can help us to improve our documentations by emailing to us or posting a thread in our forum, reporting any mistakes/typos or errata that you might spot while reading our documentation. We d get it clarified the next time we update our documentation. Email: TechSupport@aiscube.com Forum: http://forum.aiscube.com/index.php 2009 AIS Cube. All rights reserved. The BlazingCore(BCore) and BCore IDE are either registered trademarks or trademarks of AIS Cube in Singapore and/or other countries. All images depicting the Blazingcore or any part of it is copyrighted. Microsoft, Windows, Visual Basic and Visual C# are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Adobe and Acrobat are trademarks of Adobe Systems Incorporated.