Cpm1/Cpm1A Interrupt Functions; Types Of Interrupts - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

PC Setup
Programming
2-3

CPM1/CPM1A Interrupt Functions

2-3-1 Types of Interrupts

Interrupt Priority
15
DM 6628
0
0
Specifies bit 00003 as an interrupt input (counter mode). Inputs
00004 to 00006 are used as ordinary inputs.
ON for 1 cycle at beginning
of operation
This section explains the settings and methods for using the CPM1/CPM1A in-
terrupt functions.
The CPM1/CPM1A has three types of interrupt processing, as outlined below.
Input Interrupts
CPM1/CPM1A PCs have two or four interrupt inputs. Interrupt processing is
executed when one of these inputs is turned ON from an external source.
Interval Timer Interrupts
Interrupt processing is executed by an interval timer with a precision of 0.1 ms.
High-speed Counter Interrupts
The high-speed counter counts pulse inputs to one of CPU bits 00000 to 00002.
Interrupt processing is executed when the count reaches the set value of a built-
in high-speed counter.
When an interrupt is generated, the specified interrupt processing routine is
executed. Interrupts have the following priority ranking.
Input interrupts > Interval interrupts = High-speed counter interrupts
When an interrupt with a higher priority is received during interrupt processing,
the current processes will be stopped and the newly received interrupt will be
processed instead. After that routine has been completely executed, then pro-
cessing of the previous interrupt will be resumed.
When an interrupt with a lower or equal priority is received during interrupt pro-
cessing, then the newly received interrupt will be processed as soon as the rou-
tine currently being processed has been completely executed.
0
0
1
Clears Increment Area (DM 0000).
Decrement counter setting
Counter SV: 64 Hex (100 times)
Stores SV in word 240.
Starts counter with bit 00003 as interrupt input
(89)
(counter mode).
Refreshes counter SV (decrement counter).
Always 000.
Specifies bit 00003. (Others are masked.)
Executed one time when count is up.
Section
2-3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Srm-v2Cpm1aCpm2aSrm1Cpm2c

Table of Contents