RFM12B
RFM12B
RFM12B
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
*/<br />
RF12B Program<br />
#include <br />
#define DDR_IN 0<br />
#define DDR_OUT 1<br />
#define PORT_SEL<br />
#define PIN_SEL<br />
#define DDR_SEL<br />
PORTB<br />
PINB<br />
DDRB<br />
#define PORT_SDI<br />
#define PIN_SDI<br />
#define DDR_SDI<br />
PORTB<br />
PINB<br />
DDRB<br />
#define PORT_SCK<br />
#define PIN_SCK<br />
#define DDR_SCK<br />
PORTB<br />
PINB<br />
DDRB<br />
#define PORT_SDO<br />
#define PIN_SDO<br />
#define DDR_SDO<br />
PORTB<br />
PINB<br />
DDRB<br />
#define PORT_DATA<br />
#define PIN_DATA<br />
#define DDR_DATA<br />
PORTD<br />
PIND<br />
DDRD<br />
#define PB7 7//--\<br />
#define PB6 6// |<br />
#define RFXX_SCK 5// |<br />
#define RFXX_SDO 4// |RF_PORT<br />
#define RFXX_SDI 3// |<br />
#define RFXX_SEL 2// |<br />
#define NC 1// |<br />
#define PB0 0//--/<br />
#define SEL_OUTPUT()<br />
#define HI_SEL()<br />
#define LOW_SEL()<br />
DDR_SEL |= (1