Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #3 from xobs/master

Re-work PWM patch
  • Loading branch information...
commit 2df2639ca7778f5e55771812a8842c17aa5525f1 2 parents f9df4c4 + f50597f
@bunnie authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  kovan1.srcs/sources_1/imports/kovan1/common/servo_pwm.v
View
2  kovan1.srcs/sources_1/imports/kovan1/common/servo_pwm.v
@@ -34,7 +34,7 @@ module servo_pwm(
end // always @ (posedge clk or posedge reset)
always @(posedge clk) begin
- if( period_cnt > pulse ) begin
+ if( (!period && !pulse) || (period_cnt > pulse) ) begin
pwm_state <= 1;
end else begin
pwm_state <= 0;
Please sign in to comment.
Something went wrong with that request. Please try again.