From: Ken H. <he...@re...> - 2000-10-03 09:59:53
|
Hi, I'm trying to control an HD44780 LCD display from an Atmel 89C51 microcontroller (8051 compatible). I've written a "Hello World" program and compiled it with sdcc, and it works ok - but then I tried to get a counting clock going, using the timer 1 interrupt and everything started going wrong! I've tracked the problem down to reentrant functions, and I attach two programs, differing by one line only - the wait_lcd function is reentrant in one, not in the other. The first program works fine, but the second produces no output on the LCD. Any suggestions would be greatly appreciated. Sorry in advance for lack of commenting on the code. Thanks, Ken Healy. |