\XtoCVerification{Gain 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 Gain.

\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 & ... & 9 \\ \hline
\textbf{CPU cycles} & 68 & 68 & 69 & 69 & ... & 68 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Inputs} \\ \hline
\textbf{In (DSP)} & -32768 & -16384 & -6554 & -3277 & ... & 32767 \\ \hline
\textbf{In} & -1 & -0.5 & -0.2 & -0.1 & ... & 1 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Parameters} \\ \hline
\textbf{Gain} & \SetCell[c=6]{c}2.2 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Outputs} \\ \hline
\textbf{Out} & -1 & -1 & -0.44 & -0.22 & ... & 1 \\ \hline
\textbf{Exp. Out} & -1 & -1 & -0.44 & -0.22 & ... & 1 \\ \hline
\textbf{Out (DSP)} & -32767 & -32767 & -14419 & -7210 & ... & 32767 \\ \hline
\textbf{Exp. Out (DSP)} & -32768 & -32768 & -14418 & -7209 & ... & 32767 \\ \hline
\end{tblr}
\vspace{1ex}

\begin{XtoCtabular}{Test settings}
Tolerance Out & $\pm$6,1035e-05 ($\pm$2 LSB) \\ \hline
\end{XtoCtabular}

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

\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 & ... & 21 \\ \hline
\textbf{CPU cycles} & 68 & 68 & 68 & 68 & ... & 68 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Inputs} \\ \hline
\textbf{In (DSP)} & \SetCell[c=6]{c}3277 \\ \hline
\textbf{In} & \SetCell[c=6]{c}0.1 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Parameters} \\ \hline
\textbf{Gain} & -100 & -50 & -20 & -10 & ... & 100 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Outputs} \\ \hline
\textbf{Out} & -1 & -1 & -1 & -1 & ... & 1 \\ \hline
\textbf{Exp. Out} & -1 & -1 & -1 & -1 & ... & 1 \\ \hline
\textbf{Out (DSP)} & -32767 & -32767 & -32767 & -32767 & ... & 32767 \\ \hline
\textbf{Exp. Out (DSP)} & -32768 & -32768 & -32768 & -32768 & ... & 32767 \\ \hline
\end{tblr}
\vspace{1ex}

\begin{XtoCtabular}{Test settings}
Tolerance Out & $\pm$6,1035e-05 ($\pm$2 LSB) \\ \hline
\end{XtoCtabular}

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

\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 Gain.

\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}
