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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/02/06 06:38
Read: times


 
#115320 - Problem
Responding to: ???'s previous message
Andrew Kovalyov said:
So as you see I put 1 in P0.0 (0 line in keypad) in output latch. And in P0.1 and P0.0 in input appears "1" too (0 and 1 row in keypad), as I clicked A and 2 in keypad. But I can't read number from input, when I do mov a, p0. May be I do all wrong. But I thought that mov p0, a worked with output latch and mov p0, a worked with input.


The problem is your project is configured to select the lines with P0.0, P0.1, and P0.2 but is also configured to read the return value on the same lines. That's an impossible configuration. You can't select the keypad row with the same lines as you use to read the keys of that row.

Regards,
Craig Steiner


List of 10 messages in thread
TopicAuthorDate
Pinnacle 52 & Ports            01/01/70 00:00      
   I had trouble too            01/01/70 00:00      
      My project options            01/01/70 00:00      
         Problem            01/01/70 00:00      
            it's not 3x3            01/01/70 00:00      
               Thank you.            01/01/70 00:00      
            Thank you.            01/01/70 00:00      
         A buggy program?            01/01/70 00:00      
   '51 port behaviour            01/01/70 00:00      
      (+)            01/01/70 00:00      

Back to Subject List