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.

C5515 eZDSP: combining sample programs (aic3204 and CSL_UART_IntExample)

Other Parts Discussed in Thread: ADS1298

Hi,

my aim was to combine aic3204 and CSL_UART_Intexample to send serial command to the C5515 eZDSP to play tone of various frequencies and intensities.

I was able to play a tone when arbitrary character 'k' is received by the DSP. After the first tone is played, the DSP serial RX line is receiving the next commands just fine but the TX line seems to stop working.

After debugging and commenting the codes that might affect the TX line, I found 

SYS_EXBUSSEL = 0x6100;         // Enable I2C bus

in aic3204_test.c seems to be the problem. when I commented it, the TX line has no problem sending characters.

Thanks for your help in advance.

  • Where you get the aic3204_test,c from? Which register address is that line of code accesses?
    Regards.
  • I wanted to play a tone using the serial command and hence I decided to use the aic3204 test.c  to use. But , theres an error in the TX where it stops transmitting once the tone is heard on the J4. (jack)

    Could you please help me out with this please.

    Thanks a lot in advance. 

  • Hi Steve,

    Here is just small chunk of the code. 

    Int16 AIC3204_rget( Uint16 regnum, Uint16* regval )
    {
    Int16 retcode = 0;
    Uint8 cmd[2];

    cmd[0] = regnum & 0x007F; // 7-bit Register Address
    cmd[1] = 0;

    retcode |= USBSTK5515_I2C_write( AIC3204_I2C_ADDR, cmd, 1 );
    retcode |= USBSTK5515_I2C_read( AIC3204_I2C_ADDR, cmd, 1 );

    *regval = cmd[0];
    USBSTK5515_wait( 10 );
    return retcode;
    }

  • Is this code from C55 CSL? Is that register a C55 register?Regards.
  • Hi Steve,
    Thanks a lot for the reply. Yes, It is from the CSL examples. I have added both UART int example and AIC3204 to send a serial command to the EZDSP C5515 and play a tone with that command.

    Regards,
    Nishad.
  • SYS_EXBUSSEL = 0x6100; configures the pin muxing of the DSP IO lines for different peripherals. You need to configure this register based on the system needs. UART lines are enabled using PPMODE configuration of this register. Setting the PPMODE to 6 blocks the UART lines which is the reason for UART Tx not working (Wondering how Rx is working!).

    Check the section 3.6.1 External Bus Selection Register (EBSR) in C5515 user guide tms320c5515.pdf for more details 

    You may try using mode 4 for enabling UART.

    - Pratap.

  • Hi Pratap,

    Thanks heaps for the reply. I will try by changing the mode to enable the UART.

    Regards,

    Nishad.  

  • Hi Pratap,
    I have got that fixed and its working. But after couple of minutes when I was trying to use it again I got this error.

    Tag_Memory_Model attribute value of "2" that is different than one
    previously seen ("1"); combining incompatible files

    >> Compilation failure
    gmake: *** [CSL_UART_IntExample.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    Thanks,
    Nishad.
  • Hello pratap and all,

    I am trying yo interface ADS1298 with C5515EVM . The objective is to acquire signal information and store it.
    i have run the required CSL examples for my project that shall be of importance.
    The path flow and my objectives::::::::::
    1. Use ECG_nonBIOS.pjt application for obtaining the code for ADS1298 interface.
    2. Use RTC example from CSL library....... for CCS v6.X ............... CSL_RTC_Example_OUT to run the rtc and obtain the current time and date..
    3. Use MMCSD example from CSL library ........... for CCS v6.X............. CSL_MMCSD_SdCardExample_Out to write data into SD card.( Suggest an alternative example from the same library folder of examples, as this doesnt make it into a readable by the operating system)
    4. Use LCD example from CSL Library........ for CCS v6.X ........... CSL_LCDC_TextdispalyExmaple_Out to write strings using "draw_string" on the LCD display provided on the board.

    whilst the above CSL examples are running independently, i would like to combine the three to achieve he following::::::::::::
    Use the time and date generated by the RTC every second to display it on ------------->>LCD, while at the same time store the------>> RTC date and time every second on the -------------->>SD card.
    i would require to combine the three so as to achieve the desired objective.
    I request you to please guide me in combining the three examples into one and achieve the result at the earliest.

    thank you


    regards

    balasubramanya