DSPRelated.com
Forums

Help - Data transfer from bf533 to PC using UART

Started by meiya zha gan August 28, 2005

Hi,

just i'm in finishing stage of my algorithm. Now my results are stored in memory(internal or sdram)of BF533. i want to transfer this result to PC and display it there in hyperterminal window using UART. Analog devices gave some example code but it has Tx , Rx option and autobaud (lengthy .asm code). i want the simple example "C" code which is transfering data from BF533 to PC using UART. Can you help me? if you can't pls give your suggesstions.

Thanks & Regards,
Meiyazhagan.

Hi

look into the \VisualDSP 4.0\Blackfin\EZ-KITs\ADSP-BF561\Examples\UART
RS-232 HyperTerminal session\Core A\
direktory of your VisualDSP instalation.

there is the UART_Library.c its the asm code portet to c

you need the funktions:
UART_init, UART_waitForTransferCompletion, UART_putc, UART_puts,

Calculate your divisor which: BAUD RATE = SCLK/(16 x Divisor)

so eg for SCLK 118.8 Mhz and a wonted baud rate of 115200 you need
a divisor of 64

UART_init(64);
UART_puts("helo world");

tada

and dont forget that you need a 1:1 cable not a crossed nullmodem one
beetween the bord and the pc

dennis

calculate your divisor which the formula

On 28 Aug 2005, meiya zha gan wrote:

> Date: 28 Aug 2005 09:00:41 -0000
> From: meiya zha gan <kg_meiya81@kg_m...>
> To: adsp@adsp...
> Subject: [adsp] Help - Data transfer from bf533 to PC using UART
>
> Hi,
>
> just i'm in finishing stage of my algorithm. Now my results are stored in memory(internal or sdram)of BF533. i want to transfer this result to PC and display it there in hyperterminal window using UART. Analog devices gave some example code but it has Tx , Rx option and autobaud (lengthy .asm code). i want the simple example "C" code which is transfering data from BF533 to PC using UART. Can you help me? if you can't pls give your suggesstions.
>
> Thanks & Regards,
> Meiyazhagan.
>
> >