z testu RFM68:
//recovery instruction
shiftOut(DATA,CLOCK,MSBFIRST,0xff);
shiftOut(DATA,CLOCK,MSBFIRST,0xff);
shiftOut(DATA,CLOCK,MSBFIRST,0xff);
delay (10);
//send parameters
shiftOut(DATA,CLOCK,MSBFIRST,0x00); //Ox00
shiftOut(DATA,CLOCK,MSBFIRST,0x40); // DA MSB
shiftOut(DATA,CLOCK,MSBFIRST,0x28); // DA LSB
shiftOut(DATA,CLOCK,MSBFIRST,0x1C);
shiftOut(DATA,CLOCK,MSBFIRST,0x2C);
shiftOut(DATA,CLOCK,MSBFIRST,0x50);
......
void freq_space ()
{
shiftOut(DATA,CLOCK,MSBFIRST,0x1C);
shiftOut(DATA,CLOCK,MSBFIRST,0x2C);
shiftOut(DATA,CLOCK,MSBFIRST,0x4f);
}
void freq_mark ()
{
shiftOut(DATA,CLOCK,MSBFIRST,0x1C);
shiftOut(DATA,CLOCK,MSBFIRST,0x2C);
shiftOut(DATA,CLOCK,MSBFIRST,0x50);
}
//recovery instruction
shiftOut(DATA,CLOCK,MSBFIRST,0xff);
shiftOut(DATA,CLOCK,MSBFIRST,0xff);
shiftOut(DATA,CLOCK,MSBFIRST,0xff);
delay (10);
//send parameters
shiftOut(DATA,CLOCK,MSBFIRST,0x00); //Ox00
shiftOut(DATA,CLOCK,MSBFIRST,0x40); // DA MSB
shiftOut(DATA,CLOCK,MSBFIRST,0x28); // DA LSB
shiftOut(DATA,CLOCK,MSBFIRST,0x1C);
shiftOut(DATA,CLOCK,MSBFIRST,0x2C);
shiftOut(DATA,CLOCK,MSBFIRST,0x50);
......
void freq_space ()
{
shiftOut(DATA,CLOCK,MSBFIRST,0x1C);
shiftOut(DATA,CLOCK,MSBFIRST,0x2C);
shiftOut(DATA,CLOCK,MSBFIRST,0x4f);
}
void freq_mark ()
{
shiftOut(DATA,CLOCK,MSBFIRST,0x1C);
shiftOut(DATA,CLOCK,MSBFIRST,0x2C);
shiftOut(DATA,CLOCK,MSBFIRST,0x50);
}