, >>>

2010: 
1, 2, 3, 4, 5, 6, 7, 8, 9
2009: 
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
13, 14, 15, 16
2008: 
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
13, 14, 15, 16
2007: 
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
13, 14, 15, 16, 17, 18, 19, 20
2005: 
1, 2, 3

Новости строительства

827:

827 0688759652

:

- . , , " " " ", .

2963-2 (RUS) . :

2963-2

II ... 372:

!

" ", 7, 2008 .

PAN 2355

( " "")

PAN 2355 Panasonic Industrial GMBH, 1100 Texas Instruments, 868 . . PAN 2355 .

, Texas Instruments Chipcon, , ISM PAN 23. , PAN 23 , , , (PAN 2355 - 88,22 ) .

PAN 2355 [1]. , http://www.ti.com/ 0. , MSP430F1232A.

0...3 . :

. 1 . 2 .

 

 

. 1.

 

 

. 2.

.

6 7 MSP430F1232A , 2 1:1000. 6 7 30 (1 /) PAN 2355, . , R, , UART- RS-232 COM . PAN 2355 3- SPI.

- GDO0 GDO2.

47 . ( 12) . Data Sheet 1100, SmartRF_Studio, http://www.chipcon.com/. SPI MSP430F1232A.

/ PAN 2355 : SPI- MSP430F1232A, , , , . . 1100, TI_CC_CC1100 - CC2500.h, Chipcon.

:

SPY MSP430F1232A

Master.

void TI_CC_SPISetup(void)

{

TI_CC_CSn_PxDIR |= TI_CC_CSn_PIN; // P3.0 -> OUT

TI_CC_CSn_PxOUT |= TI_CC_CSn_PIN; // CSn = 1

ME2 |= USPIE0;

UCTL0 |= CHAR + SYNC + MM;

UTCTL0 |= CKPL + SSEL1 + SSEL0 + STC;//SPI 3-pin mode

UBR00 = 0x02; // UCLK/2 -> 115kHz

UBR10 = 0x00;

UMCTL0 = 0x00;

UCTL0 &= ~SWRST;

}

void TI_CC_PowerupResetCCxxxx(void)

{

//********** 1->0->1***********************

TI_CC_CSn_PxOUT |= TI_CC_CSn_PIN; // CSn = 1

Delay1(1);

TI_CC_CSn_PxOUT &= ~TI_CC_CSn_PIN; // CSn = 0

Delay1(1);

TI_CC_CSn_PxOUT |= TI_CC_CSn_PIN; // CSn = 1

Delay1(1);

TI_CC_CSn_PxOUT &= ~TI_CC_CSn_PIN; // CSn = 0

// SOMI = 0

while(TI_CC_SPI_USART0_PxIN&TI_CC_SPI_USART0_SOMI);

U0TXBUF = TI_CCxxx0_SRES; //

IFG2 &= ~URXIFG0; //

//

while (!(IFG2&URXIFG0));

while (TI_CC_SPI_USART0_PxIN&TI_CC_SPI_USART0_SOMI); TI_CC_CSn_PxOUT |= TI_CC_CSn_PIN; // CSn = 1

}

PAN 2355 void writeRFSettings(void)

{

//

// GDO0 , GDO2 -

TI_CC_SPIWriteReg(TI_CCxxx0_IOCFG0, 0x06);

TI_CC_SPIWriteReg(TI_CCxxx0_IOCFG0, 0x06);

// - 1

TI_CC_SPIWriteReg(TI_CCxxx0_PKTLEN, 0x01);

//

TI_CC_SPIWriteReg(TI_CCxxx0_PKTCTRL1, 0x04);

// CRC -

TI_CC_SPIWriteReg(TI_CCxxx0_PKTCTRL0, 0x05);

// -0

TI_CC_SPIWriteReg(TI_CCxxx0_ADDR, 0x00);

// -0

TI_CC_SPIWriteReg(TI_CCxxx0_CHANNR, 0x00);

//

TI_CC_SPIWriteReg(TI_CCxxx0_FSCTRL1, 0x0B);

TI_CC_SPIWriteReg(TI_CCxxx0_FSCTRL0, 0x00);

//

TI_CC_SPIWriteReg(TI_CCxxx0_FREQ2, 0x21);

TI_CC_SPIWriteReg(TI_CCxxx0_FREQ1, 0x62);

TI_CC_SPIWriteReg(TI_CCxxx0_FREQ0, 0x76);

//

// - 203

TI_CC_SPIWriteReg(TI_CCxxx0_MDMCFG4, 0x2);

// 115 /

TI_CC_SPIWriteReg(TI_CCxxx0_MDMCFG3, 0x22);

// - 32 , MSK

TI_CC_SPIWriteReg(TI_CCxxx0_MDMCFG2, 0x73);

// 4 , FEC

TI_CC_SPIWriteReg(TI_CCxxx0_MDMCFG1, 0x22);

// - 199.95

TI_CC_SPIWriteReg(TI_CCxxx0_MDMCFG0, 0xF8);

// - paTable[ ]={0xC3} 10 (. Data Sheet 1100)

TI_CC_SPIWriteBurstReg(TI_CCxxx0_PATABLE,paTable, 1);

// RX

TI_CC_SPIWriteReg(TI_CCxxx0_FREND1, 0xB6);

// TX

TI_CC_SPIWriteReg(TI_CCxxx0_FREND0, 0x10);

// ( )

TI_CC_SPIWriteReg(TI_CCxxx0_MCSM2, 0x07);

TI_CC_SPIWriteReg(TI_CCxxx0_MCSM1, 0x3F);

TI_CC_SPIWriteReg(TI_CCxxx0_MCSM0, 0x18);

//

TI_CC_SPIWriteReg(TI_CCxxx0_FOCCFG, 0x1D);

//

TI_CC_SPIWriteReg(TI_CCxxx0_BSCFG, 0x1C);

//

TI_CC_SPIWriteReg(TI_CCxxx0_AGCCTRL2, 0xC7);

TI_CC_SPIWriteReg(TI_CCxxx0_AGCCTRL1, 0x00);

TI_CC_SPIWriteReg(TI_CCxxx0_AGCCTRL0, 0xB2);

//

TI_CC_SPIWriteReg(TI_CCxxx0_FSCAL3, 0xEA);

TI_CC_SPIWriteReg(TI_CCxxx0_FSCAL2, 0x0A);

TI_CC_SPIWriteReg(TI_CCxxx0_FSCAL1, 0x00);

TI_CC_SPIWriteReg(TI_CCxxx0_FSCAL0, 0x11);

//

TI_CC_SPIWriteReg(TI_CCxxx0_FSTEST, 0x59);

TI_CC_SPIWriteReg(TI_CCxxx0_TEST2, 0x88);

TI_CC_SPIWriteReg(TI_CCxxx0_TEST1, 0x31);

TI_CC_SPIWriteReg(TI_CCxxx0_TEST0, 0x0B);

//

}

void TI_CC_SPIStrobe(char strobe)

{

TI_CC_CSn_PxOUT &= ~TI_CC_CSn_PIN; // CSn = 0

while (TI_CC_SPI_USART0_PxIN&TI_CC_SPI_USART0_SOMI);

U0TXBUF = strobe;

IFG2 &= ~URXIFG0; //

while (!(IFG2&URXIFG0));

TI_CC_CSn_PxOUT |= TI_CC_CSn_PIN; // CSn = 1

}

TI_CCxxx0_TXFIFO(0x3F). 35 .

void RFTransmitter(char txBuffer)

{

// TX_FIFO

TI_CC_SPIStrobe(TI_CCxxx0_SFTX);

Delay1(1); //

TI_CC_SPIWriteReg(TI_CCxxx0_TXFIFO,txBuffer);

Delay1(1);

// TX

TI_CC_SPIStrobe(TI_CCxxx0_STX);

Delay1(1);

//

while(TI_CC_GD02_PxIN&TI_CC_GD02_PIN);

// TX_FIFO - .

TI_CC_SPIStrobe(TI_CCxxx0_SFTX);

Delay1(1);

// TX_FIFO

TI_CC_SPIStrobe( TI_CCxxx0_SIDLE);

}

PAN 2355 , 6- , burst - /. . burst- , . .

Addr - , *buffer - , count -

void TI_CC_SPIWriteBurstReg(char addr, char *buffer, char count)

{

char i;

TI_CC_CSn_PxOUT &= ~TI_CC_CSn_PIN; // CSn = 0

while (TI_CC_SPI_USART0_PxIN&TI_CC_SPI_USART0_SOMI);

//

U0TXBUF = addr | TI_CCxxx0_WRITE_BURST;

while (!(IFG2&UTXIFG0));

for (i = 0; i < count; i++)

{

U0TXBUF = buffer[ i ]; //

while (!(IFG2&UTXIFG0));

}

IFG2 &= ~URXIFG0; //

while(!(IFG2&URXIFG0));

TI_CC_CSn_PxOUT |= TI_CC_CSn_PIN; // CSn = 1

}

addr void TI_CC_SPIWriteReg(char addr, char value)

{

TI_CC_CSn_PxOUT &= ~TI_CC_CSn_PIN; // CSn = 0

while (TI_CC_SPI_USART0_PxIN&TI_CC_SPI_USART0_SOMI);

IFG2 &= ~URXIFG0;

//

U0TXBUF = addr;

while (!(IFG2&URXIFG0));

IFG2 &= ~URXIFG0; //

U0TXBUF = value;

while (!(IFG2&URXIFG0));

TI_CC_CSn_PxOUT |= TI_CC_CSn_PIN; // CSn = 1

}

RX_FIFO addr = TI_CCxxx0_RXFIFO (0xBF).

char RFResiver(char addr)

{

char z;

// RX_FIFO

TI_CC_SPIStrobe(TI_CCxxx0_SFRX);

Delay1(1); //

// RX

TI_CC_SPIStrobe(TI_CCxxx0_SRX);

Delay1(1);

// (GD02 -> 1)

while(!(TI_CC_GD02_PxIN&TI_CC_GD02_PIN));

//

z =TI_CC_SPIReadReg(addr);

// RX_FIFO - .

TI_CC_SPIStrobe(TI_CCxxx0_SFRX);

Delay1(1);

// RX_FIFO

TI_CC_SPIStrobe( TI_CCxxx0_SIDLE);

return z;

}

, , , .

char TI_CC_SPIReadReg(char addr1)

{

char x;

TI_CC_CSn_PxOUT &= ~TI_CC_CSn_PIN; // CSn = 0

while (TI_CC_SPI_USART0_PxIN&TI_CC_SPI_USART0_SOMI);

//

U0TXBUF = (addr1 | TI_CCxxx0_READ_SINGLE);

while (!(IFG2&URXIFG0));

IFG2 &= ~URXIFG0; //

//

U0TXBUF = 0;

while (!(IFG2&URXIFG0));

//

x = U0RXBUF;

TI_CC_CSn_PxOUT |= TI_CC_CSn_PIN; // CSn = 1

return x;

}

, ( MSP430F1232A):

#define TI_CC_CSn_PxOUT P3OUT

#define TI_CC_CSn_PxDIR P3DIR

#define TI_CC_CSn_PIN 0x01 //P3.0

#define TI_CC_SPI_USART0_PxIN P3IN

#define TI_CC_SPI_USART0_SIMO 0x02 //P3.1

#define TI_CC_SPI_USART0_SOMI 0x04 //P3.2

#define TI_CC_SPI_USART0_UCLK 0x08 //P3.3

#define TI_CCxxx0_PATABLE 0x3E

#define TI_CC_GD02_PIN 0x01 //P2.0

#define TI_CC_GD02_PxIN P2IN

#define TI_CCxxx0_PATABLE 0x3E

, , 11 - 2500. [2].

1. PAN 2355./ N4, 2007 .
2. MSP430x1xx. ./ « ».







" ", 7, 2008 . :
 :
: :
<b> </b>
<i></i>
<a href="http://site.ru"> </a>