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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/05/00 11:51
Read: times


 
#2505 - RE: Weird input port problem
Joel,
you still didn't tell us how you tried to read the port.

Let's say P5 is located at 0C4h (my 87C592):
P5 DATA 0C4H

To read the port just use:
mov P5,#0FFh ; activate port pullups
mov A,P5 ; P5 -> accu

or something equivalent in your high level language (C?). Not all SFRs are bitadressable, ports should be. This means that you can check or toggle single port pins as well.

List of 14 messages in thread
TopicAuthorDate
Weird input port problem            01/01/70 00:00      
RE: Weird input port problem            01/01/70 00:00      
RE: Weird input port problem            01/01/70 00:00      
RE: Weird input port problem            01/01/70 00:00      
RE: Weird input port problem            01/01/70 00:00      
RE: Weird input port problem            01/01/70 00:00      
RE: Weird input port problem            01/01/70 00:00      
RE: Weird input port problem            01/01/70 00:00      
RE: Weird input port problem            01/01/70 00:00      
RE: Weird input port problem            01/01/70 00:00      
RE: Weird input port problem            01/01/70 00:00      
RE: Weird input port problem            01/01/70 00:00      
RE: Weird input port problem            01/01/70 00:00      
RE: Weird input port problem            01/01/70 00:00      

Back to Subject List