| Home | Search | Terms of Use | Site Map | Contact Us |
IndustryCommunity.com > Electrical and Electronic Community > Embedded Control Forum > Message
Main Menu
Find

[ List Subjects ][ Post Message ]
[ View Followups ][ Post Followup ]

Subject: About serial port control register U0TCTL of TI's MCU MSP430

Date: 07/27/03 at 9:52 PM
Posted by: sarcophile
E-mail: sarcophile@etang.com
Message Posted:

TI's datasheet said: (in U0ATCTL,)"The transmitter empty (TXEPT) flag is set when the transmitter shift register and UxTXBUF are empty, and is reset when data is written to UxTXBUF." I tried to use the following program to control a MAX1487 to communicate via RS485, but the last statement is always run after the transmition finished for about 10's uS, thus, if the other point transmit immediately after he received my data, the first octet I receive( which he transmit) will not be correct. But if he use an empty cycle ( for(i=0;i<255;i++); ) after he received data, and then begin transmitting, everything is okey.
while((U0TCTL&1) == 0)
;
P6OUT &= (~R01487);
Thanks for you time and experience.

Follow Ups:


Post a Follow-up:

Name:
E-Mail:
Subject:

Message to Post:

 

Google
  Web IndustryCommunity.com
1999-2001 Sunlit Technology Co., Ltd. All rights reserved.