Hii,
i am trying to transfer the the radio buffer array to Radio register RFD using DMA , i am using the sample code from PER Test ,but when i try to debug the code, i dont seee any Transfer of data in the xdata memory and not able to transfer the packet via wireless.
I have attache the cod for more Clarity
void dmaRadioSetup(BYTE mode)
{
// Some configuration that are common for both TX and RX:
// CPU has priority over DMA
// Use 8 bits for transfer count
// No DMA interrupt when done
// DMA triggers on radio
// Single transfer per trigger.
// One byte is transferred each time.
dmaConfig.PRIORITY = DMA_PRI_LOW;
dmaConfig.M8 = DMA_M8_USE_8_BITS;
dmaConfig.IRQMASK = DMA_IRQMASK_DISABLE;
dmaConfig.TRIG = DMA_TRIG_RADIO;
dmaConfig.TMODE = DMA_TMODE_SINGLE;
dmaConfig.WORDSIZE = DMA_WORDSIZE_BYTE;
if (mode == RADIO_MODE_TX) {
// Transmitter specific DMA settings
// Source: radioPktBuffer
// Destination: RFD register
// Use the first byte read + 1
// Sets the maximum transfer count allowed (length byte + data)
// Data source address is incremented by 1 byte
// Destination address is constant
SET_WORD(dmaConfig.SRCADDRH, dmaConfig.SRCADDRL, radioPktBuffer);
SET_WORD(dmaConfig.DESTADDRH, dmaConfig.DESTADDRL, &X_RFD);
dmaConfig.VLEN = DMA_VLEN_FIRST_BYTE_P_1;
SET_WORD(dmaConfig.LENH, dmaConfig.LENL, (PACKET_LENGTH + 1));
dmaConfig.SRCINC = DMA_SRCINC_1;
dmaConfig.DESTINC = DMA_DESTINC_0;
}
please let me know how could i proceed for cc2511.
Thanks in advance