Browse Source

Fixat pulsbilden. Börjat fylla på i differences. Lagt till circuit designer's companion

Jonatan Gezelius 5 years ago
parent
commit
52e5b389df

BIN
rapport/fig/doubleexpfunc.png


File diff suppressed because it is too large
+ 248 - 240
rapport/main.pdf


+ 3 - 0
rapport/main.tex

@@ -34,6 +34,9 @@
 %%% Make it possible to change size of tables
 \usepackage{adjustbox}
 
+%% For highlighting using \hl
+\usepackage{color,soul}
+
 %%% Use SI units
 \usepackage{siunitx}
 %%% For consistent formatting of lengths and other physical quantities.

+ 9 - 0
rapport/myrefs.bib

@@ -163,6 +163,15 @@
 
 
 
+@Book{theCircuitDesignersCompanion,
+  author = {Peter Wilson},
+  title = {The circuit designer's companion},
+  publisher = {Newnes},
+  isbn = {978-0-08-097138-4},
+  edition = {Third},
+  year = {2012},
+}
+
 
 
 

+ 38 - 13
rapport/theory.tex

@@ -40,9 +40,8 @@ The test pulses of interest defined in ISO~7637 are denoted \emph{Test pulse 1},
 
 The general characteristics in common for all pulses are the DC voltage $U_A$, the surge voltage $U_s$, the rise time $t_r$, the pulse duration $t_d$ and the internal resistance $R_i$. The internal resistance is only in series with the pulse generator, not the DC power source. For pulses that are supposed to be applied several times, $t_1$ usually denotes the time between two consecutive pulses.
 
-An important observation is that the definition of the surge voltage, $U_s$, differs in ISO~7637 and ISO~16750 as seen in \autoref{fig:us_difference}. In this report, only the definition from ISO~7637 is used.
-
-\todo[Bild med kurvornas parametrar, båda ISO standardernas definitioner]
+\todo[fixa referens till rätt kapitel]
+An important observation is that the definition of the surge voltage, $U_s$, differs in ISO~7637 and ISO~16750 as seen in \autoref{sec:us_difference}. \hl{In this report, only the definition from ISO~7637 is used.}
 
 \subsection{Test pulse 1}
 This pulse simulates the event of the power supply being disconnected while the DUT is connected to other inductive loads. This leads to the other inductive loads generating a voltage transient of reversed polarity to the DUT's supply lines.
@@ -80,7 +79,7 @@ During a test, the nominal voltage is first applied between the plus and minus t
 
 \begin{figure}
     \includegraphics[width=\textwidth]{doubleexpfunc}
-    \caption{The rise time is defined as the time elapsed from 0.1 to 0.9 times the maximum voltage on the rising edge of the function. The duration is defined as the time from 0.1 times the maximum voltage on the rising edge, back to the same level of the falling edge.}
+    \caption{The surge voltage $U_S$ is the puse maximum voltage disregarding the offset voltage $U_A$. The rise $t_r$ time is defined as the time elapsed from 0.1 to 0.9 times the surge voltage on the rising edge of the pulse. The duration $t_d$  is defined as the time from 0.1 times the maximum voltage on the rising edge, back to the same level of the falling edge.}
     \label{fig:doubleexp}
 \end{figure}
 
@@ -131,8 +130,39 @@ Since the equipment used the project is designed for the older version of the st
 
 One of the most notable differences is the removal of a test pulse from ISO~7637-2 that was called \emph{Pulse 5a} and \emph{Pulse 5b}, this was instead introduced to the ISO~16750-2 under the name \emph{Load dump A} and \emph{Load dump B}.
 
+\subsection{Supply voltage}
+
+\textbf{ISO 7637-2:2004}
+
+12V: $U_A = 13.5 \pm 0.5$
+
+12V: $U_B = 12.5 \pm 0.2$
+
+24V: $U_A = 27 \pm 1$
+
+24V: $U_B = 24 \pm 0.4$
+
+\textbf{ISO 7637-1:2015}
+
+12V: $U_A = 13 \pm 1$
+
+24V: $U_A = 26 \pm 2$
+
+\textbf{ISO 16750-1}
+
+12V: $U_A = 14 \pm 0.2$
+
+12V: $U_B = 12.5 \pm 0.2$
+
+24V: $U_A = 28 \pm 0.2$
+
+24V: $U_B = 24 \pm 0.2$
+
 \subsection{Definitions}
-Since there are now two different standards, ISO~7637 and ISO~16750, that are describing the pulses some differences in definitions have been introduced.
+ISO~7637 and ISO~16750
+
+The definitions are stated in the first part of the standards, ISO~7637-1 and ISO~16750-1.
+
 
 \todo[Snygga till presentationen av definitionerna]
 
@@ -199,15 +229,8 @@ New, open: $U_S 75 \pm 7.5$ V, matched  $U_S 35.5 \pm 7.5$ V
 No change.
 
 \textbf{Load dump A}
-No change, but according to print (or thought) error:
 
-Old, 12 V, open: $U_S 100 \pm 10$ V, matched  $U_S 50 \pm 10$ V
-
-New, 12 V, open: $U_S 87 \pm 10$ V, matched  $U_S 37 \pm 10$ V \textbf{NOTE, this can't be true}
-
-Old, 12 V, open: $U_S 200 \pm 20$ V, matched  $U_S 100 \pm 10$ V
-
-New, 12 V, open: $U_S 172 \pm 20$ V, matched  $U_S 72 \pm 20$ V \textbf{NOTE, this can't be true}
+No change.
 
 \section{Resistors at high frequencies}
 \label{theory_parasitic_properties}
@@ -221,6 +244,8 @@ Källan \cite{vishay_hf_resistor}.
 
 When working with resistors at high frequencies, one must care for the parasitc properties of the resistor.
 
+Chapter 3.1.6 \cite{theCircuitDesignersCompanion}
+
 \section{Measurement}
 There are several measurement methods needed during the project. To verify the test pulses, voltage has to be measured over time. To verify the dummy loads, resistance has to be measured. To verify the attenuators, the magnitude response has to be measured. This chapter describes the necessary measurement theory required for this project.
 

BIN
scilab/pulses/doubleexpfunc.png


+ 39 - 11
scilab/pulses/pulse shape.sce

@@ -1,13 +1,13 @@
 xdel(winsid())
 clear;
 
-t = linspace(-2,20,2000);
+t = linspace(-4,20,5000);
 a = 0.4;
 b = 0.45;
 k = 1;
 
 magnitude = 100;
-offset = 24
+offset = 20
 
 // Generera självaste pulsformen
 y = k*(exp(-a*t) - exp(-b*t) );
@@ -60,20 +60,34 @@ y = y+offset;
 
 //Generera vertikala linjer
 xpts = [1 1];
-ypts = [-100 max(y)*2];
 //plot(xpts*0, ypts, '-black'); // Vertikalt streck på x = 
-plot(xpts*t(x10r), ypts, ':');
-plot(xpts*t(x90r), ypts, ':');
-plot(xpts*t(x10f), ypts, '-.');
+ypts = [(0.1*magnitude+offset) max(y)*1.5];
+plot(xpts*t(x10r), ypts, '-');
+plot(xpts*t(x10f), ypts, '-');
+ypts = [(0.9*magnitude+offset) max(y)*1.25];
+plot(xpts*t(x90r), ypts, '-');
 
 // Generera horisontella linjer
+
+// Pulsen
 plot(t, y, "black");
-hline = ones(1,length(y));
-plot(t,hline.*y(x10r), ':');
 p = get("hdl");
 p = p.children;
-p.line_style = 7;
-plot(t,hline.*y(x90r), ':');
+p.thickness = 3;
+
+// max och min horisontella
+hline = ones(1,length(t));
+plot(t,hline.*max(y), '--');
+plot(t,hline.*min(y), '--');
+plot(t,hline.*0, '-black');
+
+// 10 och 90% horizontella
+tshort = t(x10r-150:length(t))
+hline = ones(1,length(tshort));
+plot(tshort,hline.*y(x10r), '-');
+tshort = t(x10r-150:x90r)
+hline = ones(1,length(tshort));
+plot(tshort,hline.*y(x90r), '-');
 
 // titletxt = ['$y = k(e^{-\alpha t} - e^{-\beta t})$' ; strcat(['$k=', string(k), ', \alpha=', string(a), ', \beta=', string(b), '$']) ];
 
@@ -89,5 +103,19 @@ a = get("current_axes");
 //a.y_location = "origin";
 
 
-a.data_bounds = [min(t),-0.02;max(t),200];
+// Bestäm viewport och ta bort inramning
+a.data_bounds = [min(t),0;max(t),200];
+a.box = "off";
+
+
+// Fula pilar (nästan) på axlarna
+//b = a.data_bounds
+//xstring(b(1),b(4),"↑")
+//set(gce(), "clip_state","off", "text_box_mode","centered", "font_size",4)
+//
+//xstring(b(2),b(3),"→")
+//set(gce(), "clip_state","off", "text_box_mode","centered", "font_size",4)
+
+f=get("current_figure")
+f.figure_size=f.figure_size*1.3  // Råkade bli lagom storlek
 

Some files were not shown because too many files changed in this diff