beautypg.com

Maple Systems HMC7000 Series User Manual

Page 38

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 37 of 85

Rev. 02, 11/08/2013

To implement PWM Operation:

1. Configure the PWM output using the configuration register for that channel and mode.
2. Set the parameters values for the selected mode. Monitor the error flags for the parameters.
3. Enable the output by setting the Enable Output that channel.
4. HSC increments the current value register for that channel until the preset value is reached.
5. Enable the HSC Reset Bit by setting for that channel. This will cause the HSC current value to

reset back to 0.

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