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


 
#82010 - answer wrong
Responding to: ???'s previous message
hi,

no, program you posted, does not work and even cannot be compiled because no directive named #inlcude

Moreover, as I have already said about transmit program:
- you set TI flag with SCON=0x52;
- then you enable serial interrupt ES=1;

So the question: where is the serial interrupt service routine? At time when you enable serial interrupt and either TI or RI is set, program jupms to serial interrupt vector! But there is no serial interrupt routine. So program jumps to hell.

Regards,
Oleg

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