
RF12 Program V1.1
Tel: +86-755-82973805 Fax: +86-755-82973550 E-mail: [email protected] http://www.hoperf.com
CK=1;
NOP();
uint CMD )
6;
=0;
&0x8000)
Write0();
MD<<1;
CK=0;
nSEL=1;
WriteFSKbyte( uchar DATA )
A;
0;
1;
//Polling SDO
NOP();
NOP();
NOP();
NOP();
NOP();
NOP();
NOP();
NOP();
NOP();
NOP();
NOP();
NOP();
S
}
void WriteCMD(
{
uchar n=1
SCK=0;
nSEL
while(n--)
{
if(CMD
Write1();
else
CMD=C
}
S
}
void
{
uchar RGIT=0;
uint temp=0xB800;
temp|=DAT
Loop: SCK=
nSEL=0;
SDI=0;
SCK=
if(SDO)