keil4出现目标未被创建,keil 目标未创建

#include

#include"RLCTest.h"

union count

{

struct clockTwo

{

unsigned char clockH;

unsigned char clockL;

}clockTwo;

unsigned int clock;

}count; //定义频率字

unsigned char code disdata[16]={0xc0,0xf9,0xa4,0xb0,0x99,

0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e}; unsigned char data dismem[8];

//定义LED显示频段

-----------------------------------------

系统初始化

void init(void)

{

stateR=0;testR=1;

stateC=1;testC=0;

stateL=1;testL=0;

largeR=1;smallR=0;

largeC=1;smallC=0;

}

void delay4us(unsigned int time)

{

while(--time);

}

void delay2us(unsigned char time)

{

while(--time);

}

void inittime(void)

{

TMOD=0x15;//C/T 0 为计数器,用于频率计数。C/T 1 为定时器。用于动态显示

TH1=0xF8;//timer1=2ms

TL1=0x2f;

ET1=1;

EA=1;

TR1=1;

TR0=1;

ET0=1;

///timer 2

T2CON=0x04;

T2MOD=0x00;

TH2=0x3C;

TL2=0xB0;

RCAP2H=0x3C;

RCAP2L=0xB0;

TR2=1;

ET2=1;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值