Sign in

username:

password:



Not a member?

Search c54x



Search tips

Subscribe to c54x



c54x by Keywords

5409 | 5416 | AD5 | ADC | BIOS | Boot | Booting | Bootloader | C540 | C5402 | C5409 | C5416 | CCS | Codec | DMA | Dmad | DSK | DSKPlus | Dsplib | EVM | FFT | FIR | Flash | GPIO | HPI | Initialization | Interrupt | JTAG | LOG_printf | MCBSP | RFFT | RTDX | Sampling | STLM | UART | VC540

Discussion Groups

Discussion Groups | TMS320C54x | I don't see de output of TMS320C5416 on the oscilloscope

Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).

  

Post a new Thread

I don't see de output of TMS320C5416 on the oscilloscope - marc...@yahoo.com.br - Jan 22 8:11:10 2008



Hi people.

I start using the TMS320C5416 few days ago. First, I test the examples of Sikora (I find this
examples at
http://focus.ti.com/general/docs/university/univ.tsp?templateId=5807&navigationId=11084&
;path=templatedata/cm/univgen/data/univ_exchange_lab)
I'm running the example called template. This example should take the signal input and transfer
it to output. I connect a function generator on the line-in (using a sine wave of 0.9 Vpp and
1KHz) and an oscilloscope on the line-out, but I can't see the waveform on the oscilloscope.
Sporadically, I see this waveform during a milliseconds, but after them the waveform disappear
of the oscilloscope screen.
However, if I connect a speaker on the speaker output, I listen the sound generate by the
function generator even when the oscilloscope screen don't show the input waveform. I need to
see the waveform to test some digital filters.
I need some help to solve this problem!
May be the problem with the board?
Are there some options on the Code Composer to setting and solve this question?
Is possible to see the output waveform directly on the computer screen?

Please, help!
This is the code of template example:

//-----------------------------------------------------------------------//

#include <stdio.h>    /* Required for functions printf() and puts()          */
#include "templatecfg.h"
#include "dsk5416.h"
#include "dsk5416_pcm3002.h"
#include "dsk5416_led.h"

DSK5416_PCM3002_Config setup = {

    0x1FF,      // Set-Up Reg 0 - Left channel DAC attenuation
    0x1FF,      // Set-Up Reg 1 - Right channel DAC attenuation
    0x0,        // Set-Up Reg 2 - Various ctl e.g. power-down modes
    0x0         // Set-Up Reg 3 - Codec data format control
};
Int16 left_input;
Int16 left_output; 
Int16 right_input;
Int16 right_output;

void UserTask()
{
    DSK5416_PCM3002_CodecHandle hCodec;
    unsigned long i;
   	    
    hCodec = DSK5416_PCM3002_openCodec(0, &setup);
                                                                            
    for ( i = 0 ; i <1000000  ; i++ )		
    {
      
      while (!DSK5416_PCM3002_read16(hCodec, &left_input));
      while (!DSK5416_PCM3002_write16(hCodec, left_output));
      while (!DSK5416_PCM3002_read16(hCodec, &right_input));
      while (!DSK5416_PCM3002_write16(hCodec, right_output));
           
      left_output = left_input;
      right_output = right_input;

     }

    DSK5416_PCM3002_closeCodec(hCodec);
    
       }

void main()
{
        
    DSK5416_init();
    
    }
//-----------------------------------------------------------------------//
Hugs!
Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution
for Commercial & Consumer End Equipment: www.ti.com/dm6467



(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )