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.
Tool/software:
I'm having some troubles with the configuration of the strobe latch with EQEP_setLatchMode.
EQEP_getStrobePositionLatch returns new values on both rising and falling edges for both clock-wise and counter clock-wise
1. One of my modules fully configures the EQEP module.
2. During run time - I want to use EQEP_setLatchMode to control the strobe latch mode.
3. No matter which flag I pass - there is no change.
My project is using the following SDK: ind_comms_sdk_am243x_09_01_00_03
Hi Ariel, if you can send us snipped code it might be helpful
Few things to double check
- If you're using an interrupt to trigger the latch, make sure the interrupt is being properly triggered and serviced. You can use EQEP_getInterruptStatus()
- Also, you can use EQEP_getStatus() to check status register.
More details:
AM243x MCU+ SDK: EQEP (ti.com)
AM243x MCU+ SDK: APIs for EQEP (ti.com)
thank you,
Paula
Hi Ariel, thank you, I will work on getting a setup. Which modes have you tried? what is the output you see? Have you tried AM243x MCU+ SDK: EQEP Capture (ti.com) ? if so, does it work? can you change latch mode there?
thank you,
Paula
As I recall - the API presents only 2 options for the strobe. I tried both and saw no difference in the latching method.
Hi Ariel, my apology for not coming to you earlier.
I tried AM243x MCU+ SDK: EQEP Capture. I tried from MCU+SDK, but same example is packaged inside Industrial SDK (C:\ti\ind_comms_sdk_am243x_09_01_00_03\mcu_plus_sdk\examples\drivers\eqep\eqep_capture).
Out of Box, this example uses
"EQEP_setLatchMode(gEqepBaseAddr, EQEP_LATCH_RISING_INDEX);"
which triggers App_eqepIntrISR() when GPIO_pinWriteHigh(gGpioBaseAddr, EQEP_I_GPIO_PIN);
When changing to EQEP_LATCH_FALLING_INDEX I see ISR triggers when EQEP_I_GPIO_PIN is low. I believe this is what you are trying to test, please correct me if I am wrong. But, if so, and you haven't, please take a look of this demo flow
thank you,
Paula