#include
unsigned char code table[10]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,};// 显现数值表0-9
void main (void)
{
{
case 0xff:P0=table[0];break; //0xfe=1111 1110
case 0xfe:P0=table[1];break; //0xfe=1111 1110
case 0xfd:P0=table[2];break; //0xfd=1111 1101
case 0xfb:P0=table[3];break; //0xfb=1111 1011
case 0xf7:P0=table[4];break; //0xf7=1111 0111
}