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.

TMS320F28335: TMS320F28335 Qualification Period

Part Number: TMS320F28335

Hi,

I am using TMS320F28335 and I need some clarification about qualification period settings.

I set the qualification period to 0xFF as follows.

GpioCtrlRegs.GPACTRL.bit.QUALPRD3 = 0xFF; //set sampling period

Question

I understand that QUALPRD3 settings affects  GPIO24-GPIO31, if I set the qualification window to 0 for GPIO24 as 

GpioCtrlRegs.GPAQSEL2.bit.GPIO24 = 0;

Will GPIO24 affected by 0xFF settings of QUALPRD or will it use ONE SINGLE cycle of SYSCLOCKOUT?

Best Regards,

Zaw Htoo

 

  • Hi Zaw,

    Zaw Htoo said:
    Will GPIO24 affected by 0xFF settings of QUALPRD or will it use ONE SINGLE cycle of SYSCLOCKOUT?

    You can refer the below computations:

    You can find the above data in SysCtrl and Interrupts User guide SPRUFB0D.

    Regards,

    Gautam

  • Hi,

    Thanks for the reply. I asked a wrong question. Here is what I actually wanted to ask.

    I want ONLY GPIO26 to be affected by QUALPRD. However, according to the document, if I set QUALPRD3 a value, this value affects NOT ONLY GPIO26 BUT ALSO other gpios GPIO24-GPIO31.

    If I only want GPIO26 to have only this QUALPRD value, how should I do it? 

    Setting like the followings make all other GPIOs not taking the value of QUALPRD?

    GpioCtrlRegs.GPAQSEL2.bit.GPIO24 = 0; // setting zero for qual window will not take QUAL PRD value?

    GpioCtrlRegs.GPAQSEL2.bit.GPIO25 = 0; // setting zero for qual window will not take QUAL PRD value?

    GpioCtrlRegs.GPAQSEL2.bit.GPIO26 = 2; // This will definitely MAKE USE of QUAL PRD value with 6 samples!!

    GpioCtrlRegs.GPAQSEL2.bit.GPIO27 = 0; // setting zero for qual window will not take QUAL PRD value?

    GpioCtrlRegs.GPAQSEL2.bit.GPIO28 = 0; // setting zero for qual window will not take QUAL PRD value?

    GpioCtrlRegs.GPAQSEL2.bit.GPIO29 = 0; // setting zero for qual window will not take QUAL PRD value?

    GpioCtrlRegs.GPAQSEL2.bit.GPIO30 = 0; // setting zero for qual window will not take QUAL PRD value?

    GpioCtrlRegs.GPAQSEL2.bit.GPIO31 = 0; // setting zero for qual window will not take QUAL PRD value?

    Best Regards,

    Zaw Htoo

  • Hi Zaw,

    Your understanding is correct.

    QUALPRD sets the qualification time between samples for a group of GPIOs. 
    QSEL determines whether a specific GPIO uses qualification & if so, how many samples to use.


    Thank you,
    Brett