modify qep ,support qep index interrupt