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.
Hello,
I had to know when eqep index event occurs for some application we are newly developing.
Currently, QEPCTL[PCRM] is set 0 : Position counter reset on an index event. Our developed system is working well.
Monitoring QEPSTS[FMFL] : First index marker flag or QFLG[IEL]: Index event latch interrupt flag could be functional
for the purpose, I thought. But unfortunately, both was not.
Does someone have any solution ?
Thanks in advance.
Yamai
Hi Yamai,
You use this interrupt, you need to enable VIM to send interrupt request of eQEP (channel 110) to CPU:
There are three "gates" before an interrupt request gets to the CPU:
Hello Wang-san,
Thanks a lots.
I have already used following 2 interrupts of eqep.
1. Unit time out interrupt (QFLG: bit 11) 2. eQEP compare match event interrupt (QFLG: bit 8)
I have to detect index event with interrupt , don't I ?
When QEPCTL[PCRM] is set 0 and QEINT[IEL] is set 1, interrupt should work ?
I will check it out tomorrow.
I am happy if there is a measure to know index event without interrupt.
But I think, index even interrupt could be disabled when it is not necessary.
Best regards,
Yamai
Hi Wang-san,
It worked, thanks, I will use interrupt to know index event.
Best regards,
Yamai