This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2530 - Problem with Uart - Stop Bit

Other Parts Discussed in Thread: CC2530, Z-STACK

Hello, 

I'm working with CC2530ZDK and Z-Stack CC2530 2.5.1a. I would like to use the Uart interface to communicate with another device.

The CC2530 is connected to the SmartRF05BB and the other device is connected to the board at P4 - Pins 12 (Rx), 18 (Tx) and 20 (GND). I'm using Uart 1 alternative 2.

Some lines of config:

PERCFG |= 0x02;

U1UCR = 0x02;

U1GCR |= 0x02;

HalUARTOpen(SERIAL_PORT_1, &uartConfig);

The other device works at 38400bps, no parity, one stop bit, Byte size = 8, RTS control disable, DTR control disable, f Outx Cts flow false and f Outx Dsr flow false.

I tried to send the message: 0xEA 0x62 0x00 0x00 0x00 0x00 0x00 0x00 0x02 0x00 0x00 0x60. Below is the signal on pin 18 (Tx).

I saw that there is 1 start bit (High) and 2 stop bits (Low), but in my code the register is configured to 1 stop bit and not 2. When I changed the register to 2 stop bits (U1UCR = 0x06) I had more than 2 stop bits. How can I solve this? How can I have just one stop bit?

Best Regards,

Victor Farias.