;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; LCD-Routinen ;; ;; ============ ;; ;; (c)andreas-s@web.de ;; ;; ;; ;; 4bit-Interface ;; ;; DB4-DB7: PD0-PD3 ;; ;; RS: PD4 ;; ;; E: PD5 ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; .def temp2 = r22 .def temp3 = r23 .equ LCD_PORT = PORTD .equ LCD_DDR = DDRD .equ PIN_RS = 4 .equ PIN_E = 5 .ifndef XTAL .equ XTAL = 4000000 .endif ;sendet ein Datenbyte an das LCD lcd_data: push temp2 push temp3 mov temp2, temp1 ; "Sicherungskopie" für ; die Übertragung des 2.Nibbles swap temp1 ; Vertauschen andi temp1, 0b00001111 ; oberes Nibble auf Null setzen sbr temp1, 1<