| Electronic Components Datasheet Search |
|
PS081 Datasheet(PDF) 150 Page - ams AG |
|
|
|||||||||||||||||||||||||||||
PS081 Datasheet(HTML) 150 Page - ams AG |
|
150 / 155 page ![]() acam-messelectronic gmbh - Friedrich-List-Str.4 - D-76297 Stutensee-Blankenloch - Germany - www.acam.de 8-5 PSØ81 8.3 Code snippet for external LCD driver In chapter 4 the support of an external LCD driver is explained. The following code snippet shows basically how to program the SPI access to the external LCD driver. A simple measurement example will be available in the assembler software soon. Configuration: equal 0x480540 ; Config Register 64 ß equal 0xE00700 ; Config Register 65 ß equal 0x000000 ; Config Register 66 ß Constant declarations: CONST spi_chip_select 9 CONST spi_data_out 10 CONST spi_clock 8 CONST lcd_reg_low_read 98 CONST lcd_reg_mid_read 99 CONST spi_bus 65 Initialization of Holtek HT1621 (realized as subroutine): init_holtek: ;set initial state ramadr 65 or r, 0x000700 ;set pins lcd_spi_out to 1 ;set duty cycle and number of common segments (Holtek) move y, 0x0004A1 jsub send_command ;LSB of y is MSB to Holtek!!! ;turn on display (Holtek) move y, 0x000601 jsub send_command ;turn on bias generator (Holtek) move y, 0x000401 jsub send_command ;select crystal oscillator (Holtek) move y, 0x000141 jsub send_command jsubret Member of the ams Group |
|
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 |