Technical discussions about Freescale Microcontrollers: M68HC11. (Freescale Semiconductor is a Subsidiary of Motorola).
So far in May, you have voted 0 times ou of a total of 20 votes by the community.
Please help us clean the archives from unuseful discussion threads by using the voting system! Details here.
Is this thread worth a thumbs up?
looking for help. trying to display temperature on lcd - saad...@gmail.com - Jul 27 8:27:02 2009
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 )