For using the interruptor during PWM output.

Hi guys.
I needs some question about using the interrput during pwm out.
I'm using 5phase stepping motor with driver.
My driver require pulse with 50% dutyrate.
So i asked some help and got some codes.
And i modified some for mine.
code is for Two PWM 0~3Mhz Output with 4 interrupt
Ra stepping motro has two.
First interrupt for counting Low to High. <- to know how many steps and rotate. Also PWM is out at pin 39
Second interrupt for checking rotation direction change.
Dec stepping motor works same.
As i know that interrput's maximum speed is 1us.
For the way interrupts operate, they temporarily stop the program to return to the original function after the ISR has been invoked.
If interrupt is active what happen to pwm output pulse?
is it stop or just generating pulse.
Does the code can run what i expected?
One sentence summary:Is it no matter using interrupts to pin 39 and 41 which is generating pulse 0~3Mhz with 50% duty rates?

void sethz(int num,unsigned int hz){
 PWM->PWM_CH_NUM[num].PWM_CPRD=(3000000/hz);
 PWM->PWM_CH_NUM[num].PWM_CDTY = (3000000/hz)/2;
} 
struct SteppingMotor{
int P_CW;
int P_CCW;
boolean Dir;//CW:true CCW:false
double Counter;
};
SteppingMotor Ra={39,0,true,0};
SteppingMotor Dec={41,0,true,0};
void ISR1(){
  if(Ra.Dir==true)
   Ra.Counter+=0.0001;
 if(Ra.Dir==false)
Ra.Counter-=0.0001;
}
void ISR2(){
  if(Dec.Dir==true)
   Dec.Counter+=0.0001;
 if(Dec.Dir==false)
Dec.Counter-=0.0001;
}
void ISR3(){
Ra.Dir=!Ra.Dir;
}
void ISR4(){
Dec.Dir=!Dec.Dir;
}
void setup () {
  
  PWM_Init();
​//RA 축 모터 
  attachInterrupt(Ra.P_CW,ISR1,RISING);//attatched interrupt for counting high pulse
  attachInterrupt(Ra.P_CCW,ISR3,CHANGE);//attatched interrupt for checking direction is not changed
//DEC 축 모터
  attachInterrupt(Dec.P_CW,ISR2,RISING);//attatched interrupt for counting high pulse
  attachInterrupt(Dec.P_CCW,ISR4,CHANGE);//attatched interrupt for checking direction is not changed
}

void loop() {
 
  // will do : update frequency with sethz() and control steppingmotor rpm
  //
  
}
 
void PWM_Init() {
  // PWM Set-up on pins PC7 and PA20 (Arduino Pins 39(PWMH2) : see Datasheet chap. 38.5.1 page 973
  PMC->PMC_PCER1 |= PMC_PCER1_PID36;                    // PWM power ON
  PWM->PWM_DIS = PWM_DIS_CHID2;                         // Disable PWM channel 2
  PWM->PWM_DIS = PWM_DIS_CHID3;                         // Disable PWM channel 3
  // Select Instance=PWM; Signal=PWMH2 (channel 2); I/O Line=PC7 (P7, Arduino pin 39, see pinout diagram) ; Peripheral type B
  PIOC->PIO_PDR |= PIO_PDR_P7;                          // Set the pin to the peripheral PWM, not the GPIO
  PIOC->PIO_ABSR |= PIO_PC7B_PWMH2;                     // Set PWM pin perhipheral type B
  //  Select Intancd=PWMl Signal=PWMH3 (channel 2); I/O LIne=PC9 (P9, Arduino pin 41, see pinout diagram) ; Peripheral type B
  //Added by me for generate another pulse
  PIOC->PIO_PDR |= PIO_PDR_P9;                          // Set the pin to the peripheral PWM, not the GPIO
  PIOC->PIO_ABSR |= PIO_PC9B_PWMH3;                     // Set PWM pin perhipheral type B
  
  PWM->PWM_CLK = PWM_CLK_PREB(0) | PWM_CLK_DIVB(28);    // Set the PWM clock rate to 3MHz (84MHz/28).
  PWM->PWM_CH_NUM[2].PWM_CMR = PWM_CMR_CPRE_CLKB;       // clock source as CLKB on channel 2, waveform left aligned
  //Added by me
  PWM->PWM_CH_NUM[3].PWM_CMR = PWM_CMR_CPRE_CLKB;       // clock source as CLKB on channel 3, waveform left aligned
 
  PWM->PWM_CH_NUM[2].PWM_CPRD = 0;                   // Channel 2 : Set the PWM frequency 3MHz/CPRD = 0 ;motor stopped when starting
  PWM->PWM_CH_NUM[2].PWM_CDTY = 0;                    // Channel 2: Set the PWM duty cycle to 0%= (CDTY/ CPRD)  * 100 % ; to start 0
  //Added by me for another pulse out
  PWM->PWM_CH_NUM[3].PWM_CPRD = 0;                   // Channel 3 : Set the PWM frequency 3MHz/CPRD = 0Hz ;motor stopped when starting
  PWM->PWM_CH_NUM[3].PWM_CDTY = 0;                    // Channel 3: Set the PWM duty cycle to 0%= (CDTY/ CPRD)  * 100 % ;
 
  PWM->PWM_IER1 = PWM_IER1_CHID2;                       // Interrupt on Channel 2 Counter match
  //Added by me for channel 3
  PWM->PWM_IER1 = PWM_IER1_CHID3;                       // Interrupt on Channel 3 Counter match
  NVIC_EnableIRQ(PWM_IRQn);                             // Enable interrupt
 
  PWM->PWM_ENA = PWM_ENA_CHID2;                         // Enable PWM Channel 2
  //Added by me
  PWM->PWM_ENA = PWM_ENA_CHID3;                         // Enable PWM Channel 3
}