bk2421
时间:10-02
整理:3721RD
点击:
void main()
{
uint j,temp;
DISI();
WDTC();
P5CR=0x03;
P7CR=0xf0;
ADInit();//AD初始化设置
ADCali();//调用精度校正子程序
DelayMs(50);
bk2421Init();
bk2421Init1();
bk2421Init2();
DelayMs(50);
bk2421Init3();
DelayMs(100);
while(1)
{
ADSampling();//AD采样
SendPacket(WR_TX_PLOAD,TX_BUFFER,8);
for(j=0;j<8;j++)
{
SwitchToTXMode();
while(CheckAck());
}
}
}
{
uint j,temp;
DISI();
WDTC();
P5CR=0x03;
P7CR=0xf0;
ADInit();//AD初始化设置
ADCali();//调用精度校正子程序
DelayMs(50);
bk2421Init();
bk2421Init1();
bk2421Init2();
DelayMs(50);
bk2421Init3();
DelayMs(100);
while(1)
{
ADSampling();//AD采样
SendPacket(WR_TX_PLOAD,TX_BUFFER,8);
for(j=0;j<8;j++)
{
SwitchToTXMode();
while(CheckAck());
}
}
}