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.
I am very new to DSP hardware. I am trying to sample an analogue signal and store it on a computer. I am using the ADS8364EVM to do Analog-2-Digital conversion and the C6713DSK to process the signal and store it on the PC.
I have been reading on the two boards and trying to get a hang of how the the EVM can be controlled in software but it gives me a headache. Does anyone have a piece of code which controlls the ADC. I mean just setting the McBSP, configuring the ADC, sending conversion commands, and reading the results off the ADC.
In reply to Bendous:
You will only see pulses on the timer 0 while a data acquisition is ongoing. The timer is suspended while no readblock() is submitted and will be activated by the dc_readblock() function. As Tom pointed out, you will have ti use an external clock for the converter. The timer is only used for the HOLDx pins.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Richard Oed:
I wrote the following code after initialising the ADC:
// See Timer 0 characteristics:
*(unsigned int*) Timer0_CTL_Address = 0x03D3;
*(unsigned int*) Timer0_PRD_Address = 0x0007;
// Read PCR register and update its value:
Temp = *(unsigned char*) McBSP1_PCR_Address;
Temp = Temp | PCR_MASK;
*(unsigned char*) McBSP1_PCR_Address = Temp;
This allowed me to use TOUT0 from Timer 0 as the ADC clock with jumper W15 at pins 1 and 2.
The resulting clock has a frequency of 4Mhz.
I checked the rest of the ADC pins. The WR signal goes active simultaneously with the CS whenever a command is written. RESET remains inactive. The HOLDx hardware pins are all set to 0 (active), when they should be high, but this should not be a problem since they are logic ANDed with their software couterparts.
I connected A0+ and A0_GND to the positive and negative outputs of a hand held sine generator. When I scoped the input, The sine wave ranges from -1.3V to 2V.
The EOC output line of the ADC never goes active, which means the conversion is never carried out!!!
Am I doing anything wrong?
Could you let me know the settings for the address pins A[2:0]? I assume that you are going to use the "cycle mode" (software control). pls also note that in this mode, the HOLDx pins need to be high all the time (not low).
If you are not using the software control mode, you will have to toggle the HOLDx pins address the channel to be read with the address lines.
Bellow is all my code. This is what I am getting now:
Channel 1: WR signal.
Channel 2: EOC signal.
OK, I am finally able to read from the ADC. However, for a sinusoid in the input this is what I m getting.
The red and black outputs of my oscillator are connected to the positive (B0+) and negative (B0-) inputs of channel B0, respectively. This is what a get when I probe the CHB0+ input to the ADC (with the ground clipper connected to input (CHB0-):
The RefIN pin of the ADC sits at 2.6V, which means that the input is well within range.
WHAT is wrong with the output???
I had downloaded the source code as you mention. I had also having document for this program for ADS8364. I had all the necessary thing required at see the output.
But i had one problem instead of giving external Clock on J9 connector(BNC connector on the right handside of the board), I am using the internal clock (Tout) by shorting W8's 2-3 pin. Still i am not getting the output in Graph window of CCS.
Kindly let me know the how to proceed
Below is the procedure to run the sample code
Guidelines for the ADS8364 Example Project for
the TMS320C6000 DSP family
Table of Contents
1. Legal Notes
2. Hardware Settings
3.1 Development Environment
3.2 Project Directory
3.3 DCP Settings
3.4 Application Settings
3.5 Code Composer Studio Settings
3.6 Exposed Functions
3.7 Additional Notes
By using this program you agree to the terms of the Legal notes
Name : ADS8364/65M Evaluation Module
Partnumber : ADS8364M-EVM
Revision : A
Literature Number : SLAU198
Vendor : Texas Instruments
Guidelines for the Example Project Page 1 of 7
External Signal Connections
This section shows all external signals mandatory to successfully run the example project.
Apply a Analog Signal with the following parameters:
Apply a Clock Signal with the following parameters:
Other Board Modifications
This section shows special hardware modification.
Shifting Single-Ended Input to Common Mode Voltage
This example uses a single-ended Signal as analog input signal. To feed the signal with the
parameter given above do the following hardware changes: --- 1.) Wire W3.2 to J3.12 (shift
ground of signal C0 to Vref (2.5V)) --- 2.) Wire W3.2 to J3.16 (shift ground of signal C1 to
Vref (2.5V)) --- 3.) Wire J3.10 to J3.14 (connect C0 to C1)
W10A Channel A Used: 1-2 (Timer is trigger); Unused: 2-3
W10B Channel B Used: 1-2 (Timer is trigger); Unused: 2-3
W10C Channel C Used: 1-2 (Timer is trigger); Unused: 2-3
Other don't care
- type : Sine
- frequency : 1kHz
- voff : 0V
- vpp : 4.9V
- connector : Signal:J3.14(C1+); GND:J3.16(C1-)
- r : HI-Z
- type : Square
- frequency : 5MHz
- voff : 1.65V
- vpp : 4.4V
- connector : J7
- r : 50 Ohm
Guidelines for the Example Project Page 2 of 7
With the original ADS8364/65 EVM the CS line of the ADS8364/65 stays low always. This
leads to problems if other devices are connected to the EMIF. Fix: Solder an 1kOhm pulldown
resistor to pin 8 of U7 (Output 3Y of SN74HC125).
This section shows all external power connection needed to run the example project.
Apply a voltage for the Analog Section with the following parameters:
Name : 5-6K Interface EVM
Partnumber : 5-6KINTERFACE
Revision : B
Literature Number : SLAU104B
J13 1-2 (b)
J14 1-2 (TOUTa)
- voltage : +5V
- signal : +5VA
- connector : J2
Guidelines for the Example Project Page 3 of 7
Apply a voltage for the DSP Section with the following parameters:
Additional Hardware Notes
- voltage : -/+12V
- signal : -/+VA
- connector : J1
Name : TMS320C6713 DSK
Partnumber : N/A
Literature Number : N/A
Vendor : Spectrum Digital
- signal : +5V
- connector : J5
Guidelines for the Example Project Page 4 of 7
file://H:\Important\DSP6713\6713 Interfacing WB eg\ADS8364-DSK6713-CCS3v1\AD... 07/08/2009
Project Directory Name: ADS8364-DSK6713-CCS3v1
This section describes the graphical user interface configuration of both the DSP and the ADS8364
tabulator in the Data Converter Support Tool.
The interface software for this example project was generated using these settings.
DSP Tab Settings
Converter Tab Settings
Code Composer Studio version : 3.10
Project Name : ADS8364-DSK6713-CCS3v1
Map file of the .out file (debug version)
Downloadable .out file (debug version)
Map file of the .out file (release version)
Downloadable .out file (release version)
Header file including defines for the converter and
DSP based on GUI settings
Custom linker command file to be able to specify a
Application layer file of the project
Header file of the generated interface software
Source file of the generated interface software
Configuration database (CDB) file of the project
Linker command file generated from the CDB
Header file generated from the CDB (you may include
this in you source code)
Internal header file generated from the CDB
Internal source file generated from the CDB
Source file for initializing resources
Source file of translation layer for the DCP
Header file of translation layer for the DCP
- DSP Type : TMS320C6713
- DSP Clock : 225
- Dispatcher in DSP/BIOS Used : unchecked
Guidelines for the Example Project Page 5 of 7
The Sample Buffer is a data field within the C source code where the samples read from the converter
are stored in.
This data field is declared in the application file (main.c).
In this example project the Sample Buffer has/have the following parameter:
How To Display Data Samples
This section describes how to graphically watch samples collected from the data converter and, thus,
verify the proper work of the converter.
Parameter for the Graph Window(s):
Graph Window 1:
- ADS8364/65M EVM in use : checked
- ADC Base Address (hex) [gray] : 0xA003C000
- DSP Interrupt [gray] : Ext Int 5
- Timer (for Sampling) : Timer 0
- Timer Frequency (kHz) : 248.894
- Minimum System Clock (kHz) [gray] : 4977.88
- Optimize EMIF Access : checked
- Additional Channel Info Enabled (ADD) : unchecked
- Name : Buffer1
- Size : 2048
- DataType : ADS8364_DATATYPE
- Name : Buffer2
1. Start Code Composer Studio
2. Open the Project
3. Download the $PrjDir\Debug\ADS8364-DSK6713-CCS3v1.out file to the DSP (DO NOT
4. Open two Graph Window (parameters are listed below)
5. Set a probepoint at a 'asm( "nop");' line in main.c
6. Run the Program
7. You should see the collected data samples in the graph window.
- Buffer Name : Buffer1
Guidelines for the Example Project Page 6 of 7
Graph Window 2:
Since no compiling took place by now (software is binary the same as during the creation of this
example project) the user can check the hardware.
In case the system does not work as expected the problem lies most probably in the hardware.
- Returns the base address and number of elements of the last finished buffer.
- TTIDCSTATUS: Status of function. Can be TIDC_ERR_NOXFER or TIDC_NO_ERR
For additional information...
... see comments in t8364_ob.c
--- END OF FILE ---
- Acquisition Buffer Size : 2048
- Display Data Size : 2048
- DSP Data Type : 16-bit signed integer
- Buffer Name : Buffer2
- void *pDC : Data converter object pointer
: Base address of data buffer (pass by
- unsigned int *pBufLen
: Data samples in data buffer (pass by
Guidelines for the Example Project Page 7 of 7
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.