fzhlpp:
没人理,继续代码:人家的示例代码,就修改了显示代码,然后按键测试部分代码修改了也是没反应...#include//MCU???#include//??nop?????#definenop_nop_();_nop_();_nop_();_nop_();_nop_();_nop_();//???/********************??????**********************/sbitDIO=P3^0;//??DIOsbitCLK=P3^1;//??CLKsbitSTB=P3^2;//??STB/***********************????***********************/unsignedcharKey[5]={0};//???????????constunsignedcharBCD_LABLE_ALL[]={0xbb,0x88,0x6b,0xea,0xd8,0xf2,0xf3,0xa8,0xfd,0xea};//{0xdd,0x11,0xd6,0x57,0x1b,0x4f,0xaf,0x15,0xdf,0x5f};//{0xbf,0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x00,0x01,0x03,0x07,0x0f,0x1f,0x3f,0x7f,0xff};unsignedcharBCD_LABLE_anode[16]={0};//??????????TM1628????????????????unsignedcharcmd_dis_mode=0x8f;/***************????**************/voiddelay_nms(unsignedintn){unsignedinti;while(n--)for(i=0;i8){//myflag|=0x01;cnt=cnt-9;for(i=1;i