Figure 4-12 Sw2 Interrupt; Figure 4-13 Free-Run Timer Interrupt - Fujitsu FR Family FR60 Lite User Manual

32-bit microcontroller bits pot red can motor board
Hide thumbs Also See for FR Family FR60 Lite:
Table of Contents

Advertisement

When SW2 is pressed, an interrupt takes place. Around Line 763 in MAIN.C, the interrupt function
IRQ_ext_0 is invoked as shown in "Figure 4-12 SW2 interrupt". In it, the register value of
TCCSL0_STOP, which is used to start/top the free-run timer, is changed.
__interrupt void IRQ_ext_0(void)
{
(omitted)
if(gMtStatus == MTST_STOP){
}else{
}
(omitted)
}
Once the free-run timer starts running, the timer interrupt function IRQ_FreeRunComp of motor_drv.c is
invoked on every carrier peak as shown in "Figure 4-13 Free-run timer interrupt". In it, the status of the
hall elements is checked and configured into the macro.
__interrupt void IRQ_FreeRunComp(void)
{
if(TCCSH0_ICLR == 1)
{
}
}
(omitted)
TCCSL0_STOP = 0;
(omitted)
TCCSL0_STOP = 1;

Figure 4-12 SW2 interrupt

/* if OCU interrupt */
mtPWMController();
(omitted)

Figure 4-13 Free-run timer interrupt

- 77 -
←Start of the free-run timer
←Stop of the free-run timer
←Macro configuration
AN07-00180-3E

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91f267n

Table of Contents