... drivers.;;*****************************************************************btfss CCP1CON,0 ; is special event on compare enabled?return ; no - this is a BEMF measurement, let state machine handle thisbcf PIR1,CCP1IF ; clear interrupt flagmovlw ... compare at phase Tmovf CCPSaveL,w ; movwf CCPR1L ; set T lsbbcf PIR1,CCP1IF ; clear timer compare interrupt flagbsf CCP1CON,0 ; enable special event on compareincf STATE,f ; next STATEreturn ... takenbefore the motor has reacted to the adjustment, andanother speed adjustment will be made. Adjustmentscontinue to be made ahead of the motor response untileventually, the commutation time is too...