High-speed Counter Function10-2810.5 Interrupt Program Activation10.5.1 Overview of FunctionWhen the elapsed value reaches the target value while the high-speed counter instructionF165 (CAM0)/F166 (HC1S)/F167 (HC1R) is being executed, the interrupt program can beactivated. Execution method• Make the setting for the high-speed counter by system registers. There is no need to makethe setting of interrupt input.• Describe the interrupt program as a sub program.• Allow the execution of a corresponding interrupt program number by the ICTL instruction inthe main program.• Execute the F165 (CAM0)/F166 (HC1S)/F167 (HC1R) instruction. When the elapsed valueof the high-speed counter reaches the target value, the interrupt program is activated.For FP0H mode( ED )( INT 0 )( IRET )INT0 ProgramF166 HC1S instructionTarget value match ONR9110: CH0 control flagK0: CH0 specifiedK10000: Target valueY2: Match output setICTL instructionINT0 programexecution enabledR0H0ICTL H1R1K10000K0F166 HC1S Y2( )DFR9110 Corresponding channel numbers and interrupt program numbersChannel No. INT numberCH0 INT0CH1 INT1CH2 INT3CH3 INT4(Note): The allocations of control active flags and elapsed value areas for the FPΣ mode are different.For details of the allocation of flags, refer to "12.2.4 When Using High-speed Counter Function".