4.1.1 I2C Communication Summary
The GLK12232-25-SM is capable of communicating at 100 KHz in
I2C mode, with 127 units address-
able on a single I2C communication line. However, in order to communicate via I2C you must ?rst 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 I2C. 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 I2C 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 Signi?cant 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 I2C master wishes to write to the display, the effective address is $50
(0101 0000) , since the LSB has to be 0 for an I2C master write. When the I2C master wishes to read the
GLK12232-25-SM, the effective address is $51 (0101 0001), since the LSB has to be 1 for an I2C 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 I2C 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 I2C 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
?lled, or the module is too busy processing
data it will respond with a NAK. When performing a multiple byte read within one I2C 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 I2C mode. Here are some
considerations when writing I2C 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 I2C 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 I2C Transaction Example
The typical I2C 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
相关PDF资料
GLK12232-25-USB-FGW-E LCD GRAPHIC DISPL 122X32
GLK240128-25-WB-V LCD GRAPHIC DISPL 240X128 BLU/WH
GLK24064-16-1U-TCI-VPT GRAPH DISP 240X64 TRICLR WD VLT
GLK24064-25-WB-V LCD GRAPHIC DISPL 240X64 BLU/WHT
GLT240128-FGW-VPT LCD TOUCH 128X240 WHT/GRY
GM2BB50BM0C LED WHITE 5000K 150MA 0.5W
GM5YJ01210A LED ORANGE CLEAR 6050 SMD
GU128X128D-3900B VACUUM FLUORESCENT DISPLAY
相关代理商/技术参数
GLK12232-25-USB-FGW 功能描述:LCD GRAPHIC DISPL 122X32 RoHS:是 类别:光电元件 >> 显示器模块 - LCD,OLED,图形 系列:- 标准包装:1 系列:* 其它名称:Q7143510
GLK12232-25-USB-FGW-E 功能描述:LCD GRAPHIC DISPL 122X32 RoHS:是 类别:光电元件 >> 显示器模块 - LCD,OLED,图形 系列:- 标准包装:1 系列:* 其它名称:Q7143510
GLK12232-25-USB-WB 功能描述:LCD GRAPHIC DISPL 122X32 RoHS:是 类别:光电元件 >> 显示器模块 - LCD,OLED,图形 系列:- 标准包装:1 系列:* 其它名称:Q7143510
GLK12232-25-USB-WB-E 功能描述:LCD GRAPHIC DISPL 122X32 RoHS:是 类别:光电元件 >> 显示器模块 - LCD,OLED,图形 系列:- 标准包装:1 系列:* 其它名称:Q7143510
GLK12232-25-WB 功能描述:LCD GRAPHIC DISPL 122X32 WHT/BLU RoHS:是 类别:光电元件 >> 显示器模块 - LCD,OLED,图形 系列:- 标准包装:1 系列:* 其它名称:Q7143510
GLK12232-25-WB-E 功能描述:LCD GRAPHIC DISPL 122X32 WHT BLU RoHS:是 类别:光电元件 >> 显示器模块 - LCD,OLED,图形 系列:- 标准包装:1 系列:* 其它名称:Q7143510
GLK12232-25-WBL 功能描述:LCD 图形显示模块和配件 Gray Background Blue Text RoHS:否 制造商:ELECTRONIC ASSEMBLY 产品: 分辨率:128 x 64 流体类型:FSTN Positive 接口: 背光: 背景色:White 工作温度范围:- 20 C to + 70 C 封装:Bulk
GLK12232-25-WBL-V 功能描述:LCD 图形显示模块和配件 Gray Background Blue Text RoHS:否 制造商:ELECTRONIC ASSEMBLY 产品: 分辨率:128 x 64 流体类型:FSTN Positive 接口: 背光: 背景色:White 工作温度范围:- 20 C to + 70 C 封装:Bulk