Display with decimal point digital tube

Display with decimal point digital tube

Insert picture description here
The schematic diagram of the digital tube is as above. The corresponding numbers or characters are formed by illuminating the seven LEDs of ag. The digital tube has a common anode (the bottom level is bright) and a common cathode (the high level is bright). The number 2 in the above figure is an example :

Common anode (0 on and 1 off): DP GFEDCBA

                         1  0  1  0  0  1   0  0         = 0xA4

Common cathode (1 on and 0 off): DP GFEDCBA

                         0  1 0 1  1  0  1   1           = 0x5B

Full definition:

Insert picture description here
Code table:

Common cathode connection method without decimal point. Digital tube section code selection table:

Unsigned char code distab[16]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07, 0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71}

Common cathode connection, with decimal points. Code pipe selection table:

Unsigned char code distab[16]={0xbf,0x86,0xdb,0xcf,0xe6,0xed,0xfd,0x87,0xff,0xef,0xf7,0xfc,0xb9,0xde,0xf9,0xf1}


Common anode connection, no decimal point. Digital tube segment code selection table:
unsigned char code distab[16]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e}

The common yang connection method has a decimal point. Digital tube section code selection table:

unsigned char code distab[16]={0x40,0x79,0x24,0x30,0x19,0x12,0x02,0x78,0x00,0x10,0x08,0x03,0x46,0x21,0x06,0x0e}

Guess you like

Origin blog.csdn.net/weixin_44026026/article/details/111149006