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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/22/04 15:12
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#79723 - RE: ADUC812 Port 1
Responding to: ???'s previous message
Dermot,

...when I try to input the digital data all I get is rubbish

How do you watch data received by port1? I couldn't find your way(:-).

Seems to me you have to output data via another port, for instance, port2. So change the program as showed below and compare values on both ports.
$MOD812
       ORG  0000H
       LJMP START

       ORG  0200H
START: MOV  SP,#40H
       MOV  P1,#00H   ;Makes port 1 an i/p
AGAIN: MOV  A,P1      ;input data into Acc
       MOV  P2,A      ;output data to port2
       JMP  AGAIN
       END

Regards,
George



List of 15 messages in thread
TopicAuthorDate
ADUC812 Port 1            01/01/70 00:00      
   RE: ADUC812 Port 1            01/01/70 00:00      
      RE: ADUC812 Port 1            01/01/70 00:00      
         RE: ADUC812 Port 1            01/01/70 00:00      
   RE: ADUC812 Port 1            01/01/70 00:00      
      RE: ADUC812 Port 1            01/01/70 00:00      
         RE: ADUC812 Port 1            01/01/70 00:00      
            RE: ADUC812 Port 1            01/01/70 00:00      
               RE: ADUC812 Port 1            01/01/70 00:00      
                  RE: ADUC812 Port 1            01/01/70 00:00      
            RE: ADUC812 Port 1            01/01/70 00:00      
   RE: ADUC812 Port 1            01/01/70 00:00      
      RE: ADUC812 Port 1            01/01/70 00:00      
         RE: ADUC812 Port 1            01/01/70 00:00      
            RE: ADUC812 Port 1            01/01/70 00:00      

Back to Subject List