                          Phase2 Documentation
                                     
                   HP 48 Phase Shift Oscillator Program

From: Douglas L. Rohm (dlr@mediaone.net)
Date: February 25, 1998
Checksum: #6922h  Bytes: 889.5

Overview
--------
This program is designed for a Phase Shift Oscillator circuit.  It was 
written for my Integrated Circuits class.  The program was written 
entirely in System-RPL.  It will calculate:

Vout:	The total voltage out of the circuit.
Vn:	The voltage at each phase in the circuit.
f:	The frequency
Av:	The gain of the inverting Amplifier
Rf:	The feedback resistor value

Installation
------------
Transfer the file "phase2" or "phase2.gx" to your calculator using
your favorite program and protocol.  Once the program is transferred
over, you can begin using it immediately.  

Operation
---------
Phase2 takes five arguments from the stack and does not return anything 
to the stack.  Instead, it displays all the information of the circuit 
in a nice compact display.  The order of the arguments that phase2 
takes are as follows:

5: n (Number of stages)
4: c (Capacitor value)
3: r (Resistor value)
2: Rin (Input resistor value for inverting amplifier)
1: zv (Zener-diode voltage)

After all the arguments are on the stack, simply press the menu button 
for phase2 and the program takes over.  You can use the UP and DOWN
arrows to scroll the display if the answers extend beyond the normal
display.  Once you have obtained all the information from the display,
hit the "Quit" button on the menubar and normal calculator operation will
resume. 


Example:
--------
Given the values below, use "phase2" to calculate each of the variables 
listed in the diagram.  

Number of Phases: 3
Capacitor Value: .016uF
Resistor Value: 3.3kohms
Resistor Input to Inverting Amplifier: 10kohms
Zener-Diode Voltage: 9.4V

CIRCUIT:

(see the included PHASE2.GIF)
 
The answers you should get are:
V1=5.00V
V2=2.50V
V3=1.25V
VOUT=10.00V
RF=80kohms
AV=8
Frequency=5220.9176Hz

Here is another example to let you see the scrolling ability of the program.

Number of Phases: 10
Capacitor Value: .05uF
Resistor Value: 10kohms
Resistor Input to Inverting Amplifier: 10kohms
Zener-Diode Voltage: 9.1V

The answers you should get are:
V1=9.23V
V2=8.77V
V3=8.34V
V4=7.94V
V5=7.55V
V6=7.18V
V7=6.83V
V8=6.49V
V9=6.17V
V10=5.87V
VOUT=9.70V
RF=16.517kW
AV=1.65
Frequency=103.43Hz

---------------------------------------------------------------
I am quite willing to answer questions about how this program works 
and would be more that happy to discuss improvements or 
recommendations.  If anyone has any suggestions, please feel free to 
email me any information. 

(This program and its documentation are public domain. They may be 
freely copied, used and published in user-group newsletters provided 
that my name remains attached to them. They may not be sold for 
profit.)
----------------------------------------------------------------
V 2.0 02/25/98 10:52 AM
