Industrial Electronics Class B Project – Music Box Circuit

  Industrial Electronics Class B  – Introduction to the Music Box Circuit 01. Materials List 02. Exam Question Result Image Other Circuits 01. Digital Electronics Class B  – Question 1: 4-Digit Display Device 02. Digital Electronics Class B  – Question 2: Keypad Input Display Device 03. Digital Electronics Class B Extend Project  – Digital Clock 04. Computer Hardware Maintenance Class B  – Station 1: Bluetooth Debugging Board Writer: Roy Yan

Digital Electronics Class B Project – Keypad Display Device

Introduction to the Digital Electronics Class B  Exam Qestion 1

01. Materials List

    (1)Sub Board

        01.CPLD Sub Board PCB

        02.4.7kΩ SMD Resistor

        03.1kΩ SMD Resistor

        04.220Ω SMD Resistor

        05.10uF SMD Capacitor

        06.1uF SMD Capacitor

        07.CPLD IC Socket

        08.Quartz Crystal Socket

        09.SMD LED

        10.J TagSocket

        11.15-Pin Male Header

        12.EPM3064PLACC44-10 IC

        13.Quartz Crystal

        14.Jump Pins

    (2)Main Board

        01.Main Board PCB

        02.220Ω Resistor

        03.2.2kΩ Resistor

        04.15-Pin Female Header

        05.7-Pin Female Header

        06.7-Segment Display (Common Anode)

        07.3*4 Keypad

        08.Plastic Standoffs

02. Exam Numbers and Titles

    Question 1: 4-Digit Display Device

    Question 2: Keypad Input Display Device

03. Verilog Program Code

module CPLD_B_K_11700_2(

input clk,

output reg [6:0]s,

output reg [3:0]R,

input [2:0]C);

always @ (posedge clk) 

case (R)

4'b0001:begin R <= 4'b0010;

if(C==3'b001) s <= 7'b1111001; // show number ' 1 '

if(C==3'b010) s <= 7'b0100100; // show number ' 2 '

if(C==3'b100) s <= 7'b0110000;end // show number ' 3 '

4'b0010:begin R <= 4'b0100;

if(C==3'b001) s <= 7'b0011001; // show number ' 4 '

if(C==3'b010) s <= 7'b0010010; // show number ' 5 '

if(C==3'b100) s <= 7'b0000010;end // show number ' 6 '

4'b0100:begin R <= 4'b1000;

if(C==3'b001) s <= 7'b1111000; // show number ' 7 '

if(C==3'b010) s <= 7'b0000000; // show number ' 8 '

if(C==3'b100) s <= 7'b0010000;end // show number ' 9 '

default:begin R <= 4'b0001;

if(C==3'b001) s <= 7'b0011110; // show number ' 1 '

if(C==3'b010) s <= 7'b1000000; // show number ' 2 '

if(C==3'b100) s <= 7'b0111100;end // show number ' 3 '

endcase

endmodule

Exam Question Result Image

Other Circuits

Computer Hardware Maintenance Class B – Station 1: Bluetooth Debugging Board

Writer: Roy Yan

Comments

Popular posts from this blog

Project Competition: Start with English, Aim for Greatness

Computer Hardware Maintenance Class B– Station 1: Bluetooth Debugging Board

Digital Electronics Class B Extend Project – Digital Clock