
NXP Semiconductors
UM10744
OM13500 & OM13500A user manual
UM10744
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2013. All rights reserved.
User manual
Rev. 1 — 23.September 2013
10 of 14
4. Software code example
Section 8 of the PCA9620 data sheet contains all the commands and their description. In
order to be able to write software for this driver, it will be necessary to read the
datasheet.
Below, an example for the configuration of the PCA9620 for use with the LCD on this
board is listed. Exact details of how to write the functions are left to the programmer. This
example shows the data to be sent to the PCA9620 to configure it for the module on this
board.
These settings will also work for PCA8537.
I2CWrite[0] = PCA9620_ADDR;
I2CWrite[1] = 0b10000000;
// control byte
I2CWrite[2] = 0xCC;
// Internal oscillator, no CLKOUT
I2CWrite[3] = 0b10000000;
// control byte
I2CWrite[4] = 0xC3;
// Charge pump enabled, Vlcd = 3*Vdd
I2CWrite[5] = 0b10000000;
// control byte
I2CWrite[6] = 0xCB;
// Temp. compensation and meas, enabled
I2CWrite[7] = 0b10000000;
// control byte
I2CWrite[8] = 0x47;
// set VLCD, MSB=0111
I2CWrite[9] = 0b10000000;
// control byte
I2CWrite[10] = 0x5A;
// set VLCD, LSB=1010. VLCD = 6.66 V
I2CWrite[11] = 0b10000000;
// control byte
I2CWrite[12] = 0x00;
// Set MUX mode to 1:8
I2CWrite[13] = 0b10000000;
// control byte
I2CWrite[14] = 0xC5;
// Set 1/4 bias
I2CWrite[15] = 0b10000000;
// control byte
I2CWrite[16] = 0xD4;
// Driving scheme A, charge pump 1 MHz
I2CWrite[17] = 0b10000000;
// control byte
I2CWrite[18] = 0x72;
// Set frame-frequency = 240 Hz
I2CWrite[19] = 0b10000000;
// control byte
I2CWrite[20] = 0x39;
// Display enable
I2CWrite[21] = 0b10000000;
// control byte
I2CWrite[22] = 0x80;
// Set Data pointer = 0
I2CWrite[23] = 0b00100000;
// Write to DDRAM