beautypg.com

Maple Systems HMC7000 Series User Manual

Page 59

background image

HMC7000 Series I/O Module Guide

Phone: 425/745-3229 • Fax: 425/745-3429 • Email: [email protected] • www.maplesystems.com

.

1010-1043

Page 58 of 85

Rev. 02, 11/08/2013

Reference the table below when configuring each HSC Configuration Register:

Input Mode

Output Mode

Register Value

Normal Input

N/A

0

High Speed,
Single Phase,
Up Counter

Output ON when preset is reached

2

Output ON when counter is enabled,
OFF when preset is reached

258

Quadrature 1X

Output ON when preset is reached

3

Output ON when counter is enabled,
OFF when preset is reached

259

Quadrature 2X

Output ON when preset is reached

67

Output ON when counter is enabled,
OFF when preset is reached

323

Quadrature 4X

Output ON when preset is reached

131

Output ON when counter is enabled,
OFF when preset is reached

387

To implement High Speed Counter Operation:

22. Connect a device that will provide the high speed pulses to one of the four High-Speed inputs on the

expansion module.

23. Configure the HSC using the configuration register for that channel.
24. Write the HSC preset count value in the Preset register for that channel.
25. Enable the HSC by setting the HSC Enable Bit that channel.
26. HSC increments the current value register for that channel until the preset value is reached.
27. Enable the HSC Reset Bit by setting for that channel. This will cause the HSC current value to reset back

to 0.

28. 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.