I m using LPC2138 with CYWM6934 for data communication with another radio module (CYWM6934 ) together with Z8F6423 at the other end.
In transmit code the steps followed are-
1-nPD & nRESET are first LOW then with a delay of 5 mS HIGH .
2-Radio registers initialized with values REG_CLOCK_MANUAL=0x41,REG_CLOC K_ENABLE=0x41,REG_CHANNEL=0x02 ,REG_DATA_RATE=0x06,REG_SERDES _CTL=0x0B,REG_ANALOG_CTL=0x44, REG_PWR_CTL=0x80,REG_PA=0x07,R EG_XTAL_ADJ=0x40,REG_VCO_CAL=0 xC0,REG_TX_VALID=0xFF,REG_CONF IG=0x01.
3-In the interrupt service routine of IRQ from CYWM6934 ,only a irqflag is made high.
3-Then in while loop LPC2138 waits continuously for push button interrupt.And when it comes Empty Interrupt (REG_TX_INT_EN=0x01) & Tx(REG_CONTROL=0x52) are enabled.
4-Then REG_TX_INT_STAT is read .it is showing value 0x1.
5-After that REG_TX_DATA is written with databyte. Then again on reading the REG_TX_INT_STAT it shows 0xb.
Then it waits for IRQ to assert using "while(irqflag != TRUE) ;"
6-After that another byte is written in REG_TX_DATA.
7-Then Tx Done Interrupt is enabled in REG_TX_INT_EN(0x02).
8-Then it again waits for IRQ to assert using "while(irqflag != TRUE) ;"
9-After tht transmission is Disabled by REG_CONTROL=0x12.
In receive code the steps followed are-
1.PD and RST pulled low
2.PD and RST pulled high after delay
3. initialize radio registers for 32chips ,double datarate with default threshold values.VCO cal for +/-5
4.receive full and EOFA interrupt enable
6.wait for receive interrupt in while loop.
Not receiving the receive interrupt.
Will u plz tell me that the problem is either in transmit code or in receive code.