Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: Using the CC2510 Mini Evaluation, UART Send gibberish

$
0
0

I'm using the CC2510 Mini Evaluation Kit (crystal on board 26MHz)

Interface UART0 @ location 1

Baud rate 115.2Kpbs

Connection setup:

P0.2 - Rx

P0.3 - Tx

trying to capture using HyperTerminal, Putty...etc

Getting junk.

Any ideas?

static char letter = 'F';
/***********************************************************************************

*

*/
void main (void)
{
uint8_t buttonPushed;
BSP_Init();
// init_uart_dma();

PERCFG = 0x42;//
// D6 - Timer1 0-location1 , 1-location2
// D5 - Timer3 0-location1 , 1-location2
// D4 - Timer4 0-location1 , 1-location2
// D1 - UART1 0-location1 , 1-location2
// D0 - UART0 0-location1 , 1-location2

P0DIR = 0X28; // 0-input , 1-output
P0SEL = 0X3c; // 0-GPIO , 1-function
P0INP = 0; // 0-pullup , 1-Tristate
P0IFG = 0; // 0-no interrupt pending, 1- interrupt pending
PICTL = 0x38; // D5 - P2IEN 0- interrupts are disabled, 1- interrupt enable
// D4 - P1IEN
// D3 - P0IEN
//

ADCCFG = 0x0; // ADC Disabled


U0CSR = 0xc6;
U0UCR = 0x2;

// Configure Baud to 115.2K
U0GCR = 0x8;
U0BAUD = 0x83;


while(1)
{

   U0DBUF = letter;
   while(!(U0CSR&0x2));

}

}

Thanks


Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>