naeem.iu
Newbie level 2
- Joined
- Dec 8, 2012
- Messages
- 2
- Helped
- 1
- Reputation
- 2
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,303
I need help in Bi-Directional Serial Communication Coding in Assembly language...
my scenario is given below:
I had made 2 micro-controller base devices that is connected to the PC through Serial Port.
PC1, MC1.
PC2, MC2.
MC1 ===> Micro-Controller Device 1
MC2 ===> Micro-Controller Device 2
MC1 sends data from Port 2 to MC2, while MC2 receives that data from Port 2 and move it to SBUF.
MC2 sends data from Port 1 to MC1, While MC1 receives that data from Port 0 and move it to SBUF.
I am using Port 2 as sending and Port 0 as Receiving of MC1....
While using Port 2 as receiving and Port 1 as sending of MC2.....
MC1 takes input from SBUF, and move that data to Port 2, while MC2 receives data from Port 2 that is directly connected to the Port 2 of MC1 and move that data to SBUF of MC2.
Now, I am seeking for the Bi-Directional Code for this scenario....
Can anyone help me in this scenario??
Thanks in advance..
my scenario is given below:
I had made 2 micro-controller base devices that is connected to the PC through Serial Port.
PC1, MC1.
PC2, MC2.
MC1 ===> Micro-Controller Device 1
MC2 ===> Micro-Controller Device 2
MC1 sends data from Port 2 to MC2, while MC2 receives that data from Port 2 and move it to SBUF.
MC2 sends data from Port 1 to MC1, While MC1 receives that data from Port 0 and move it to SBUF.
I am using Port 2 as sending and Port 0 as Receiving of MC1....
While using Port 2 as receiving and Port 1 as sending of MC2.....
MC1 takes input from SBUF, and move that data to Port 2, while MC2 receives data from Port 2 that is directly connected to the Port 2 of MC1 and move that data to SBUF of MC2.
Now, I am seeking for the Bi-Directional Code for this scenario....
Can anyone help me in this scenario??
Thanks in advance..