参数资料
型号: 151-0153
厂商: Rabbit Semiconductor
文件页数: 133/162页
文件大小: 0K
描述: ASSEMBLY - RABBITFLEX CABLES
标准包装: 1
系列: RabbitFLEX™
附件类型: 缆线组件
适用于相关产品: BL300F
ser485Tx
void ser485Tx(void);
DESCRIPTION
Enables the RS-485 transmitter. The brdInit() function must be executed before running this
function. This function is non-reentrant.
After the byte or block of data has been transmitted, the RS-485 transmitter must be idle and its
transmit buffer empty before an application can disable the transmitter and thus receive data from
the RS-485 interface. There are two methods for identifying when to disable the transmitter.
1. Poll the receive data buffer for the transmitted data that is echoed back to it. This is the easier
method. The following code snippet illustrates disabling the transmitter after one byte has been
transmitted using serial port C. You can also send a block of data before disabling the transmit-
ter.
ser485Tx();
serCputc ( 0x55 );
while (serCgetc() == -1);
ser485Rx();
//
//
//
//
enable transmitter
send byte
wait for echo
disable transmitter
2. Read SxSR, the status register of the serial port you are using. Bits 2 and 3 report on the RS-485
transmitter and its buffer. The following code snippet illustrates how to check these bits if you
are using serial port C.
ser485Tx();
serCputc(0x55);
// Wait for Tx Data buffer to become empty
while(serCwrFree() != COUTBUFSIZE);
// Wait for Tx buffer and shift register on uP to become empty
while(RdPortI(SCSR)&0x08 || RdPortI(SCSR)&0x04);
ser485Rx();
RETURN VALUE
None
SEE ALSO
RabbitFLEX User’s Manual
127
相关PDF资料
PDF描述
1515738-1 INSERT ASSEMBLY 1 CHANNEL
1515739-1 INSERT ASSEMBLY, 2 X 1310
1515740-1 INSERT ASSEMBLY 4 CHANNEL
1515747-1 INSERT ASSEMBLY 4 CHANNEL
1515867-1 PROTECTIVE CAP,PLUG CONN.
相关代理商/技术参数
参数描述
151-01530 功能描述:RATCHET P CLAMP SIZE A SOFT INSE 制造商:hellermanntyton 系列:- 零件状态:新产品 配件类型:插件 配套使用产品/相关产品:Ratchet P 夹,6.2mm-13.7mm 捆扎直径 材料:热塑性塑胶(TPE) 特性:- 标准包装:100
151-01531 功能描述:RATCHET P CLAMP SIZE B SOFT INSE 制造商:hellermanntyton 系列:- 零件状态:新产品 配件类型:插件 配套使用产品/相关产品:Ratchet P 夹,13.2mm-19.5mm 捆扎直径 材料:热塑性塑胶(TPE) 特性:- 标准包装:100
151-01532 功能描述:RATCHET P CLAMP SIZE C SOFT INSE 制造商:hellermanntyton 系列:- 零件状态:新产品 配件类型:插件 配套使用产品/相关产品:Ratchet P 夹,19.2mm-36mm 捆扎直径 材料:热塑性塑胶(TPE) 特性:- 标准包装:100
151-01533 功能描述:RATCHET P CLAMP SIZE D SOFT INSE 制造商:hellermanntyton 系列:- 零件状态:新产品 配件类型:插件 配套使用产品/相关产品:Ratchet P 夹,35.1mm-51mm 捆扎直径 材料:热塑性塑胶(TPE) 特性:- 标准包装:100
151-01554 功能描述:WIDE STRAP ADHESIVE MOUNT BLK 制造商:hellermanntyton 系列:* 零件状态:在售 标准包装:3,000