Fix 7 segment display malfunction at low multiplexing rates

master
Timothy Pearson 11 years ago
parent 7997af3f4f
commit ff484b9d9c

@ -119,10 +119,10 @@ module remote_access(
//----------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------
reg [7:0] led_display_bytes [3:0]; reg [7:0] led_display_bytes [3:0];
reg [5:0] digit_blanker_1 = 0; reg [17:0] digit_blanker_1 = 0;
reg [5:0] digit_blanker_2 = 0; reg [17:0] digit_blanker_2 = 0;
reg [5:0] digit_blanker_3 = 0; reg [17:0] digit_blanker_3 = 0;
reg [5:0] digit_blanker_4 = 0; reg [17:0] digit_blanker_4 = 0;
reg [7:0] led_segment_bus_latch; reg [7:0] led_segment_bus_latch;
reg [3:0] led_digit_select_latch; reg [3:0] led_digit_select_latch;
@ -163,19 +163,19 @@ module remote_access(
digit_blanker_4 = 0; digit_blanker_4 = 0;
end end
if (digit_blanker_1 > 60) begin if (digit_blanker_1 > 128000) begin
led_display_bytes[0] = 255; led_display_bytes[0] = 255;
end end
if (digit_blanker_2 > 60) begin if (digit_blanker_2 > 128000) begin
led_display_bytes[1] = 255; led_display_bytes[1] = 255;
end end
if (digit_blanker_3 > 60) begin if (digit_blanker_3 > 128000) begin
led_display_bytes[2] = 255; led_display_bytes[2] = 255;
end end
if (digit_blanker_4 > 60) begin if (digit_blanker_4 > 128000) begin
led_display_bytes[3] = 255; led_display_bytes[3] = 255;
end end
end end

Loading…
Cancel
Save