ATMEGA64L arithmetic operation of 2 4x4 keypad inputs and display the result on lcd

Status
Not open for further replies.

nurm.

Newbie level 4
Joined
May 28, 2012
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,327
Hey there,

i'm using atmega64l board with 4x4 keypad. i'm also using assembly language to write the code. i know how to interface and display the inputs from the keypad to the lcd, but i'm struggling to understand how to do addition operation between those inputs and display the result on lcd.

so, if someone knows how to do it. please help me! mucho gracias!
 

Code:
convert_end:
//out PORTC, temp 					; write value to PORTC									
									; read a character from the string 
ldi del_lo, low(30000)
ldi del_hi, high(30000)
rcall delay
rcall delay
mov data, temp
rcall lcd_wait_busy
rcall lcd_write_data  
rcall delay
rcall delay
rcall storeOrAdd
ret ; return to caller

so, if i want the result to be displayed at the second line of lcd, how am i gonna do that?
 

if i want the result to be displayed at the second line of lcd, how am i gonna do that?
Start writing data from address 0xC0 and not from 0x80.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…