#include <reg52.h>
/*******************************************************/
typedef unsigned int uInt16;
typedef unsigned char uChar8;
/*******************************************************/
uChar8 code table[]=
{0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe,0xff,0xff,0x00,0x00,0x55,0x55,0xaa,0xaa};
/*******************************************************/
void DelayMS(uInt16 ValMS)
{
uInt16 uiVal,ujVal;
for(uiVal=0;uiVal<ValMS;uiVal++)
for(ujVal=0;ujVal<113;ujVal++);
}
/*******************************************************/
void main(void)
{
int i; //循环变量
while(1)
{for(i=0;i<16;i++){P2=table[i];DelayMS(300);}}
}