industrialNETworXnetx

Rainer Versteeg

Rainer Versteeg

| 04.06.2009 | 15:46 | 1 reply

Uart Databits 9

Hello !

I try to initialize the UART with 9 Databits.

switch (BUFFER_IMAGE_KONFIG[UART0_DATENBITS_CX])
	{ 
	 case 0:myUrt_waeg[0].eDat=RX_UART_DATABIT_5;break;
	 case 1:myUrt_waeg[0].eDat=RX_UART_DATABIT_6;break;
	 case 2:myUrt_waeg[0].eDat=RX_UART_DATABIT_7;break;
	 case 3:myUrt_waeg[0].eDat=RX_UART_DATABIT_8;break;
	 case 4:myUrt_waeg[0].eDat=RX_UART_DATABIT_9;break;
	} 

result = Drv_UrtInitializeUart(ptRsc->tLoc.uart, UartWaeg_Receive, UartWaeg_Send,
UartWaeg_Error,
pvRsc,
TRUE,
&unHdlr);

When I try this then in my result is 0x00005006 (Configured data width not supported by the UART)

How many Databits can I configure ?

Br,
Rainer

Andreas Jacob

Andreas Jacob

Hilscher Gesellschaft fuer Systemautomation mbH

| 24.06.2009 | 15:50

Hi Rainer,

the netX UART interface supports only from 5 till 8 Data Bits.

Login