- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
7 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
check this out ! http://www.ece301.com/fpga-projects/53-pwm.html REMEMBER : google is your best friend :)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Your code will generate a wave that looks like a PWM ! To create a PWM you need a duty cycle (how often do you want to refresh your signal) : You need to know your board frequency and compute the duty of your PWM ... The link I gave you explain that ! Follow the steps and stop jumping into coding something you don't understand I recommend you read the page carefully- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1000 ns =>
P = 0.000001*50000000 = 50 SC (Steps Count) = 2^3 = 8 ==> sd = P / SC = 50/8 =6.25 but you are using sd = 20 ! Please read carefully the page (link I posted) and follow the steps ! It's not that hard !- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
what is mean by refreshing signal?? I didn't get. can't i take p=1000ns?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
by refreshing signal we mean the time we need to have a new value (period)
Yes you can take whatever period you want ! For 1000 ns P = 50 (because you multiply the 20 ns by 50 to get 1000 ns)
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