Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top