共阴型数码管字形码(二进制和十六进制)

1. 共阴型数码管,数码管显示0-f对应的段选输出信号(二进制)

parameter          NUM0 = 8'b0011_1111,
                NUM1 = 8'b0000_0110,    
                NUM2 = 8'b0101_1011,    
                NUM3 = 8'b0100_1111,    
                NUM4 = 8'b0110_0110,    
                NUM5 = 8'b0110_1101,    
                NUM6 = 8'b0111_1101,    
                NUM7 = 8'b0000_0111,    
                NUM8 = 8'b0111_1111,    
                NUM9 = 8'b0110_1111,
                NUMA = 8'b0111_0111,
                NUMB = 8'b0111_1100,
                NUMC = 8'b0011_1001,
                NUMD = 8'b0101_1110,
                NUME = 8'b0111_1001,
                NUMF = 8'b0111_0001;

2. 共阴型数码管,数码管显示0-f对应的段选输出信号(十六进制)

 1 parameter         NUM0 = 8'h3f,
 2                 NUM1 = 8'h06,    
 3                 NUM2 = 8'h5b,    
 4                 NUM3 = 8'h4f,    
 5                 NUM4 = 8'h66,    
 6                 NUM5 = 8'h6d,    
 7                 NUM6 = 8'h7d,    
 8                 NUM7 = 8'h07,    
 9                 NUM8 = 8'h7f,    
10                 NUM9 = 8'h6f,
11                 NUMA = 8'h77,
12                 NUMB = 8'h7c,
13                 NUMC = 8'h39,
14                 NUMD = 8'h5e,
15                 NUME = 8'h79,
16                 NUMF = 8'h71;

 

posted @ 2021-07-23 20:58  豌豆茶  阅读(3085)  评论(0编辑  收藏  举报