HMC7000 Series I/O Module Guide
59
HMC7000 Series I/O Module Guide
59
Total Pulses Reached
MWnn49_0
ON when Total Pulses have been
sent
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.