
The module takes in a speed selection input and pulse duration then changes the frequency of the electrical impulses being generated. This project just demonstrates how a digital method can control the pulses through a PWM generator however in reality TENs devices are complicated and involve many more components outside of a digital pulse controller. The design involves an input signal to set the speed to high low and the mode to continuous or burst mode. Leaving the mode on continuous means the output will behave like and expected PWM_generator with the same frequency as selected and no interruptions between cycles. However selecting burst mode masks the pulse in an envelope producing a burst of pulses for 200ms and pausing for 800ms.
The output of the PWM signal is expected to be 150Hz on high speed and 10 Hz on low speed.
The output of the design is a PWM signal so an oscilloscope is necessary to view the output on uo_out[0]
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | Duty Ratio bit 0 | pwm_out | SPEED_SEL |
| 1 | Duty Ratio bit 1 | MODE SEL | |
| 2 | Duty Ratio bit 2 | ||
| 3 | Duty Ratio bit 3 | ||
| 4 | Duty Ratio bit 4 | ||
| 5 | Duty Ratio bit 5 | ||
| 6 | Duty Ratio bit 6 | ||
| 7 | Duty Ratio bit 7 |