Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/oled_samsung.asm @ 330:447390289f47 ScreenDump
NEW screen_dump serial command (l)
author | JeanDo |
---|---|
date | Tue, 10 May 2011 03:18:20 +0200 |
parents | cb055a7d75f3 |
children | 469f4861c7c1 |
comparison
equal
deleted
inserted
replaced
329:1adcfb4b4c27 | 330:447390289f47 |
---|---|
182 ; movwf PORTD,A | 182 ; movwf PORTD,A |
183 ; bcf oled_rw ; Tick the clock | 183 ; bcf oled_rw ; Tick the clock |
184 ; bsf oled_rw | 184 ; bsf oled_rw |
185 endm | 185 endm |
186 ; | 186 ; |
187 ; Input : data as macro parameter. | |
188 ; Output : NONE | |
189 ; Trash : WREG | |
190 ; | |
191 AA_DATA_WRITE macro data | |
192 movlw data | |
193 rcall PLED_DataWrite | |
194 endm | |
195 ; | |
187 ; Input : PRODH:L as 16bits data. | 196 ; Input : PRODH:L as 16bits data. |
188 ; Output : NONE | 197 ; Output : NONE |
189 ; Trash : NONE | 198 ; Trash : NONE |
190 ; | 199 ; |
191 AA_DATA_WRITE_PROD macro | 200 AA_DATA_WRITE_PROD macro |
515 bcf oled_rw | 524 bcf oled_rw |
516 bsf oled_rw | 525 bsf oled_rw |
517 return | 526 return |
518 | 527 |
519 ; ----------------------------- | 528 ; ----------------------------- |
529 ; PLED Read data into WREG | |
530 ; ----------------------------- | |
531 ; NOTE: you should "setf TRISD" before calling this function, | |
532 ; to make PortD an input port... | |
533 PLED_DataRead: | |
534 bsf oled_rs ; Data register. | |
535 nop ; Enable delay to read data... | |
536 bcf oled_e_nwr ; Read enable. | |
537 nop | |
538 nop | |
539 nop | |
540 nop | |
541 nop | |
542 movf PORTD,W ; Read byte. | |
543 bsf oled_e_nwr ; release bus. | |
544 return | |
545 | |
546 ; ----------------------------- | |
520 ; PLED boot | 547 ; PLED boot |
521 ; ----------------------------- | 548 ; ----------------------------- |
522 PLED_boot: | 549 PLED_boot: |
523 bcf oled_hv | 550 bcf oled_hv |
524 WAITMS d'32' | 551 WAITMS d'32' |