John's Vademecum

Try to learn something about everything, and everything about something -Thomas Huxley “Darwin's bulldog” (1824-1895)

User Tools

Site Tools


public:calculator:progs:dm32_progs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:calculator:progs:dm32_progs [24/07/23 17:38 BST] – [The program] johnpublic:calculator:progs:dm32_progs [06/03/25 06:49 GMT] (current) – external edit 127.0.0.1
Line 20: Line 20:
 Once the real and imaginary values are on the stack various "Complex" functions are accessed by <key>SHIFT</key><key>CMPLX</key><key>Function</key> for example to add Once the real and imaginary values are on the stack various "Complex" functions are accessed by <key>SHIFT</key><key>CMPLX</key><key>Function</key> for example to add
  
-Z<sub>1</sub> = (10 + j20) and Z<sub>2</sub> = (30 - j25) Z<sub>3</sub>+Z<sub>1</sub> = (10 + j20)  
 + 
 +and 
 + 
 +Z<sub>2</sub> = (30 - j25) 
 + 
 +gives 
 + 
 +Z<sub>3</sub> = Z<sub>1</sub> + Z<sub>2</sub> = ( 10 + j20 ) + ( 30 - j25 )
  
 <code> <code>
Line 56: Line 64:
 X has the real part of Z<sub>3</sub> (40) and Y has the imaginary part of Z<sub>3</sub> (-5) X has the real part of Z<sub>3</sub> (40) and Y has the imaginary part of Z<sub>3</sub> (-5)
  
-Z<sub>3</sub> = 40 - j 5+Z<sub>3</sub>40 - j5 )
  
  
Line 70: Line 78:
 ENTER ENTER
 50         ; enter Zo as 50 + j 0  50         ; enter Zo as 50 + j 0 
-CMPLX    ; complex subtraction Zo +CMPLX    ; complex addition Zo 
-STO A      ; store intermediate value Re (Z Zo)+STO A      ; store intermediate value Re (Z Zo)
 R↓         R↓        
-STO B      ; store intermediate value Im (Z Zo)+STO B      ; store intermediate value Im (Z Zo)
 R↓         ; X and Y stack now holds input Z real & imag again    R↓         ; X and Y stack now holds input Z real & imag again   
 0 0
 ENTER ENTER
 50         ; enter Zo as 50 + j 0 (again) 50         ; enter Zo as 50 + j 0 (again)
-CMPLX    ; complex addition Zo +CMPLX    ; complex subtraction Zo 
-STO C      ; store intermediate value Re (Z + Zo) +RCL B      ; Im (Z Zo)   
-R↓ +RCL A      ; Re (Z Zo) 
-STO D      ; store intermediate value Im (Z + Zo) +CMPLX ÷    complex divide (STACK z,t holds (Z Zo) stack x,y holds (Z + Zo) (from reg. A & B) to calculate complex reflection coeff. ρ
-RCL B      ; Im (Z Zo)   +
-RCL A      ; Re (Z Zo) +
-RCL D      Im (Z Zo) +
-RCL C      ; Re (Z + Zo) +
-CMPLX ÷    ; complex divide -> complex reflection coeff. ρ+
 STO E      ; save Re ρ STO E      ; save Re ρ
 R↓ R↓
 STO F      ; save Im ρ STO F      ; save Im ρ
-RCL F 
 RCL E RCL E
 y,x -> θ, r ; convert complex rectangular ρ to mag/angle - X holds the magnitude |ρ| ( Y holds the angle, but we don't care) y,x -> θ, r ; convert complex rectangular ρ to mag/angle - X holds the magnitude |ρ| ( Y holds the angle, but we don't care)
Line 109: Line 111:
 y,x -> θ, r y,x -> θ, r
 STO Z       ; store magnitude of impedance |z| STO Z       ; store magnitude of impedance |z|
-RCL Z       ; |z| 
 RCL P       ; |ρ| RCL P       ; |ρ|
 RCL S       ; VSWR RCL S       ; VSWR
Line 132: Line 133:
 </code> </code>
  
-  * Return Loss = 13.9dB 
-  * SWR = 1.5:1 
-  * |ρ| = 0.2 
   * |Z| = 67.6 ohms   * |Z| = 67.6 ohms
 +  * |ρ| = 0.2
 +  * SWR = 1.5:1
 +  * Return Loss = 13.9dB
  
  
public/calculator/progs/dm32_progs.1690216702.txt.gz · Last modified: 06/03/25 06:49 GMT (external edit)