background image

4.1.1

I

2

C Communication Summary

The GLK12232-25-SM is capable of communicating at 100 KHz in I

2

C mode, with 127 units address-

able on a single I

2

C communication line. However, in order to communicate via I

2

C you must first ensure

that pull up resistors, with a nominal value of 1K to 10K, are placed on the SCL and SDA communication
lines coming from pins two and three of the Data / Power Connector respectively. Data responses by the
module are automatically output via RS232, in case the host will be querying the module, it is necessary
for the host to inform the module that its responses are to be output via I

2

C. This can be done by sending

command 254 /160 / 0 to turn off auto transmission of data in RS232. This will keep the data in the buffer
until the master clocks a read of the slave. The I

2

C data lines operate at 5V normally or 3.3V for -1U style

units. The GLK12232-25-SM uses 8-bit addressing, with the 8th or Least Significant Bit (LSB) bit desig-
nated as the read/write bit, a 0 designates a write address and a 1 designates a read address. The default
read address of the display module will be 0x51, whereas the write address is 0x50 by default. This address
may be changed by using cmd 254 / 51 / <address>. The GLK12232-25-SM should only be sent addresses
that are even (LSB is 0). When the I

2

C master wishes to write to the display, the effective address is $50

(0101 0000) , since the LSB has to be 0 for an I

2

C master write. When the I

2

C master wishes to read the

GLK12232-25-SM, the effective address is $51 (0101 0001), since the LSB has to be 1 for an I

2

C master

read.

If we take a standard Phillips 7 bit address of $45 (100 0101), Matrix Orbital’s GLK12232-25-SM would

describe this Phillips I

2

C address as $8A (1000 1010). The read address would be $8B (1000 1011).

The unit does not respond to general call address ($00).
When communicating in I

2

C the GLK12232-25-SM will send an ACK on the 9th clock cycle when

addressed. When writing to the display module, the display will respond with a ACK when the write has
successfully been completed. However if the buffer has been filled, or the module is too busy processing
data it will respond with a NAK. When performing a multiple byte read within one I

2

C transaction, each

byte read from the slave should be followed by an ACK to indicate that the master still needs data, and a
NAK to indicate that the transmission is over.

The GLK12232-25-SM has some speed limitations, especially when run in I

2

C mode. Here are some

considerations when writing I

2

C code:

* to be able to read the replies of query commands (eg. cmds 54, 55) the following command must be

sent (only needs to be sent once, so this can be done somewhere in init): 254 / 160 / 0 this command puts
the reply data in the I

2

C output buffer instead of the RS232 output buffer. Please note that due to a 16 byte

output buffer, query commands that reply with more than 16 bytes cannot be read (eg cmd Get FileSystem
Directory)

* 3ms delay between the read commands
* 625us delay in between data bytes within a transaction is necessary
* 375us between transactions is necessary

NOTE

These delays are consrevative, and may be decreased based on performance

4.1.2

I

2

C Transaction Example

The typical I

2

C transaction contains four parts: the start sequence, addressing, information, and stop

sequence. To begin a transaction the data line, SDA, must toggle from high to low while the clock line, SCL,

Matrix Orbital

GLK12232-25-SM

14

Summary of Contents for GLK12232-25-SM

Page 1: ...ss mainly focus on the distribution of electronic components Line cards we deal with include Microchip ALPS ROHM Xilinx Pulse ON Everlight and Freescale Main products comprise IC Modules Potentiometer...

Page 2: ...GLK12232 25 SM Technical Manual Revision 2 1...

Page 3: ...nicating 12 3 3 The display module is communicating however text cannot be displayed 13 3 4 There is a problem uploading fonts or bitmaps 13 4 Communications 13 4 1 Introduction 13 4 1 1 I2C Communica...

Page 4: ...ne 29 8 6 Draw a Rectangle 30 8 7 Drawing a Solid Rectangle 30 8 8 Initializing a Bar Graph 31 8 9 Drawing a Bar Graph 31 8 10 Initializing a Strip Chart 32 8 11 Shifting a Strip Chart 33 9 General Pu...

Page 5: ...6 Filesystem Upload 48 12 7 Downloading a File 48 12 8 Moving a File 49 13 Data Security 49 13 1 Introduction 49 13 2 Set Remember 50 13 3 Data Lock 50 13 4 Set and Save Data Lock 52 13 5 Dump the Fi...

