Hello,
I am trying to interface the THS1206EVM with the TMDSDSK6416 using
the 5-6k interface board. I have tried to follow the SLA210A app note,
but something isn't right. When I run the program, the dc_configure()
function and the dc_readblock() both return -1, which corresponds to
the following error: TIDC_ERR_NODEVICE pDC does not point to a
valid data converter structure. Maybe someone can take a look and see
if there is something obvious in my setup that would cause the error.
Here are the jumper settings I am using:
5/6k interface board (revB):
w1: open
w6: 1-2
THS1206EVM:
w2: closed
w3: closed
w4: position A
All other jumper settings are as they came from the factory. I am using the Data Converter plug-in to generate the driver files with the following settings:
Interface Settings:
ADC Address - 0xA0024000
Data Shift - 0
DATA_AV Polarity - High
Data_AV Type - Pulse
Read/Write Type - RD/WR
Data Format - 2's
DSP Interrupt - Ext Int5
Clock Source - Timer1
ADC Settings:
Channel Set - Analog Input AINP
Conversion Clock - 1000 kHz
Mode - Continuous Conversion
Trigger Level - 1
Test Mode - Normal Mode
Ref Voltage - Internal
And here is my main code file:
#include "t1206_fn.h"
#include "tidc_api.h"
#include <csl.h>
#include <csl_irq.h>
#define BUFF_SZ (1024)
unsigned short Buffer[BUFF_SZ];
int configstatus;
int readstatus;
void main (void)
{
configstatus = dc_configure(&Ths1206_1);
IRQ_globalEnable();
while(1);
readstatus = dc_readblock(&Ths1206_1, Buffer, BUFF_SZ, 0);
}
Thanks for any responses in advance.
Mike