Other Parts Discussed in Thread: CONTROLSUITE
Tool/software: Code Composer Studio
I have the next configuration in eQEP:
{
EQep1Regs.QUPRD = 2000000; // Genera eventos periódicos de tiempo para escribir. Aprox 100Hz at 200 MHz SYSCLKOUT
EQep1Regs.QDECCTL.bit.QSRC = 00; // QEP contador en modo de cuadratura
EQep1Regs.QEPCTL.bit.FREE_SOFT = 2;
EQep1Regs.QEPCTL.bit.PCRM = 00; // Restablecimiento del contador de posición en un evento de Index
EQep1Regs.QEPCTL.bit.UTE = 1; // Habilitar temporizador de unidad
EQep1Regs.QEPCTL.bit.QCLM = 1; // Latch en la unidad de tiempo de espera
EQep1Regs.QPOSMAX = 0xffffffff;
EQep1Regs.QEPCTL.bit.QPEN = 1; // QEP habilitado
EQep1Regs.QCAPCTL.bit.UPPS = 5; // QCLK/32 para el preescalador de eventos de posición
EQep1Regs.QCAPCTL.bit.CCPS = 6; // SYSCLKOUT/64 para el preescalador del temporizador de captura de reloj del eQEP
EQep1Regs.QCAPCTL.bit.CEN = 1; // Habilitar captura eQEP
}
And I have a interrupt for ADC of 20kHz and themotor rotates at 100RPM.
I need the engine speed calculation to be done faster. How can I do it without altering the speed value?