| Electronic Components Datasheet Search |
|
PCA2117DUGS/DA Datasheet(PDF) 57 Page - NXP Semiconductors |
|
|
|||||||||||||||||||||||||||||
PCA2117DUGS/DA Datasheet(HTML) 57 Page - NXP Semiconductors |
|
57 / 107 page ![]() PCA2117 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2015. All rights reserved. Product data sheet Rev. 4 — 8 April 2015 57 of 107 NXP Semiconductors PCA2117 Automotive LCD driver for character displays 8.5.4.1 CGRAM addressing For addressing, the CGRAM the following steps have to be taken (see Figure 31): • Select the column of the CGRAM (SMB[2:0]) with the Sel_mem_bank command (see Section 8.1.1.9) • Set the requested address counter (ADD[6:0]) with the Set_mem_addr command (see Section 8.1.1.10) • Write data to the CGRAM with the Write_data command (WD[4:0]) (see Section 8.1.1.12) • Read the data from the CGRAM with the Read_data command (RD[4:0]) (see Section 8.1.1.11) 8.5.4.2 User-defined characters and symbols User-defined characters can 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 can be coded - in this case the euro currency sign. The display used is a 2 lines by 20 characters display and the interface is the I2C-bus: // Write a user-defined character into the CGRAM startI2C(); // PCA2117 slave address for write, SA0 is connected to VDD SendI2CAddress(0x76); // MSB (Continuation bit CO) = 0, no more control bytes will follow, RS[1:0]= 10 // next byte is command byte on register page "10" i2c_write(0x40); // 2 lines x 20 chars, 1/18 duty. Next byte will be another command. i2c_write(0x32); // Repeated Start condition startI2C(); SendI2CAddress(0x76); // MSB (Continuation bit CO) = 0, no more control bytes will follow, RS[1:0]= 00 // next bytes are command bytes on register page "00" i2c_write(0x00); // Select Memory Bank 1: Column 0 of CGRAM Fig 37. User-defined euro currency sign |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |