Interrupt Program Activation; Overview Of Function - Panasonic FP0H User Manual

Control unit positioning/pwm output/high-speed counter
Hide thumbs Also See for FP0H:
Table of Contents

Advertisement

High-speed Counter Function

10.5 Interrupt Program Activation

10.5.1 Overview of Function

When the elapsed value reaches the target value while the high-speed counter instruction
F165 (CAM0)/F166 (HC1S)/F167 (HC1R) is being executed, the interrupt program can be
activated.
 Execution method
• Make the setting for the high-speed counter by system registers. There is no need to make
the 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 in
the main program.
• Execute the F165 (CAM0)/F166 (HC1S)/F167 (HC1R) instruction. When the elapsed value
of the high-speed counter reaches the target value, the interrupt program is activated.
For FP0H mode
R0
R9110
R1
DF
F166 HC1S
INT0 Program
 Corresponding channel numbers and interrupt program numbers
Channel No.
CH0
CH1
CH2
CH3
(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".
10-28
ICTL
H0
K0
K10000
INT number
INT0
INT1
INT3
INT4
ICTL instruction
INT0 program
H1
execution enabled
F166 HC1S instruction
Y2
Target value match ON
R9110: CH0 control flag
K0: CH0 specified
(
ED
)
K10000: Target value
Y2: Match output set
( INT
0 )
(
IRET
)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents