PCF2119AU NXP [NXP Semiconductors], PCF2119AU Datasheet - Page 69

no-image

PCF2119AU

Manufacturer Part Number
PCF2119AU
Description
LCD controllers/drivers Single-chip LCD controller and driver
Manufacturer
NXP [NXP Semiconductors]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PCF2119AU/2DA/2
Manufacturer:
NXP
Quantity:
40 000
NXP Semiconductors
PCF2119X
Product data sheet
16.14 User defined characters and symbols
Up to 16 user defined characters may be stored in the CGRAM. The content of the
CGRAM is lost during power-down, therefore the CGRAM has to be rewritten after every
power-on.
Below some source code is printed, which shows how a user defined character is defined
- in this case the euro currency sign. The display used is a 2 lines by 16 characters display
and the interface is the I
// Write a user defined character into the CGRAM
startI2C();
// PCF2119 slave address for write, SA0 is connected to Vdd
SendI2CAddress(0x70);
// MSB (Continuation bit Co) = 0, more than one byte may follow. Bit6, RS=0, next byte
// is command byte
i2c_write(0x00);
// 2 lines x 16, 1/18 duty, basic instruction set. Next byte will be another command.
i2c_write(0x24);
// Set CGRAM address to 0
i2c_write(0x40);
// Repeated Start condition
startI2C();
SendI2CAddress(0x70);
// RS=1, next byte is a data byte
i2c_write(0x40);
// Here the data bytes to define the character
// Behind the write commands the 5x8 dot matrix is shown, the 1 represents a on pixel.
// The Euro currency character can be recognized by the 0/1 pattern (see
i2c_write(0x06); // 00110
i2c_write(0x09); // 01001
i2c_write(0x08); // 01000
i2c_write(0x1E); // 11110
i2c_write(0x1E); // 11110
i2c_write(0x08); // 01000
i2c_write(0x09); // 01001
Fig 49. User defined euro currency sign
All information provided in this document is subject to legal disclaimers.
Rev. 7 — 15 November 2010
2
C-bus:
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
1
0
0
1
1
0
0
1
013aaa144
1
0
0
1
1
0
0
1
0
1
0
0
0
0
1
0
LCD controllers/drivers
PCF2119x
© NXP B.V. 2010. All rights reserved.
Figure
69 of 83
49)

Related parts for PCF2119AU