diff 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
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/oled_samsung.asm	Tue Dec 07 21:29:46 2010 +0100
+++ b/code_part1/OSTC_code_asm_part1/oled_samsung.asm	Mon Dec 06 18:05:39 2010 +0100
@@ -396,8 +396,6 @@
 
 	bsf		oled_rs					; Data!
 
-	clrf	PORTD					; See Page 101 of OLED Driver IC Datasheet
-	
 	movlw	d'10'
 	movwf	draw_box_temp3
 PLED_ClearScreen2:
@@ -407,8 +405,11 @@
 	clrf	draw_box_temp1				; 30*10*256=76800 Pixels -> Clear complete 240*320
 PLED_ClearScreen4:
 
+	clrf	PORTD					; Need to generate trace here too.
 	bcf		oled_rw
 	bsf		oled_rw					; Upper
+
+    clrf	PORTD					; Need to generate trace here too.
 	bcf		oled_rw
 	bsf		oled_rw					; Lower