Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

serial communication 8051

Status
Not open for further replies.

arun_9998

Banned
Joined
Aug 25, 2008
Messages
53
Helped
11
Reputation
22
Reaction score
10
Trophy points
1,288
Location
india
Activity points
0
hello all
i communicate two MCU 1200bps via RF TX/RX modules
i am facing some problem that at transmit time the system halt for some milisec.
so plz. help me how can i interrupt driven rut line for transmit
 

so plz. help me how can i interrupt driven rut line for transmit

Can you be clear "driven rut line for transmit"?

Do you want to know how to write interrupt routine?

---------- Post added at 16:16 ---------- Previous post was at 15:55 ----------

Procedure is as follows:

1. write value to SBUF;
2. Wait for a while by checking user defined flag, until the interrupt gets triggered.
3. Once the interrupt triggered, in the interrupt routine, check the interrupt is because of RI or TI.
4. If it is TI, then clear the flag as well as set user defined flag and exit. Otherwise copy the SBUF content to some global variable and clear the flag as well as set user defined flag and then exit

My recommendation is, if you are 2 microcontrollers, then it is better to divert 2 GPIO's for RTS and CTS or some request and acknowledge.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top