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 11:19
Read: times


 
#135766 - Serial data
Responding to: ???'s previous message
Ahmet Yorukoglu said:
Secondly, I know my keyboard generate a serial data, and also my keyboard clock is connected to the port3.2 which is external interrupt and catch the fallign edge?
I cant solve the problem...

Each clock pulse identifies one bit of serial data.
So, each time your ISR is called, you need to read that one bit of data, and add it to the bits already received.
After 8 bits, you will have collected a complete byte!

Hint: think about how a shift-register works...


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