10.01.2014 Views

RFM12B

RFM12B

RFM12B

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

}<br />

i=35;<br />

while(i--)<br />

{<br />

DelayUs(1);<br />

}<br />

}<br />

RF12B Program<br />

RF12 receiver demo:<br />

/**********************************************************<br />

copyright (c) 2006<br />

Title:<br />

RFM12A transmitter simple example based on PIC C<br />

Current version: v1.0<br />

Function:<br />

Package send Demo<br />

Processor<br />

PIC16F73 DIP-28<br />

Clock:<br />

10MHz Crystal<br />

Operate frequency: 434MHz<br />

Data rate: 4.8kbps<br />

Package size: 23byte<br />

Author:<br />

Robben<br />

Company:<br />

Hope microelectronic Co.,Ltd.<br />

Contact: +86-0755-86106557<br />

E-MAIL:<br />

hopefsk@hoperf.com<br />

Date: 2006-11-17<br />

********************************************************/<br />

#include "pic.h"<br />

typedef unsigned char uchar;<br />

typedef unsigned int uint;<br />

#define SDI<br />

#define SDO<br />

#define SCK<br />

#define nSEL<br />

#define nIRQ<br />

#define LED<br />

#define LED_OUT()<br />

#define nIRQ_IN()<br />

#define SDI_OUT()<br />

#define SDO_IN()<br />

#define SCK_OUT()<br />

#define nSEL_OUT()<br />

RB7<br />

RB6<br />

RB5<br />

RB4<br />

RB3<br />

RA0<br />

TRISA0=0<br />

TRISB3=1<br />

TRISB7=0<br />

TRISB6=1<br />

TRISB5=0<br />

TRISB4=0<br />

Tel: +86-755-82973806 Fax: +86-755-82973550 E-mail: sales@hoperf.com http://www.hoperf.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!