Guest User

Untitled

a guest
Mar 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. clrf var1 ; Clear table pointer
  2. clrf TableLength1
  3. call command_mode
  4. movlw 0x80
  5. call write_lcd
  6. TableLoop1:
  7. movf var1, W
  8. call TableRead1 ; Call table
  9.  
  10. movwf temp ; store receive byte
  11. call write_mode ; set lcd transmission to write mode
  12. movf temp, W ; pop receive byte
  13. call write_lcd ; Output to console
  14. call delay_5ms
  15. ; Use table value (in W register) here
  16.  
  17. incf var1, F ; Increase table pointer
  18. movlw TableLength1 ; Check if at end of table
  19. subwf var1, W
  20. btfss STATUS, Z
  21. goto TableLoop1 ; If not, then loop again
  22.  
  23. ; User code...
Add Comment
Please, Sign In to add comment