This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Uart initialisation in CC2430 chip with 8051 architecture

Hi,

Our company has purchased two demoboards (partno:cc2430DB) with CC2430 from TI. The initial operations of the board were really fine. But we would like to enable a uart configuration in a board similar to that .But there are some issues related to the uart configuration.

I'm setting the baudrate for 32 MHz system clock as per mentioned in the CC2430 datasheets .When i'm going to test the serial communication with the application "hyperterminal" from windows, i can't receive the information i send correctly, just strange characters. Some times it will display the correct data but its very often.

How can i receive the correct information? Is it bcoz any matter related to the baudrate or the system clock or any other configurations related.if possible can u pls provide an exact initialization of uart for the chip CC2430.

Please provide a link to access the source code related to the uart1 init for C2430 chip..

We have given the following configuration for uart init in our code base.can u pls check this .

Void uart init()
{ PERCFG |= 0x02; /* Enable Tx and Rx on P1 */ P1SEL |= 0xc0;

U1GCR = 9; U1BAUD = 59;//baudrate 19200

/* Mode is UART Mode */ U1CSR = 0x80;

/* Flush it */ U1UCR = 0x80;
}

I expect a good reply from your side very immediately.if possible send a uart initialization based on C2430 soc .

0