Tool/software:
Hello,
This question is about the TMS320F28388D (337 bga pin) processor.
My goal is to use only internal signal routing to accomplish the following: generate an adcsoca signal from a pwm and use it as the strobe input to an eqep to latch the eqep count value on each adcsoca. I want to keep all signal routing (e.g. adcsoca from epwm to eqep) internal to the chip, thus avoid needing to configure any gpio pins.
(This part seems to work...) In the code composer studio registers window, the ETFLG.SOCA pin go high when the program starts running, so I think the adcsoca is being generated.
(This part seems to work...) In the code composer studio registers window, the eqep qposcnt value changes as expected for quadrature A and B input signals in accordance with changing input signals.
(This part does not seem to work...) The eqep qposslat register is never being populated which seems to indicate that something in the strobe latching is not working as expected.
The trm seems to indicate that if the epwm is generating the adcsoca signal, then by simply selecting it as the strobe input for the eqep, the eqep qposcnt should be latched on each occurrence of the adcsoca signal.
The eqep registers contain the following values:
QEPCTL = 0xD008
QEPSTROBESEL = 0x2
QEPSRCSEL = 0x1075
Any insight into why this doesn't work is greatly appreciated.
Thanks!