Patune utilty - fine tuning of PA

Version 1.1 by UT2UK on 2026/03/02 10:54

The patune utility is an interactive console program for calibrating and configuring the parameters of the Power Amplifier (PA) in the Ermak TT transceiver. The program provides bias control of the amplifier, stage current calibration, monitoring, and cooling system configuration.

Purpose of the Utility

The program is designed for engineers and technicians for:

  • Automatic calibration of driver and output stage bias
  • Setting target idle currents for each stage
  • Monitoring the current status of the power amplifier
  • Managing thermal compensation
  • Configuring alarm parameters (temperature and current alarms)
  • Setting up the fan control table (cooling)
  • Saving configuration to non-volatile memory (NVMEM)

Operating Modes

The utility is organized as a hierarchical menu system:

Command Line Parameters

The utility does not accept command line parameters. All control is performed through the interactive console menu.

Starting the Program

At startup the program:

  1. Connects to PA Manager
  2. Requests the current PA configuration
  3. Requests the current bias table
  4. Displays the main menu
  5. Waits for user input

Input Format

User Input

Numeric Input

When a numeric value is requested, the program expects:

  • A positive integer within the specified range
  • Or the q character to cancel the operation
  • Or q and Enter to exit

Example of entering a current value:

Validation:

  • The value must be within the range [min, max]
  • If a value outside the range is entered, the program will display an error and repeat the prompt
  • Maximum 1 attempt per second (1 sec delay)

Signed Numeric Values

Signed values are used for thermal compensation:

Valid value ranges:

  • Thermal compensation: -100 to +100 DAC/°C
  • Temperature: -40 to 126 °C
  • Fan speed: 0 to 100 %

Cancelling an Operation

Press q at any input prompt to cancel the current operation without saving.

Menu Navigation

  • Digits 0-9 to select a menu item
  • Enter to confirm
  • q to return to the previous menu

Output Format

PA Status

FieldDescriptionUnit
Heat tempHeatsink temperature°C
Int tempInternal temperature°C
VSWR alarmVSWR alarm flag0/1
Extra current alarmOvercurrent alarm flag0/1
Temperature alarmTemperature alarm flag0/1
Bias enableBias enable status0/1
Bus voltageSupply voltagemV
Output stage currentOutput stage currentmA
Driver stage currentDriver currentmA
Output biasOutput bias voltage (channel 0/1)mV
Driver biasDriver bias voltage (channel 0/1)mV
Fan speedFan speed%

PA Configuration

FieldDescriptionDefault value
High limit tempMaximum temperature (alarm)80°C
Low limit tempMinimum temperature (restore)75°C
Max driver currentMax driver current (alarm threshold)1200mA
Max output currentMax output current (alarm threshold)2000mA

Bias Table

FieldDescriptionRange
Bias DAC output [0/1]DAC bias value for output channels 0 and 10-4095
Bias DAC driver [0/1]DAC bias value for driver channels 0 and 10-4096
Target driver currentTarget idle current for driver stage1-1000 mA
Target output currentTarget idle current for output stage1-2000 mA
Driver thermo compensationDriver thermal compensation-100 to +100 DAC/°C
Output thermo compensationOutput thermal compensation-100 to +100 DAC/°C
Temperature of calibrationTemperature at which calibration was performed°C

Fan Control Table

The table contains 8 interpolation points. Each row contains:

  • Index: sequence number (0-7)
  • Temperature: threshold temperature in °C
  • Fan Speed: fan speed in %

Speed is calculated by interpolating between points based on the current temperature.

Calibration Progress

During automatic calibration a progress bar is displayed:

Components:

  • DAC: current DAC value and maximum
  • First progress bar: DAC progress (yellow)
  • Current: current measured current and target current
  • Second progress bar: progress toward target current (green)

Error Messages

An error message in red indicates a communication failure with PA Manager or an unexpected state.

Success Messages

Successful operations are displayed in yellow.

Usage Examples

Example 1: Checking Amplifier Status

Example 2: Setting Target Driver Current

Example 3: Automatic Driver Calibration

Example 4: Editing a Fan Table Entry

Example 5: Saving Configuration

Error Diagnostics

Calibration Error

Message:

Causes:

  • Amplifier is not functioning
  • No power supply to the stage
  • Current sensor is faulty
  • Bias circuit is incorrectly configured

Solution:

  1. Check PA power supply
  2. Check load connectors
  3. Make sure bias can be adjusted
  4. Check the DAC coefficient value

Configuration Write Error

Message:

Causes:

  • NVMEM is full
  • Hardware write error
  • Loss of connection with PA Manager

Solution:

  1. Repeat the write operation
  2. Try resetting the configuration: "Reset all bias to default value"
  3. Reboot and try again

Practical Application Scenarios

Scenario 1: Initial Setup of a New Amplifier

Scenario 2: Fan Control Setup

Scenario 3: Maintenance and Diagnostics

Limitations and Implementation Notes

Parameter Limits

ParameterMinimumMaximumNote
Driver current1 mA1000 mATarget value
Output current1 mA2000 mATarget value
Max alarm current (driver)-6000 mAThreshold value
Max alarm current (output)-26000 mAThreshold value
Heatsink temperature-40°C126°CSensor range
Maximum alarm temperature-80°CLimited
Bias DAC04095 (output) / 4096 (driver)12-bit resolution
Thermal compensation-100+100DAC/°C
Fan speed0%100%Corresponds to DAC 0-63

Utility version: 1.2