English
Language : 

TRW-24C Datasheet, PDF (12/24 Pages) List of Unclassifed Manufacturers – Wireless Low Cost 2.4GHz Hi Power +19dBm RF Transceiver Module
sbit MISO = P1^2;
sbit MOSI = P1^3;
sbit CS = P1^6;
sbit DR = P1^4;
sbit TX_LED = P2^1;
/* *************************************************************************** */
/* Function Name:W-TRW-24C-Byte */
/* Functional Description:Read in Byte to TRW-24C */
/* Input:x */
/* Return:No */
/* *************************************************************************** */
void W-TRW-24C-Byte(char x)
{
unsigned char i;
for(i=0;i<8;i++)
{
CLK = 0;
MOSI = 0;
if(x&0x80)
MOSI = 1;
x<<=1;
CLK = 1;
}
CLK = 0;
}
/* *************************************************************************** */
/* Function Name:R-TRW-24C-Byte */
/* Functional Description:Reads out Byte from TRW-24C */
/* Input:No */
/* Return:x */
/* *************************************************************************** */
char R-TRW-24C-Byte(void)
{
unsigned char i,x;
for(i=0;i<8;i++)
{
CLK = 0;
x <<= 1;
http://www.wenshing.com.tw ; http://www.rf.net.tw
TRW-24C Datasheet P.12