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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/24/07 10:18
Read: times


 
#135757 - Too long in the ISR??
Responding to: ???'s previous message
I suggest you take the output to the LCD out of the interrupt routine. It seems like you are spending longer in the ISR than the rate at which the keyboard clocks arrive. Have the keyboard interrupt buffer the bits that arrive into a RAM area and then have the main code thread look to see when something is ready to send to the LCD and send separate from the interrupt.

On another note your keuboard sends serial data. Your interrupt routine does not look like it is making any attempt to fetch the serial bit stream comes bit by bit with your keyboard clock interrupts.

- mkaras


List of 13 messages in thread
TopicAuthorDate
catching the keyboard clock pulses            01/01/70 00:00      
   More information            01/01/70 00:00      
   more information            01/01/70 00:00      
      Too long in the ISR??            01/01/70 00:00      
         short ISR            01/01/70 00:00      
            Serial data            01/01/70 00:00      
               clock rate            01/01/70 00:00      
                  better, but not good enough            01/01/70 00:00      
                     keyboard clock & system clock            01/01/70 00:00      
                        Inefficient code!            01/01/70 00:00      
   send an e-mail to            01/01/70 00:00      
      And many, many more            01/01/70 00:00      
      AN434 code            01/01/70 00:00      

Back to Subject List