Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/09/05 23:50
Read: times


 
#100886 - A common 'gotcha'
Responding to: ???'s previous message
One thing I got caught with many years ago was with our good friend the common lcd using the HD44780 style chip. Being the smart engineer, I read the status bit and waited until it finished. Then I had displays that failed and my poor code would lock up and the watchdog would reboot the system. It took me a while to figure out that the lcd was dead. I still see the same trap repeated add-infinitum. Nowadays I just use a delay rathe than explicitly wait for the device to finish. Actually, the classier solution would be to read the status bit and put a timeout around it as Erik suggests - but then the problem is how to cope with the error in case the lcd does fail.

List of 9 messages in thread
TopicAuthorDate
I just had to fix something in a system            01/01/70 00:00      
   90:10 Rule            01/01/70 00:00      
      code like this is where we hear "the cod            01/01/70 00:00      
   Testing            01/01/70 00:00      
      A common 'gotcha'            01/01/70 00:00      
         Design document            01/01/70 00:00      
            What is magic document you speak of?            01/01/70 00:00      
               Ask            01/01/70 00:00      
         Normal            01/01/70 00:00      

Back to Subject List