Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/oled_samsung.asm @ 475:472bccc39aeb
some nops for read command
author | heinrichsweikamp |
---|---|
date | Sun, 09 Oct 2011 22:18:25 +0200 |
parents | 05ec97e106da |
children | 0635fbb2fcf5 |
comparison
equal
deleted
inserted
replaced
474:c083f5b9168c | 475:472bccc39aeb |
---|---|
558 ; NOTE: you should "setf TRISD" before calling this function, | 558 ; NOTE: you should "setf TRISD" before calling this function, |
559 ; to make PortD an input port... | 559 ; to make PortD an input port... |
560 PLED_DataRead: | 560 PLED_DataRead: |
561 bsf oled_rs ; Data register. | 561 bsf oled_rs ; Data register. |
562 bcf oled_e_nwr ; Read enable. | 562 bcf oled_e_nwr ; Read enable. |
563 nop | |
564 nop | |
565 nop | |
566 nop | |
563 movf PORTD,W ; Read byte. | 567 movf PORTD,W ; Read byte. |
564 bsf oled_e_nwr ; release bus. | 568 bsf oled_e_nwr ; release bus. |
565 return | 569 return |
566 | 570 |
567 ; ----------------------------- | 571 ; ----------------------------- |