Guest
#4245985
Hi all, I want to increase the duty cycle slowly from 0%-50% in the period of 0-10 ms for an output signal(150KHz) generated from a clock of 50MHz. I am able to generate the output for 50%. I am not sure how to vary the duty cycle from 0-50% (between 0-10ms). Below is the code:
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 | |
28 | |
29 | |
30 | |
Thank you!