Page 6: ...16 1 Specifications 61 16 1 1 Environmental 61 16 1 2 Electrical 62 16 2 Optical Characteristics 62 16 3 Physical Layout 62 16 4 Ordering Information 64 16 5 Definitions 64 16 6 Contacting Matrix Orbi...

Page 7: ...r enhanced by an intuitive command structure to allow display settings such as backlight brightness contrast and baud rate to be software controlled Additionally text and fonts may be uploaded to the...

Page 8: ...nd running You will find these accessories and others on our e commerce website at http www matrixorbital com To contact a sales associate see Section 16 6 for contact information Figure 3 5V Power Ca...

Page 9: ...y Selectable communication protocol Serial at RS 232 or TTL Levels or I2C Two 5V 20mA General Purpose Outputs 16 KB memory for fonts and bitmaps Lightning fast communication speeds up to 115 kbps for...

Page 10: ...onnect the power connector end of the Communication and 5V Power cable into the PC power supply you will have to open your computer case if you do not have a separate power supply 3 Connect the power...

Page 11: ...u Click on the Mogd Sharp entry to run the program Be sure to check the information selected in the configuration panel the first time MOGD is run Once this information is entered correctly the progra...

Page 12: ...ter Figure 10 GLK12232 25 SM Table 1 Hardware information 1 Power Data Connector 5 Protocol Select Jumpers 2 Floppy Power Connector 6 Filesystem Lock Jumper 3 Keypad Interface Connector 7 Manual Overr...

Page 13: ...SM standard or wide voltage options the users have two options for connections power and data connections using the Power Data Connector of the GLK12232 25 SM supply Vcc with the proper voltage power...

Page 14: ...y module between RS 232 TTL and I2 C protocols As a default the jumpers are set to RS 232 mode with zero ohm resistors on the 232 jumpers In order to place the display module in I2C mode you must firs...

Page 15: ...ow the key presses to remain in the buffer so that they may be polled The character that is associated with each key press may also be altered using the Assign Key Codes command for more detailed info...

Page 16: ...be generated 2 5 Manual Override The Manual Override is provided to allow the GLK12232 25 SM to be temporarily reset to some of the factory defaults This can be particularly helpful if the display mod...

Page 17: ...aved 2 6 Filesystem Lock Jumper The Filesystem Lock Jumper allows you to lock the filesystem on the GLK12232 25 SM so that no fonts or bitmaps can be either written or deleted from the on board memory...

Page 18: ...upply The last step will be to check the Power Data Connector on the GLK12232 25 SM If the Power Data Connector has become loose or you are unable to resolve the issue please contact Matrix Orbital se...

Page 19: ...tting that will work in most environments is 128 NOTE Optimal contrast settings may vary according to factors such as temperature view ing angle and lighting conditions 3 4 There is a problem uploadin...

Page 20: ...7 bit address of 45 100 0101 Matrix Orbital s GLK12232 25 SM would describe this Phillips I2C address as 8A 1000 1010 The read address would be 8B 1000 1011 The unit does not respond to general call a...

Page 21: ...low to high 4 1 3 Serial Communication In addition to being able to communicate via I2C the GLK12232 25 SM communicates natively through the RS 232 protocol at at a default baud rate of 19 200 bps and...

Page 22: ...ection of the value for the buffer full should be considered very carefully This is a critical aspect to be able to use this feature to it s full potential When using a host system or PC which contain...

Page 23: ...ess must be an even number and the read address is automatically set to one higher For example if the I2C write address is set to 0x50 then the read address is 0x51 NOTE The change in address is immed...

Page 24: ...OTE This command is not available in I2C mode Remembered Always Default 19 200 bps 4 6 Setting a Non Standard Baud Rate Syntax Hexadecimal 0xFE 0xA4 speed Decimal 254 164 speed Parameters Parameter Le...

Page 25: ...he speed result backwards into the formula to receive the actual baud rate Baud CrystalSpeed 8 speed 1 The actual baud rate must be within 3 of the intended baud rate for the device to communicate NOT...

Page 26: ...n bitmap form Figure 17 below illus trates the bit pattern for the h i and j bitmap data Figure 17 Bitmaps for h i and j Second you may begin to create the font file starting with the header The heade...

Reviews: