comparison src/tft.asm @ 363:9a1c275077b0

cleanup
author heinrichsweikamp
date Tue, 04 Aug 2015 16:37:19 +0200
parents 631cbfea3757
children 0052a7a654b9
comparison
equal deleted inserted replaced
362:7532d4e42f62 363:9a1c275077b0
334 bcf screen_type 334 bcf screen_type
335 bra TFT_boot_com 335 bra TFT_boot_com
336 336
337 TFT_boot_1: 337 TFT_boot_1:
338 ; Init through config table... 338 ; Init through config table...
339 movlw LOW display1_config_table 339 movlw 0x74
340 movwf TBLPTRL 340 movwf TBLPTRL
341 movlw HIGH display1_config_table 341 movlw 0xF7
342 movwf TBLPTRH 342 movwf TBLPTRH
343 movlw UPPER display1_config_table 343 movlw 0x01
344 movwf TBLPTRU 344 movwf TBLPTRU
345 bsf screen_type 345 bsf screen_type
346 346
347 TFT_boot_com: 347 TFT_boot_com:
348 rcall display0_init_loop 348 rcall display0_init_loop
369 Index_out 0x22 369 Index_out 0x22
370 rcall TFT_ClearScreen 370 rcall TFT_ClearScreen
371 Index_out 0x07 371 Index_out 0x07
372 Parameter_out 0x01, 0x33 372 Parameter_out 0x01, 0x33
373 return 373 return
374
375 display1_config_table:
376 ; Reg, Dat0, Dat1 or 0xFF,0x00,0x00 for end
377 db 0xE5,0x78,0xF0,0x01,0x01,0x33
378 db 0x02,0x02,0x00,0x03,0x10,0x00
379 db 0x04,0x00,0x00,0x08,0x02,0x07
380 db 0x09,0x00,0x00,0x0A,0x00,0x00
381 db 0x0C,0x00,0x00,0x0D,0x00,0x00
382 db 0x0F,0x00,0x00,0x10,0x00,0x00
383 db 0x11,0x00,0x07,0x12,0x00,0x00
384 db 0x13,0x00,0x00,0x07,0x00,0x01
385 db 0xE5,0x78,0xF0,0xFF,.050,0x00
386 db 0x10,0x10,0x90,0x11,0x02,0x27
387 db 0xFF,.050,0xFF,0x12,0x00,0x1F
388 db 0xFF,.050,0xFF,0x13,0x15,0x00
389 db 0x29,0x00,0x27,0x27,0x00,0x2B
390 db 0x2B,0x00,0x0D,0xFF,.050,0xFF
391 db 0x20,0x00,0x00,0x21,0x00,0x00
392 db 0x30,0x06,0x02,0x31,0x56,0x0D
393 db 0x32,0x05,0x07,0x33,0x06,0x09
394 db 0x34,0x00,0x00,0x35,0x09,0x06
395 db 0x36,0x57,0x05,0x37,0x0D,0x06
396 db 0x38,0x02,0x06,0x39,0x00,0x00
397 db 0x22,0x00,0x00,0xFF,0x00,0x00
398 374
399 display0_config_table: 375 display0_config_table:
400 ; Reg, Dat0, Dat1 or 0xFF,0x00,0x00 for end 376 ; Reg, Dat0, Dat1 or 0xFF,0x00,0x00 for end
401 db 0xA4,0x00,0x01,0xFF,.002,0x00 377 db 0xA4,0x00,0x01,0xFF,.002,0x00
402 db 0x09,0x00,0x01,0x92,0x04,0x00 378 db 0x09,0x00,0x01,0x92,0x04,0x00