Picswr / Calswr - design objectives

Background

My own PicAStar has no front-panel analogue meter.
This decision was made to give a smaller footprint and because I found myself watching the LED meter rather than the analogue meter when the rig was operating at the breadboard stage!! I did, however fit an eight pin miniature DIN socket to the back panel through which I drive a 1 mA S-meter for the purpose of Picswr development.
Some PicAStars have an analogue S-meter, some don't.
Some use a relay on transmit to switch the analogue meter to display power/SWR.

Design objectives

The DSP unit sends 9600 baud serial S-meter telemetry to the PIC16F27 on the status board. This PIC drives the 12-LED display and the analogue meter.
On transmit, Picswr needs to optionally take over control of the display by generating this telemetry from forward and reflected voltages from an SWR bridge.
The minimum installation requirements are therefore: The unit also needs a 12v supply and an RS232 PC-link socket on the rear panel - You now have three of these rather than two. Picswr uses the same RS232- jack plug cable as the PicAStar PC link.
The output of SWR bridges is non linear and may differ slightly between forward and reflected.
Picswr therefore needs to store calibration profiles. These are generated using the PC based Calswr program.
Picswr should optionally display computed SWR both on the LEDs and on the analogue meter.
The PIC16F876 software computes SWR. The LED display calibration is : 1 LED = 1.0, 5 LEDs = 2.0, 9 LEDs = 3.0.
Picswr's calibration must be tailored to suit the installed PA. For example, power ranges of 0-20w, 0-100w etc
Calswr allows you set the LED power range in watts per LED. There are 12 LEDs.
To provide some degree of mismatch protection.
Many transceivers use the ALC facility to progressively reduce the drive with worsening mismatch. PicAStar has no such ALC system and doesn't need it. Picswr provides the facility to shut down the PA if reflected power is above a specified level for a specified time interval. The power level is specified in the Calswr calibration program. The time interval is determined by R13 / C7 on the Picswr circuit board. My default provision is >4w for approx 8 seconds. This arrangement allows you to tune at full power for eight seconds or more. The 'shut down' output is an open collector NPN transistor.
Control requirements on the front panel should be very simple.
The front panel hardware is one tricolour LED (R,G,Y) and an adjacent miniature pushbutton (push to make).
Each press of the button steps through a cycle of five transmit display modes. (Mode can be changed on receive or on transmit): The 'reflected x10' mode is 10 x more sensitive setting for fine tuning with low reflected power levels.
The same pushbutton is also used to receive calibration information from the PC based Calswr program. (Hold for 4 seconds unit it flashes green and then click 'Send to Star')
PC monitoring of forward and reflected power and SWR should be provided.
The main window of Calswr has four vertical bar indictors each of twelve segments (four green, four yellow and four red) which behave according to the current calibration and so correspond to the to 12-LED display in PicAStar (providing that the calibration has been sent to PicAStar !!! ) There are also numeric displays of raw ADC output (0-1023) and of forward, reflected power and SWR. (I thought that designing a graphical cross needle display was a bit heavy and unnecessary at this stage !!)
Calibration procedures should be easy to carry out
This is so- see Calswr - load a calibration and Calswr - do a calibration
The Picswr module should be small, simple and easily constructed.
The Picswr module measures 4.8 x 6.8cm.
It contains: