Hello,
I have a signal generator generating a square wave at about 2 kHz. I've connected the siggen to a CC1350 GPIO pin (pin 25) and I've got the CC1350 transmitting based on the rising edge.
Looking at my scope I see that the packet from the CC1350 comes 110 µs after the rising edge from the siggen. It's very consistent and I can't get the 110 µs to change no matter what I do.
Here's how I've configured the CC1350:
typedef struct
{
uint32_t reserved:2; // unused
uint32_t inputMode:2; //0: rising, 1: falling, 2: both edges
uint32_t reserved2:4; // unused
uint32_t source:5; // 22: RFC_GPI0, 23: RFC_GPI1
} ExternalTrigger;
// Set the trigger configuration
ExternalTrigger triggerConfig =
{
.inputMode = 2, // both edges
// .inputMode = 0, // rising edge, SWCU185D pg 1910
.source = 22 // Use RFC_GPI0, corresponds to PINCC26XX_setMux
};
PINCC26XX_setMux(pinHandle, IOID_25, PINCC26XX_MUX_RFC_GPI0);
RF_cmdPropTxAdv.pktLen = PAYLOAD_LENGTH;
RF_cmdPropTxAdv.pPkt = packet;
RF_cmdPropTxAdv.startTime = *((uint32_t*)&triggerConfig);
RF_cmdPropTxAdv.startTrigger.triggerType = TRIG_EXTERNAL