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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/29/01 11:45
Read: times


 
#12007 - RE: 87C752 serial between 2 micros
Aright, I found out that i initialized SCON incorrectly for the receiving end. Here's the code initializing SCON, TCON, and TMOD and the code for the receiving end:

Mov TMOD, #00010000B
MOV TCON, #00000000B
MOV SCON, #00010000B

JNB RI, $
CLR RI
MOV A, SBUF
**Q: The program only monitors RI for receiving??

The Code for the Transmitting side is:
MOV TMOD, #00010000B
MOV TCON, #00000000B
MOV SCON, #00001000B

MOV SBUF, R0
HOLD: JNB TI, HOLD
CLR TI

Is this code sufficient to transmit data between two micros?????

Prams

List of 8 messages in thread
TopicAuthorDate
87C752 serial between 2 micros            01/01/70 00:00      
RE: 87C752 serial between 2 micros            01/01/70 00:00      
RE: 87C752 serial between 2 micros            01/01/70 00:00      
RE: 87C752 serial between 2 micros            01/01/70 00:00      
RE: 87C752 serial between 2 micros            01/01/70 00:00      
RE: 87C752 serial between 2 micros            01/01/70 00:00      
RE: 87C752 serial between 2 micros            01/01/70 00:00      
This might help            01/01/70 00:00      

Back to Subject List