comparison code_part1/OSTC_code_asm_part1/oled_samsung.asm @ 81:31fa973a70fd

Kludges to emulate inexisting devices when debugged with the MPLAB software SIMulator.
author JeanDo
date Mon, 06 Dec 2010 18:05:39 +0100
parents 3cf8af30b36e
children 3e351e25f5d1
comparison
equal deleted inserted replaced
80:d2d7cb96100d 81:31fa973a70fd
394 movlw 0x22 ; Start Writing Data to GRAM 394 movlw 0x22 ; Start Writing Data to GRAM
395 rcall PLED_CmdWrite 395 rcall PLED_CmdWrite
396 396
397 bsf oled_rs ; Data! 397 bsf oled_rs ; Data!
398 398
399 clrf PORTD ; See Page 101 of OLED Driver IC Datasheet
400
401 movlw d'10' 399 movlw d'10'
402 movwf draw_box_temp3 400 movwf draw_box_temp3
403 PLED_ClearScreen2: 401 PLED_ClearScreen2:
404 movlw d'30' 402 movlw d'30'
405 movwf draw_box_temp2 403 movwf draw_box_temp2
406 PLED_ClearScreen3: 404 PLED_ClearScreen3:
407 clrf draw_box_temp1 ; 30*10*256=76800 Pixels -> Clear complete 240*320 405 clrf draw_box_temp1 ; 30*10*256=76800 Pixels -> Clear complete 240*320
408 PLED_ClearScreen4: 406 PLED_ClearScreen4:
409 407
408 clrf PORTD ; Need to generate trace here too.
410 bcf oled_rw 409 bcf oled_rw
411 bsf oled_rw ; Upper 410 bsf oled_rw ; Upper
411
412 clrf PORTD ; Need to generate trace here too.
412 bcf oled_rw 413 bcf oled_rw
413 bsf oled_rw ; Lower 414 bsf oled_rw ; Lower
414 415
415 decfsz draw_box_temp1,F 416 decfsz draw_box_temp1,F
416 bra PLED_ClearScreen4 417 bra PLED_ClearScreen4