KW41Z with external amplifier

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KW41Z with external amplifier

跳至解决方案
1,965 次查看
lukaszgesieniec
Contributor II

Where can I find software example how to use KW41Z with external amplifier? My application uses BLE and Thread.

I have to know how configure Wireless Connectivity stack to control RX_SWITCH and TX_SWITCH pads connected to my external amplifier.

I have connected external amp this way (fig from kw41z reference manual):

pastedImage_1.png

标签 (1)
0 项奖励
回复
1 解答
1,747 次查看
gerardo_rodriguez
NXP Employee
NXP Employee

Hello Lukasz,

To enable the TX/RX switch pins, you need to configure the mux of the pins, the timing registers for the TX/RX switch signals and enable the RX/TX_SWITCH on the FAD_CTRL register.

You can use the following code as reference. Include fsl_port.h and Phy.h.

    PORT_SetPinMux(PORTC,2u,kPORT_MuxAlt2); // PTC2 as TX_SWITCH
    PORT_SetPinMux(PORTC,3u,kPORT_MuxAlt2); // PTC3 as RX_SWITCH

    // TX_SWITCH output is derived from TSM output gpio2_trig_en
    // Timings for assertion/de-assertion for GPIO2_TRIG_EN
    XCVR_TSM->TIMING49 = 0xFFFFFF01;

    // RX_SWITCH output is derived from TSM output gpio2_trig_en
    // Timings for assertion/de-assertion for GPIO3_TRIG_EN
    XCVR_TSM->TIMING50 = 0xFF01FFFF;

    // Enable RX/TX_SWITCH
    PhyPlmeSetANTPadStateRequest(FALSE, TRUE);

Regards,

Gerardo

在原帖中查看解决方案

2 回复数
1,748 次查看
gerardo_rodriguez
NXP Employee
NXP Employee

Hello Lukasz,

To enable the TX/RX switch pins, you need to configure the mux of the pins, the timing registers for the TX/RX switch signals and enable the RX/TX_SWITCH on the FAD_CTRL register.

You can use the following code as reference. Include fsl_port.h and Phy.h.

    PORT_SetPinMux(PORTC,2u,kPORT_MuxAlt2); // PTC2 as TX_SWITCH
    PORT_SetPinMux(PORTC,3u,kPORT_MuxAlt2); // PTC3 as RX_SWITCH

    // TX_SWITCH output is derived from TSM output gpio2_trig_en
    // Timings for assertion/de-assertion for GPIO2_TRIG_EN
    XCVR_TSM->TIMING49 = 0xFFFFFF01;

    // RX_SWITCH output is derived from TSM output gpio2_trig_en
    // Timings for assertion/de-assertion for GPIO3_TRIG_EN
    XCVR_TSM->TIMING50 = 0xFF01FFFF;

    // Enable RX/TX_SWITCH
    PhyPlmeSetANTPadStateRequest(FALSE, TRUE);

Regards,

Gerardo

1,747 次查看
lukaszgesieniec
Contributor II

Thank you!

0 项奖励
回复