hello,
i have to make a project for one of my courses in which i read temperature from a
thermocouple and display it on an lcd. i am using an Axiom CME11E9-EVBU board and the lcd
that came along with it. So far I have managed to write the program and I am getting the
temperature readings and display them on my computer monitor. but I am unable to display
this to the lcd. i have posted the code that i wrote so far below, if someone could have a
look at it and guide me in the right direction?
thanks
*temperature calculation
loop2
ldab #194
ldaa ADR3
mul
ldx #100
idiv
pshx * save value
puly * move to y
bsr HexDec * convert hex to decimal
ldx #TEMP * point to data
* std 0,X * save result
STD 0,BUFFER
* BSR TENS
BSR ONES
BSR Delay
BSR Delay
bra loop2
ONES: LDD 1,BUFFER
LDX #10
IDIV
STD 0,X
LDAA 1,X
ADDA #48
STAA LCD_DATA *push to lcd
RTS
------------------------------------

(You need to be a member of hc11 -- send a blank email to hc11-subscribe@yahoogroups.com )