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.

How to check the received Rx signal on the dsp28335 ccs

Other Parts Discussed in Thread: CONTROLSUITE

I am writing the SCI code that loop back the character to DSP itself and i wrote like this :

char message[]={"1"};

while(1)
    {    
          ScibRegs.SCITXBUF=message[index++];            // send single character
          while (ScibRegs.SCIRXST.bit.RXRDY == 1) ;     //wait for Rx ready
         x[i]=ScibRegs.SCIRXBUF.all;

    }

Initialization part

void SCIB_init()
{    
       ScibRegs.SCICCR.all =0x0027;       // 1 stop bit,  No loopback
                                       // ODD parity,8 char bits,
                                       // async mode, idle-line protocol
    ScibRegs.SCICTL1.all =0x0003;      // enable TX, RX, internal SCICLK,
                                       // Disable RX ERR, SLEEP, TXWAKE
    
    // SYSCLOCKOUT = 150MHz; LSPCLK = 1/4 = 37.5 MHz
    // BRR = (LSPCLK / (9600 x 8)) -1
    // BRR = 487  gives 9605 Baud
    ScibRegs.SCIHBAUD    = 487 >> 8;             // Highbyte
    ScibRegs.SCILBAUD    = 487 & 0x00FF;    // Lowbyte
    ScibRegs.SCICTL1.all = 0x0023;                // Relinquish SCI from Reset

Now I am not able to see the register SCI RXBUF Register changing anything Please anyone help me in finding this

  • Hi,

    First of all you check whether you're able to transfer the data through Tx line using DSO. Check the waveform... if you see no waveform through Tx line then there should be some issue with your code implementation. Refer scia_loopback example that can be found here: C:\ti\controlSUITE\device_support\f2833x\v133\DSP2833x_examples_ccsv4\scia_loopback

    Regards,

    Gautam

  • Yes,

    One thing I want to mention is we connected a RS 485 driver AD 2587 IC across DSP.So actually I want to see a RS 485 SIGNAL (differential signal) across A and B (receiving end).I am just getting a continuous 0-3 v differential signal across the receiving end A and B.and my driver connected to SCIB REGISTER GPIO 22 and 23 and i enabled those.But in the register window i am able to see the SCITXBUF register transmitting my data and not seeing any signal in the scope

    Is there any additional i need to do in my SCI initialization.

  • B J RAJENDRANATH said:
    Is there any additional i need to do in my SCI initialization.

    Nope, if you've referred the above SCI example: those are the only initializations. I hope you're transmitting data in an infinite while/for loop so that you'll be able to observe the data properly on a DSO.

    Regards,

    Gautam

  • Thanx for your quick reply and I didn't find the exact location you told can you please provide the link

  • You have to download controlSuite to access these locations:

    C:\ti\controlSUITE\device_support\f2833x\v133\DSP2833x_examples_ccsv4\sci_echoback

    C:\ti\controlSUITE\device_support\f2833x\v133\DSP2833x_examples_ccsv4\scia_loopback

    Regards,

    Gautam