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

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

 1     parameter       NUM0 = 8'b1100_0000,
 2                     NUM1 = 8'b1111_1001,    
 3                     NUM2 = 8'b1010_0100,    
 4                     NUM3 = 8'b1011_0000,    
 5                     NUM4 = 8'b1001_1001,    
 6                     NUM5 = 8'b1001_0010,    
 7                     NUM6 = 8'b1000_0010,    
 8                     NUM7 = 8'b1111_1000,    
 9                     NUM8 = 8'b1000_0000,    
10                     NUM9 = 8'b1001_0000,
11                     NUMA = 8'b1000_1000,
12                     NUMB = 8'b1000_0011,
13                     NUMC = 8'b1100_0110,
14                     NUMD = 8'b1010_0001,
15                     NUME = 8'b1000_0110,
16                     NUMF = 8'b1000_1110;

 

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

 1     parameter     NUM0 = 8'hc0,
 2                     NUM1 = 8'hf9,    
 3                     NUM2 = 8'ha4,    
 4                     NUM3 = 8'hb0,    
 5                     NUM4 = 8'h99,    
 6                     NUM5 = 8'h92,    
 7                     NUM6 = 8'h82,    
 8                     NUM7 = 8'hf8,    
 9                     NUM8 = 8'h80,    
10                     NUM9 = 8'h90,
11                     NUMA = 8'h88,
12                     NUMB = 8'h83,
13                     NUMC = 8'hc6,
14                     NUMD = 8'ha1,
15                     NUME = 8'h86,
16                     NUMF = 8'h8e;

 

posted @ 2021-07-23 21:09  豌豆茶  阅读(3718)  评论(0编辑  收藏  举报