![]() DOUTx.MODE of that output must be set to 26 to select the PWM signal.įor example, configuring digital output 9 to output a PWM with 50% duty cycle and 250 microsecond period: -> PWM0. Then the digital I/O is used as PWM output and must be configured as an output by setting DIOx.DIR to 1. To output the PWM signal on one of the digital outputs on the X9 connector, the X9 configuration must be set to “General Purpose I/O” by setting DRV.EMUEMODE to 10. ![]() ![]() On SynqNet drives, the additional keyword PWM0.MODE is used to give control over duty cycle and period to the fieldbus. It is used in everything from motor speed control to LED light dimming, to battery. For example, the percentage of the time the digital output is high. Pulse Width Modulation (PWM) is something almost any maker has come across. PWM0.DUTYCYCLE configures the duty cycle of the PWM signal. For example, the time between two falling or two rising edges of the PWM signal in microseconds. PWM0.PERIOD configures the periodic time. The signal is configured using the keywords PWM0.PERIOD and PWM0.DUTYCYCLE. In PWM, the time period of the square wave is kept constant and the time for which the signal remains high is varied or modulated. The X9 connector’s digital outputs (9, 10, 11) can be used to send a user-configurable PWM signal.
0 Comments
Leave a Reply. |