To Implement High Speed Counter Operation - Maple Systems HMC7000 Series Manual

Table of Contents

Advertisement

HMC7000 Series I/O Module Guide
High Speed Counter Operation

To implement High Speed Counter Operation:

1. Connect a device to X1 (Channel 1) or X2 (Channel 2) that will provide the high speed pulses to the
expansion module.
2. Configure for HSC mode using the configuration register MW0010 (Channel 1) or MW0020 (Channel 2).
3. Write the HSC preset count value in MW0013 (Channel 1) or MW0023 (Channel 2).
4. Enable the HSC by setting the HSC Enable Bit M00240 (Channel 1) or M00400 (Channel 2).
5. HSC increments (starting from 0) the current value register in MW0011 (Channel 1) or MW0021
(Channel 2) until the preset value is reached. Then HSC sets Y0 (Channel 1) or Y1 (Channel 2).
6. Enable the HSC Reset Bit by setting M00241 (Channel 1) or M00401 (Channel 2). Or by setting Reset Pin
X4 (Channel 1) or Reset Pin X5 (Channel 2). This will cause the HSC current value to reset back to 0 and
the output Y0 (Channel 1) or output Y1 (Channel 2) will reset (clear) to 0.
7. To start the process again, simply reset (clear) the HSC Reset Bit and set the HSC Enable Bit. Note: if the
HSC Enable Bit is still ON, you must reset (clear) this bit, and then set it again.
HMC7000 Series I/O Module Guide
76
76

Advertisement

Table of Contents
loading

Table of Contents