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.

DSP/BIOS configuration questions

Hi,

I'm currently working on one of my projects on the TMS320C6713 DSK on Code Composer Studio v3.3 and I want to make some of the functions functionnal by using the DSP/BIOS configuration files. Until now, I made the interrupts with the configuration file and I want to do the same with the the general purpose Input/output and a timer. I am currently using registers to set them:

    intTemp = *(unsigned int *)GPEN;
    intTemp = intTemp|0x07B;
    *(unsigned int*)GPEN = intTemp;         //Active le GPIO 3(la pin 15 sur le connecteur HPI) (activating GPIO)

    intTemp = *(unsigned int *)GPDIR;
    intTemp = intTemp & 0xFFFFFFFF;
    intTemp = intTemp | 0x0000000B;            //Sélectionne la pin 3 comme sortie (choosing input/output settings)
    *(unsigned int*)GPDIR = intTemp;

    *(unsigned int *) PRD1 = 3516;          // On configure le timer1 à 8 KHz (8KHz timer)

    *(unsigned int *) CTL1 = 0x3C7;            // Configure le timer1 en osc interne (Sortira sur la pin 49 du connecteur EPI) (Timer output)

(Just a part of the code)

I would like to know if it is possible to select the general purpose input/output and code a timer with its output. And if its possible, does it makes my code cleaner? And if someone has already done it, could he show me how he did it?

I am reading through the DSP/BIOS user guide, but I dont see any good example to back me up on this.

Thank you for your time,

Vincent

  • Vincent,

    With apologies, I do not understand what you want to do. I understand that you have used DSP/BIOS in the past and have used interrupts, and now you want to do something with GPIOs and you want to do something with Timer1.

    Timer1 is set for an 8kHz rate, but what is the relationship between the timer and the GPIOs and interrupts?

    Regards,
    RandyP

  • Hi Randy,

    I am sorry if my message was confusing. I should have made it smaller. i'll get straight to the point.

    I want to know, with the DSP/BIOS configuration file, if it is possible to configure the GPIOs and the timer (or a part of them). I would like to have good examples of dsp/bios configuration files too, if possible.

    I can't be more simple than this.

    Thanks for the help,

    Vincent

  • Vincent,

    Thank you. This resolves my questions.

    No, you cannot use DSP/BIOS 5.xx to configure peripherals. This is done with CSL to be cleaner and to be closer to portable than direct register writes. I may be wrong about the exact version when this was removed, but I think it was when we moved to CCS v3.x.

    You can configure interrupts in DSP/BIOS and associate them with an ISR.

    Regards,
    RandyP

  • Thank you Randy for the quick answer. I will take note of this for  the future.