Skip to main content

AN-CM-300 Using a Dialog GreenPAK™ for Automatic Amplifier Bias Control

13 Raspberry Pi Control Software

A RaspberryPi software package has been written to allow monitor and control of the SLG46582 circuit described in this app note. The software allows the RaspberryPi’s GPIO pins to interconnect with the SLG46582V. The HighPower Assert and LNA Enable functions on pins 4 and 6 have been implemented. The High Power Enabled (Pin 10), LNA Enabled (Pin 18), LDO Fault (Pin1) and Overtemp (Pin 3) flags are all monitored. This software requires the WiringPi Libraries for proper operation. Please seehttp://wiringpi.comfor installation instructions.

的引脚分配RaspberryPi的商店wn in Figure 4 below.

P270#yIS1

Figure 4: GPIO Pinout

For our circuit, WiringPi pin 0 (GPIO17) is the HP_Enable Pin. WiringPi pin 2 (GPIO27) is the LNA_Enable pin. For the monitoring side, WiringPi pin 4 (GPIO23) is the HP_Enabled flag. WiringPi pin 5 (GPIO24) is the LNA_Enabled flag. WiringPi pin 6 (GPIO25) is the Overtemp flag. WiringPi pin 27 (GPIO16) is the LDO_Fault flag.