Part Number: TMS320F2800157-Q1
Dear TI Experts,
Scenario :
1. Using below 3 GPIO pin with 6 sample input qualification :
GpioCtrlRegs.GPAQSEL1.GPIO09 = 2; /* For 6 Sample */
GpioCtrlRegs.GPAQSEL1.GPIO05 = 2; /* For 6 Sample */
GpioCtrlRegs.GPBQSEL1.GPIO45 = 2; /* For 6 Sample */
2. Applying GPxCTRL[QUALPRDn] value as below :
/* For GPIO 09 and 05 i have to select QUALPRD1 of GPACTRL reg for setting the sampling window width */
GpioCtrlRegs.GPACTRL.QUALPRD1 = 120; /* 2uSec Time between samples */
/* For GPIO45 i have to select QUALPRD1 of GPBCTRL reg for setting the sampling window width */
GpioCtrlRegs.GPBCTRL.QUALPRD1 = 120; /* 2uSec Time between samples */
3. Clock speed is 120Mhz = 8.33333333nSec
Query or Clarification Needed :
1. Is this Configuration is correct for 10uSec Sampling window width, value 120 ? Yes/No ?
- so time between (6-1) 5 sample is 2uSec each.
2. As I'm selecting GPACTRL.QUALPRD1 and GPBCTRL.QUALPRD1 reg, this regs will set sampling window width Time as 10us for all GPIOs which is assigned to GPACTRL.QUALPRD1 reg and GPBCTRL.QUALPRD1 reg.
- So, the query is ->
- This 10us time will be applied to GPIO 08 to 15 if i set 120 in GPACTRL.QUALPRD1 reg? even in GpioCtrlRegs.GPAQSEL1.GPIO0x = 2 i have selected GPIO09 and 05 as 6 sampling input qualification?
- Or This 120/10us for 6 sample is only applied to GPIO09 and GPIO05 only according to the selection of GpioCtrlRegs.GPBQSEL1.GPIO09 and GpioCtrlRegs.GPBQSEL1.GPIO05?
- Same question for GPIO40 to GPIO47,
- This 10us time will be applied to GPIO40 to GPIO47 if i set 120 in GPBCTRL.QUALPRD1 reg? even in GpioCtrlRegs.GPBQSEL1 = 2 i have selected GPIO45 as 6 sampling input qualification?
- Or This 120/10us for 6 sample is only applied to GPIO45 only according to the selection of GpioCtrlRegs.GPBQSEL1.GPIO45 ?
- And After setting the value in GPACTRL.QUALPRD1 through "GPIO_setQualificationPeriod(PINADDR, 120)", why it is showing as 60 (0x3C), half of the actual value ?

- Why GPIO_setQualificationPeriod(pin, divider); function has division divider/2 ?
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Kindly give clarification to this and please let me know if there is something wrong in my configuration for 6 sampling window width.
Thanks in advance



