\XtoCVerification{uGain FiP16 CPU dsPIC33EP256MC502}
\begin{tabular}{l l}
\textbf{Date of Test} & 2026-06-19 \\
\textbf{Target controller} & dsPIC33EP256MC502 \\
\end{tabular}
\vspace{1ex}
\XtoCTestCase{Inport test}{1}
Inport test for General block uGain.

\vspace{1em}
\begin{tblr}{width=\textwidth, colspec={|c|c|c|c|c|X[c]|c|}}
\hline
\SetRow{lightgray} \SetCell[c=7]{l} \textbf{Test results} \\ \hline
\textbf{Time step} & 1 & 2 & 3 & 4 & ... & 107 \\ \hline
\textbf{CPU cycles} & 54 & 54 & 54 & 54 & ... & 54 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Inputs} \\ \hline
\textbf{In (DSP)} & -32768 & -32150 & -31531 & -30913 & ... & 32767 \\ \hline
\textbf{In} & -1 & -0.981 & -0.962 & -0.943 & ... & 1 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Parameters} \\ \hline
\textbf{Gain} & \SetCell[c=6]{c}2.1 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Outputs} \\ \hline
\textbf{Out} & -0.1 & -0.06 & -0.021 & 0.019 & ... & 0.1 \\ \hline
\textbf{Exp. Out} & -0.1 & -0.06 & -0.021 & 0.019 & ... & 0.1 \\ \hline
\textbf{Out (DSP)} & -3276 & -1979 & -679 & 619 & ... & 3273 \\ \hline
\textbf{Exp. Out (DSP)} & -3277 & -1978 & -680 & 618 & ... & 3277 \\ \hline
\end{tblr}
\vspace{1ex}

\begin{XtoCtabular}{Test settings}
Tolerance Out & $\pm$1,2207e-04 ($\pm$4 LSB) \\ \hline
\end{XtoCtabular}

\begin{XtoCtabular}{Test statistics}
Min CPU cycles & 54 \\ \hline
Max CPU cycles & 54 \\ \hline
Avg CPU cycles & 54 \\ \hline
\end{XtoCtabular}
\XtoCTestCase{Parameter test}{1}
Parameter test for General block uGain.

\vspace{1em}
\begin{tblr}{width=\textwidth, colspec={|c|c|c|c|c|X[c]|c|}}
\hline
\SetRow{lightgray} \SetCell[c=7]{l} \textbf{Test results} \\ \hline
\textbf{Time step} & 1 & 2 & 3 & 4 & ... & 107 \\ \hline
\textbf{CPU cycles} & 54 & 54 & 54 & 54 & ... & 54 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Inputs} \\ \hline
\textbf{In (DSP)} & \SetCell[c=6]{c}13107 \\ \hline
\textbf{In} & \SetCell[c=6]{c}0.4 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Parameters} \\ \hline
\textbf{Gain} & -3.7 & -3.63 & -3.56 & -3.491 & ... & 3.7 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Outputs} \\ \hline
\textbf{Out} & 0.52 & 0.548 & 0.576 & 0.604 & ... & -0.52 \\ \hline
\textbf{Exp. Out} & 0.52 & 0.548 & 0.576 & 0.604 & ... & -0.52 \\ \hline
\textbf{Out (DSP)} & 17040 & 17954 & 18869 & 19784 & ... & -17041 \\ \hline
\textbf{Exp. Out (DSP)} & 17039 & 17954 & 18869 & 19784 & ... & -17039 \\ \hline
\end{tblr}
\vspace{1ex}

\begin{XtoCtabular}{Test settings}
Tolerance Out & $\pm$9,1553e-05 ($\pm$3 LSB) \\ \hline
\end{XtoCtabular}

\begin{XtoCtabular}{Test statistics}
Min CPU cycles & 54 \\ \hline
Max CPU cycles & 54 \\ \hline
Avg CPU cycles & 54 \\ \hline
\end{XtoCtabular}
\XtoCTestCase{Conversion test}{1}
Conversion test for General block uGain.

\vspace{1em}
\begin{tblr}{width=\textwidth, colspec={|c|c|c|c|c|X[c]|c|}}
\hline
\SetRow{lightgray} \SetCell[c=7]{l} \textbf{Test results} \\ \hline
\textbf{Time step} & 1 & 2 & 3 & 4 & ... & 37 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Mask parameters} \\ \hline
\textbf{Gain} & -10 & -9.444 & -8.889 & -8.333 & ... & 10 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Controller parameters} \\ \hline
\textbf{V} & -20480 & -19342 & -18204 & -17067 & ... & 20480 \\ \hline
\textbf{sfr} & 11 & 11 & 11 & 11 & ... & 11 \\ \hline
\textbf{Exp. V} & -20480 & -19342 & -18204 & -17067 & ... & 20480 \\ \hline
\textbf{Exp. sfr} & 11 & 11 & 11 & 11 & ... & 11 \\ \hline
\end{tblr}
\vspace{1ex}

\begin{XtoCtabular}{Test settings}
Tolerance V & $\pm$0,0000e+00 \\ \hline
Tolerance sfr & $\pm$0,0000e+00 \\ \hline
\end{XtoCtabular}
\XtoCTestCase{Conversion-on-Target test}{1}
Conversion-on-Target test for General block uGain.

\vspace{1em}
\begin{tblr}{width=\textwidth, colspec={|c|c|c|c|c|X[c]|c|}}
\hline
\SetRow{lightgray} \SetCell[c=7]{l} \textbf{Test results} \\ \hline
\textbf{Time step} & 1 & 2 & 3 & 4 & ... & 37 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Mask parameters} \\ \hline
\textbf{Gain} & -10 & -9.444 & -8.889 & -8.333 & ... & 10 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Controller parameters} \\ \hline
\textbf{V} & -20480 & -19342 & -18204 & -17066 & ... & 20480 \\ \hline
\textbf{sfr} & 11 & 11 & 11 & 11 & ... & 11 \\ \hline
\textbf{Exp. V} & -20480 & -19342 & -18204 & -17067 & ... & 20480 \\ \hline
\textbf{Exp. sfr} & 11 & 11 & 11 & 11 & ... & 11 \\ \hline
\end{tblr}
\vspace{1ex}

\begin{XtoCtabular}{Test settings}
Tolerance V & $\pm$1,0000e+00 \\ \hline
Tolerance sfr & $\pm$0,0000e+00 \\ \hline
\end{XtoCtabular}

\begin{XtoCtabular}{Test statistics}
Min CPU cycles & 2593 \\ \hline
Max CPU cycles & 10879 \\ \hline
Avg CPU cycles & 8317 \\ \hline
\end{XtoCtabular}
