| 전자부품 데이터시트 검색엔진 |
|
AN3114 데이터시트(PDF) 35 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3114 데이터시트(HTML) 35 Page - STMicroelectronics |
|
35 / 43 page ![]() AN3114 Displaying alphanumeric characters on the LCD glass Doc ID 16829 Rev 3 35/43 To be able to make an efficient LCD software driver and optimize the LCD character coding in terms of code density, the matrix shown in Figure 23 has been chosen. Figure 23. HXO5002B segment driver matrix Each matrix M element corresponds to one bit on the LCD_RAM[13:0] registers. To enable SEG(i) connected to COM(j), the “M[i][j]” element must be set to 1 and to disable it the “M[i][j]” element must be set to 0. The following structure provided in the LCD firmware enables to translate alphanumeric characters from ASCII into LCD_RAM[21:0]: bit[17:0] = Nibble[5:0] = {LCD_RAM[13:10], LCD_RAM[10:7], LCD_RAM[6:3], LCD_RAM[3:0],LCD_RAM[10:7], LCD_RAM[13:10]}; bit[17:0] are the 18 matrix terms arranged so that each nibble is related to LCD_RAM register and to COMi in the selected page. The relation between the nibbles and the LCD_RAM registers is conditioned by the LCD digit being accessed. Refer to Table 6 for the correspondence between LCD_RAM register bits (nibble) and LCD character. Displaying a character “A” on the custom LCD glass HXO5002B The LCD segments A, B, C, E, F, M and N must be activated to display the “A” letter (see Figure 24). These segments must then be transferred from the LCD_RAM registers to the LCD glass. Use the matrix described in Figure 23 to know which bits of the LCD_RAM registers must be set. The firmware structure provides the value 0x002536 for Nibble[5:0] corresponding to: ● Nibble[0] = 0x0 = 000b ● Nibble[1] = 0x0 = 000b ● Nibble[2] = 0x2 = 010b ● Nibble[3] = 0x5 = 101b ● Nibble[4] = 0x3 = 011b ● Nibble[5] = 0x6 = 110b |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |