#define uchar unsigned char
#define uint unsigned int
#define FSCLK 11059200
#define Number 29
unsigned char Receive,i;
unsigned int n,flag;
unsigned char Receive_table[15];
#define RELOAD_COUNT 0xFA
sbit LED0=P0^2;
sbit DAI = P3^2;
sbit k1=P2^0;
sbit k2=P2^1;
sbit k3=P2^2;
sbit k4=P2^3;
sbit k5=P2^4;
sbit k6=P2^5;
sbit k7=P2^6;
sbit k8=P2^7;
sbit p13=P1^3;
uint speed = 0;
uchar flag_clr = 0;
uchar Table_R[8]={ 0, 0,255, 0,255,255,255,0};
uchar Table_G[8]={255, 0, 0,255, 0,255,255,0};
uchar Table_B[8]={ 0,255, 0,255,255, 0,255,0};
uchar code Table[256] = {
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,
20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,
40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,
60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,
80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,
100,101,102,103,104,105,106,107,108,109,110