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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/26/04 13:38
Read: times


 
#82016 - Yet another problem you must fix.
Responding to: ???'s previous message
There is still another problem in your code that must be fixed. On the transmit side you are setting port P1=0x00 in the main program. A couple of instructions father down you are trying to read the P1 into another variable. Standard types of 89C51's with their bi-directional I/O pins will be reading in a zero value to this variable every time. To permit port P1 to be used as a input port it is essential that you initialize it like this --> P1=0xFF.

Michael Karas


List of 14 messages in thread
TopicAuthorDate
AT89c51 serial communication problem            01/01/70 00:00      
   Try            01/01/70 00:00      
   While loop in Transmit Char function            01/01/70 00:00      
   mistakes            01/01/70 00:00      
      mistakes fixed but still in a fix            01/01/70 00:00      
         too more fix            01/01/70 00:00      
   Give little more details            01/01/70 00:00      
      more details            01/01/70 00:00      
   problem solved            01/01/70 00:00      
      answer wrong            01/01/70 00:00      
   Yet another problem you must fix.            01/01/70 00:00      
      Hex files needed            01/01/70 00:00      
      Check The serial port            01/01/70 00:00      
         Problem solved            01/01/70 00:00      

Back to Subject List