This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can you use the PA/LNA assist code to have the softdevice toggle more than two pins?

Hi all!

I'm using an nRF52833, SDK 17.0.2, s140 softdevice 7.2.0. My design uses a Skyworks SKY66112 amplifier.

I have the pa_lna_assist function that I found here on DevZone working to automatically control the Skyworks CTX and CRX pins, but if I can, I'd also like it to change two more pins (both from 0 to 1) whenever Bluetooth goes active, and back to 0 when it goes inactive.

Is there is a way I can enable an interrupt service routine for the GPIOTE channel that gets used or configure some other ISR that will get called before and after BLE events? Can you call sd_ble_opt_set(BLE_COMMON_OPT_PA_LNA... more than once and have the softdevice handle more than one set of pins?

The problem I'm trying to solve is that I thought I could leave the Skyworks CHL and CSD lines high forever to get the operating modes I want, but it turns out our hardware designer put 100k pulldowns on those lines, so leaving them high all the time costs me 66uA of current, which is a lot on a battery powered device. If I can have those lines go high only when they need to be it will solve my problem.

Otherwise I might have to see if we can get future boards built without these pulldowns.

Thanks!

Glen

Parents Reply Children
Related