I want to know the basic procedure or algorithm which
I should follow for using BF527 SPORT.There is an approach
of LOOPBACK which require least resources for testing SPORT.
Plz tell mi smthing how to carry it out.
I have attached a SPORT1 loopback code in core driven mode for BF527.You can use it as reference and for theoretical details about functioning of SPORT peripheral, you can refer to the BF527 HRM available here:
Thanks for the Ref. code...
But the problem is,my tool is showing following error msg
when I attempted to build the preoject.
C:\Program Files\Analog Devices\VisualDSP 5.0\gmake-378: *** No rule to make target `Debug/Test case1_basiccrt.doj', needed by `Debug/SPORT1.dxe'. Stop.
No valid command(s) to build.
I read, it is because of old version of Visual DSP++. But my tool is 90 days trial version downloaded just 10 days before.
plz guide me through the problem
the example builds fine for me. When you open the project, does the IDDE report that "The IDDE has detected that the startup code/LDF templates have changed"? If so, select "Yes" to regenerate these files.
Next, do a dependency update, via Project: Update Dependencies.
If that does not work, manually delete the *.pcf and *.mak files from the project directory, then perform a dependency update. Ensure, also, that you build the project using Project: Rebuild Project.
In the simulator mode you won't get any data in the receive buffer.
Yes you can program any MMR in C including PORTF_FER using the following c statement:
*pPORTF_FER = value;
I have converted above assembly code in C.It is needed for me to write
all the codes in C language only.
I'm attaching that C code here.It is running but compiler shows some exception error which I have not understood.
Kindly tell mi about the exception and mistakes.
Also attaching exception output picture
Attached are the c-codes for SPORT loopback for BF527 processor.
Code is running fine for SPORT0
But actually I'm using SPORT1 right now ..
I have converted above code to make it suitable for SPORT1 but still it is not running fine..I can see Tx_Buff but Rx_Buff has either 00 or some garbage values for few IVG settings
Can u tell mi how IVG is used and mistakes in my code??
attaching my code here
The converted code is correct and should work fine.
BTW, are you using EZ-KIT? If yes, make sure that switch settings are appropriate for SPORT1 signals.
May b its beacuse my FPGA and DSP are on opposite sides of PCB..
I will check...
Retrieving data ...