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.

Problem on program the 6678 DSP

I am a new guy to DSP ,And I am doing my design with TMDSEVM6678L, I read the EMIF16 User Guide , I got some idea of the registor configuration to make the port run. But I don't know the exact program code or functions, to control the EMIF16 registers(or make my ideas come true).

I watch the TI-RTOS workshop videos,read several simple source files of the workshop labs.I am aware of some basic knowledge of programming. So I can understand the basic structure of the program in workshop labs. But when it comes to some instructs specific to registers, I/O ports, I am totally confused about them.

For example, In TI-RTOS workshop lab 04, source file "main.c", subroutine called "ledToggle":

Functions like this: "CSL_FINS(gpioRegs->BANK[0].OUT_DATA,GPIO_OUT_DATA_OUT9,1);".    I cannot understand them at all !!!  I think it has some relationship about something called "API" or "LLD".  

I think I lack some specific knowledge and I could not find some proper material to learn from.  What workshop , course, material or documents should I take to meet the gap??? Please help me out!

Thank you

Regards

Fantastone

  • Hi Fantastone,

    Functions like this: "CSL_FINS(gpioRegs->BANK[0].OUT_DATA,GPIO_OUT_DATA_OUT9,1);". I cannot understand them at all !!! I think it has some relationship about something called "API" or "LLD".

    This functions starts CSL are part of CSL(Chip Select Libs) available under PDK directory. Please find the doxygen generated document available for API documentation.

    PATH: ~\ti\pdk_C6678_1_1_2_6\packages\ti\csl\docs

    The function specified above is part of cslr.h

    /* the Field INSert macro */
    
    #define CSL_FINS(reg, PER_REG_FIELD, val) \
    ((reg) = ((reg) & ~CSL_##PER_REG_FIELD##_MASK) \
    | CSL_FMK(PER_REG_FIELD, val))
    
    

    Thank you.

  • Hi Raja,
    Thank you ! I am searching the path ~ti\pdk_C6678_1_1_2_5\packages\ti\csl
    I found the header file named "cslr_emif16.h" , but I only got html file abuout EMIF4F in the path ~C:\ti\pdk_C6678_1_1_2_5\packages\ti\csl\docs\doxygen\html. So where can I find the explanation about EMIF16 header files?
    Thank you
    Regards
    Fantastone
  • Hi Fantastone,

    We do not have any other resources to understand the code. Also you can refer the EMIF user guide. Thank you.
  • Thanks a lot for your advice. ~^_^~