- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I got a task to generate 16 bit pwm register on fpga. register which should be able to generate pwm with different frequency and duty cycles. ANYBODY help me by providing some links and datas which could give me a good start. Thank YouLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Hi, I got a task to generate 16 bit pwm register on fpga. register which should be able to generate pwm with different frequency and duty cycles. ANYBODY help me by providing some links and datas which could give me a good start. Thank You --- Quote End --- just thought of this: if you use 16bit register to accumulate inc1, inc2 and flip logic of an output at overflow then assuming your ratio is a/b: inc1 = a/(a+b) *2^16*2*2*f/clk inc2 = b/(a+b)*2^16*2*2*f/clk you add inc1 till overflow then add inc2 till overflow and flip at each overflow. but check my equations are right.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page