I can get right value when I chose QDEC_SAMPLEPER_SAMPLEPER_512us in slow application ,but in my application my max data rate is more than 2k, so the QDEC value is less than right data.so I change the SAMPLEPER to QDEC_SAMPLEPER_SAMPLEPER_256us .I can not get value and any interrupt include SAMPLERDY, REPORTRDY, ACCOF ( chose QDEC_SAMPLEPER_SAMPLEPER_512us ,they are good ).I do not know the reason