粘贴的时候出了些问题源程序是有code【i】的,现把程序重新粘在下面,求解。。。。。:titter:
#include
#define uchar unsigned char
#define uint unsigned int
#define WM1 P5OUT |= BIT5
#define WM0 P5OUT &=~BIT5
#define DM1 P6OUT |= BIT6
#define DM0 P6OUT &=~BIT6
uchar Code[16]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,
0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};
uchar BitCode=0x80;
void InitClock(void)
{
BCSCTL1=RSEL2+RSEL1+RSEL0;
DCOCTL =DCO2 +DCO1 +DCO0 ;
do
{
IFG1 &= ~OFIFG;
for(uint j=0;j