40 - PWM Design in Verilog

  Рет қаралды 15,574

Anas Salah Eddin

Anas Salah Eddin

Күн бұрын

Пікірлер: 19
@donny8451
@donny8451 4 күн бұрын
Will changing the Switching Frequency, i.e Timer Value affect how long the counter will count for. I am having trouble where the counter will count to 255, but still be at 188 and switch duty cycles which causes a high. So it does not finish counting to 255 and resetting.
@user-sj9ui6ve2l
@user-sj9ui6ve2l Жыл бұрын
Should the timerbit in your code should be equal to TIMER_bit=16 ? because the resolution R is 8bit. The way you have it I am afraid might not be strict 50%duty cycle? Correct me if i am wron
@tanishksingh8443
@tanishksingh8443 2 жыл бұрын
Timer Final value is negative if we scale from 50mhz to 1 mhz
@slayvirgins2048
@slayvirgins2048 Жыл бұрын
hello! can you create a digital pwm without coding?
@saisathwik6598
@saisathwik6598 Жыл бұрын
In trinary operator (x>5 && x
@unipia
@unipia 2 жыл бұрын
Hello, I think the equation in the vid, (duty - 1) / 2^R = 0.5, is not quite right. When you solve it for 'duty', you would get 129 for duty, which should be 128.
@omarmurajia1642
@omarmurajia1642 3 жыл бұрын
How i can contact with you?
@bradleykingston551
@bradleykingston551 6 ай бұрын
very nice informative and helpful video thanks very much. Please my question is in regard to the number of counts and bits choice. Can i just decide to count to any number let say 0 to 99 in my project or is there an idea behind the number of counts to be chosen for a specific application and how is that related to the frequency?
@electronicwoe
@electronicwoe Ай бұрын
The number of counts is indeed application specific. Like he said in video 38 "PWM Main Characteristics", the count determines the resolution, i.e., how much you can subdivide the clock frequency that is controlling the PWM module. For instance, if the clock is 1KHz (period of 1ms), then a count of 10 lets you control the duty cycle in increments of 100μs. A duty of 1 means PWM output is on for 100μs and off for 900μs. A duty cycle of 6 means PWM is on for 600μs and off for 400μs. If your application needs for fine-grained control over the duty cycle, you could choose a count of 100, in which case you can control the duty cycle in increments of 10μs. As for the what the frequency of the PWM signal should be, that is dependent on what exactly the PWM signal is driving. This is an involved topic. For instance, driving an LED vs driving a brushless motor vs driving a stepper motor. The frequency you need depends on the physical properties of the device you are controlling.
@i3ellagio51
@i3ellagio51 Жыл бұрын
Hey, nice video and explanation!! Can you show us the hidden code from the timer module at 27:01 under the picture ?:D I see an assign and always block but the code is hidden :D Thank you!
@princegupta7003
@princegupta7003 Жыл бұрын
did you get the code
@i3ellagio51
@i3ellagio51 Жыл бұрын
​@@princegupta7003 no
@princegupta7003
@princegupta7003 Жыл бұрын
@@i3ellagio51 the code is not working here is the code // timer parameter module timer_input #(parameter BITS = 4)( input clk, input reset_n, input enable, input [BITS - 1:0] FINAL_VALUE, // output [BITS - 1:0] Q, output done ); reg [BITS - 1:0] Q_reg, Q_next; always @(posedge clk, negedge reset_n) begin if (~reset_n) Q_reg
@omarmurajia1642
@omarmurajia1642 3 жыл бұрын
Please answer me because I want help about PWM
@anassalaheddin1258
@anassalaheddin1258 3 жыл бұрын
What type of help?
@omarmurajia1642
@omarmurajia1642 3 жыл бұрын
@@anassalaheddin1258 i have assignment about PWM
@anassalaheddin1258
@anassalaheddin1258 3 жыл бұрын
how can I be of help?
@omarmurajia1642
@omarmurajia1642 3 жыл бұрын
I want answer this question : Design, synthesize, verify and explain behavioural functionality of a PWM generator. Using code verlog
@anassalaheddin1258
@anassalaheddin1258 3 жыл бұрын
@@omarmurajia1642 well then, you have my videos, and here is a link to the videos github.com/aseddin/ece_3300/tree/main/7%20Counters%20Applications
41 - PWM Application
10:50
Anas Salah Eddin
Рет қаралды 3,6 М.
Easy way to link Cpanel Email to your Gmail 2022
11:51
EasyZeal | Future Ibeche
Рет қаралды 28 М.
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 10 МЛН
ВОДА В СОЛО
00:20
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 32 МЛН
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,7 МЛН
Understanding Pulse Width Modulation
13:45
Rohde Schwarz
Рет қаралды 15 М.
27 - Blocking and Nonblocking Assignment
20:37
Anas Salah Eddin
Рет қаралды 4,8 М.
PWM (Pulse Width Modulation) as Fast As Possible
5:17
Techquickie
Рет қаралды 358 М.
Motor interfaces and PWM frequencies
8:44
Texas Instruments
Рет қаралды 11 М.
55 - Dealing with Buttons in Verilog Debouncing & Edge Detection
43:51
Anas Salah Eddin
Рет қаралды 6 М.
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 10 МЛН