Maple Systems HMC7000 Series User Manual
Page 27

HMC7000 Series I/O Module Guide
Phone: 425/745-3229 • Fax: 425/745-3429 • Email: [email protected] • www.maplesystems.com
.
1010-1043
Page 26 of 85
Rev. 02, 11/08/2013
To implement High Speed Counter Operation:
1. Connect a device to X0 (Channel 1) or X5 (Channel 2) that will provide the high speed pulses to
the expansion module.
2. Configure the HSC using the configuration register MWnn00 (Channel 1) or MWnn06 (Channel
2).
3. Write the HSC preset count value in MWnn03 (Channel 1) or MWnn09 (Channel 2).
4. Enable the HSC by setting the HSC Enable Bit Mnn080 (Channel 1) or Mnn176 (Channel 2).
5. HSC increments (starting from 0) the current value register in MWnn01 (Channel 1) or MWnn07
(Channel 2) until the preset value is reached.
6. Enable the HSC Reset Bit by setting Mnn081 (Channel 1) or Mnn177 (Channel 2). This will
cause the HSC current value to reset back 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.