[an error occurred while processing this directive]
|
lcd_init:
rcall delay05s
clr temp
sts lcd_char,temp
sts lcd_line,temp
cbi portd,lcd_res
rcall lcd_delay
sbi portd,lcd_res
rcall lcd_delay
cbi portd,lcd_cs1
cbi portb,lcd_cs2
ser temp
out ddrc,temp
cbi portb,lcd_wr
rcall lcd_delay
ldi temp,0xaf
rcall lcd_command1
ldi temp,0xc0
rcall lcd_command1
ldi temp,0xa4
rcall lcd_command1
ldi temp,0xa9
rcall lcd_command1
ldi temp,0xa0
rcall lcd_command1
ldi temp,0x00
rcall lcd_command1
ldi temp,0xb8
rcall lcd_command1ldi temp,0xaf
rcall lcd_command2
ldi temp,0xc0
rcall lcd_command2
ldi temp,0xa4
rcall lcd_command2
ldi temp,0xa9
rcall lcd_command2
ldi temp,0x00
rcall lcd_command2
ldi temp,0xb8
rcall lcd_command2rcall clear_disp
ret
lcd_command1:
cbi portd,lcd_a0
rcall lcd_write1
retlcd_command2:
cbi portd,lcd_a0
rcall lcd_write2
retlcd_write1:
rcall lcd_delay
out lcd_data,temp
rcall lcd_delay
sbi portd,lcd_cs1
rcall lcd_delay
cbi portd,lcd_cs1
rcall lcd_delay
retlcd_write2:
rcall lcd_delay
out lcd_data,temp
rcall lcd_delay
sbi portd,lcd_cs2
rcall lcd_delay
cbi portd,lcd_cs2
rcall lcd_delay
ret
E-mail: info@telesys.ru