CC1312R: Enable TX and RX pins

Part Number: CC1312R
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hello,

I found in the manual that there are some virtual signals from the radio subsystem that can be mapped to physical pins.

I need a transmit and a receive indication to connect a logic analyzer.

Table 13-1. RF Core Data Signals for PA and LNA

Port NamePORTIDRF Core SignalDescription

RFC_GPO00x2FRF Core Data Out 0 LNA enable
RFC_GPO10x30RF Core Data Out 1 PA enable
RFC_GPO20x31RF Core Data Out 2 Synthesizer calibration running
RFC_GPO30x32RF Core Data Out 3 TX start

Is this how to do it, or should  it be done with sysconfig? How ?

If I want RX ( LNA enable ) and TX (PA enable) on pins DIO 29 1nd DIO 30

Or, do I just include this code snippet?

#include <driverlib/ioc.h>


// Map RFC_GPO0 to DIOx

IOCPortConfigureSet(DIO-29, IOC_PORT_RFC_GPO0, IOC_IOMODE_NORMAL);

IOCPortConfigureSet(DIO-30, IOC_PORT_RFC_GPO1, IOC_IOMODE_NORMAL);

If the latter, should i set up and define and give the pins name in sysconfig GPIO-config?

i.e. GPIO_TX_PIN and GPIO_RX_PIN rather than just "DIo-X"

Gullik

  • So this is what works:

    Define the GPIOS in sysconfig, and set them output and assign DIO's.

    In the source code:

    #include <driverlib/ioc.h>


    // Map RFC_GPO0 to DIOx

    IOCPortConfigureSet(LNA_HIGH, IOC_PORT_RFC_GPO0, IOC_IOMODE_NORMAL);

    IOCPortConfigureSet(PA_HIGH, IOC_PORT_RFC_GPO1, IOC_IOMODE_NORMAL);

    Pins now activate as radio operats.

    Regards,

    Gullik