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

\vspace{1em}
\begin{tblr}{width=\textwidth, colspec={|c|c|c|X[c]|c|}}
\hline
\SetRow{lightgray} \SetCell[c=5]{l} \textbf{Test results} \\ \hline
\textbf{Time step} & 1 & 2 & ... & 137 \\ \hline
\textbf{CPU cycles} & 160 & 160 & ... & 160 \\ \hline
\SetRow{lightgray!50} \SetCell[c=5]{l} \textit{Inputs} \\ \hline
\textbf{In1 (DSP)} & -1 & -0.986 & ... & 0.986 \\ \hline
\textbf{Switch (DSP)} & 0.916 & 0.859 & ... & 0.44 \\ \hline
\textbf{In3 (DSP)} & 1 & 0.986 & ... & -0.986 \\ \hline
\textbf{In1} & -1 & -0.986 & ... & 0.986 \\ \hline
\textbf{Switch} & 0.916 & 0.859 & ... & 0.44 \\ \hline
\textbf{In3} & 1 & 0.986 & ... & -0.986 \\ \hline
\SetRow{lightgray!50} \SetCell[c=5]{l} \textit{Parameters} \\ \hline
\textbf{Thresh\_up} & \SetCell[c=4]{c}0.3 \\ \hline
\textbf{Thresh\_down} & \SetCell[c=4]{c}-0.1 \\ \hline
\SetRow{lightgray!50} \SetCell[c=5]{l} \textit{Outputs} \\ \hline
\textbf{Out} & -1 & -0.986 & ... & 0.986 \\ \hline
\textbf{Exp. Out} & -1 & -0.986 & ... & 0.986 \\ \hline
\textbf{Out (DSP)} & -1 & -0.986 & ... & 0.986 \\ \hline
\textbf{Exp. Out (DSP)} & -1 & -0.986 & ... & 0.986 \\ \hline
\end{tblr}
\vspace{1ex}

\begin{XtoCtabular}{Test settings}
Tolerance Out & $\pm$3,0268e-08 ($\pm$65 LSB) \\ \hline
\end{XtoCtabular}

\begin{XtoCtabular}{Test statistics}
Min CPU cycles & 160 \\ \hline
Max CPU cycles & 256 \\ \hline
Avg CPU cycles & 213 \\ \hline
\end{XtoCtabular}
\XtoCTestCase{Inport test}{1}
Inport test for General block AutoSwitch.

\vspace{1em}
\begin{tblr}{width=\textwidth, colspec={|c|c|c|X[c]|c|}}
\hline
\SetRow{lightgray} \SetCell[c=5]{l} \textbf{Test results} \\ \hline
\textbf{Time step} & 1 & 2 & ... & 137 \\ \hline
\textbf{CPU cycles} & 162 & 162 & ... & 162 \\ \hline
\SetRow{lightgray!50} \SetCell[c=5]{l} \textit{Inputs} \\ \hline
\textbf{In1 (DSP)} & -1 & -0.986 & ... & 0.986 \\ \hline
\textbf{Switch (DSP)} & 0.916 & 0.859 & ... & 0.44 \\ \hline
\textbf{In3 (DSP)} & 1 & 0.986 & ... & -0.986 \\ \hline
\textbf{In1} & -1 & -0.986 & ... & 0.986 \\ \hline
\textbf{Switch} & 0.916 & 0.859 & ... & 0.44 \\ \hline
\textbf{In3} & 1 & 0.986 & ... & -0.986 \\ \hline
\SetRow{lightgray!50} \SetCell[c=5]{l} \textit{Parameters} \\ \hline
\textbf{Thresh\_up} & \SetCell[c=4]{c}0 \\ \hline
\textbf{Thresh\_down} & \SetCell[c=4]{c}0 \\ \hline
\SetRow{lightgray!50} \SetCell[c=5]{l} \textit{Outputs} \\ \hline
\textbf{Out} & -1 & -0.986 & ... & 0.986 \\ \hline
\textbf{Exp. Out} & -1 & -0.986 & ... & 0.986 \\ \hline
\textbf{Out (DSP)} & -1 & -0.986 & ... & 0.986 \\ \hline
\textbf{Exp. Out (DSP)} & -1 & -0.986 & ... & 0.986 \\ \hline
\end{tblr}
\vspace{1ex}

\begin{XtoCtabular}{Test settings}
Tolerance Out & $\pm$3,0268e-08 ($\pm$65 LSB) \\ \hline
\end{XtoCtabular}

\begin{XtoCtabular}{Test statistics}
Min CPU cycles & 162 \\ \hline
Max CPU cycles & 255 \\ \hline
Avg CPU cycles & 203 \\ \hline
\end{XtoCtabular}
\XtoCTestCase{Conversion test}{1}
Conversion test for General block AutoSwitch.

\vspace{1em}
\begin{tblr}{width=\textwidth, colspec={|c|c|c|X[c]|c|}}
\hline
\SetRow{lightgray} \SetCell[c=5]{l} \textbf{Test results} \\ \hline
\textbf{Time step} & 1 & 2 & ... & 11 \\ \hline
\SetRow{lightgray!50} \SetCell[c=5]{l} \textit{Mask parameters} \\ \hline
\textbf{Thresh\_up} & 0 & 0.1 & ... & -1.1 \\ \hline
\textbf{Thresh\_down} & 0 & 0.1 & ... & -1.1 \\ \hline
\SetRow{lightgray!50} \SetCell[c=5]{l} \textit{Controller parameters} \\ \hline
\textbf{Thresh\_down} & 0 & 0.1 & ... & -1.1 \\ \hline
\textbf{Thresh\_up} & 0 & 0.1 & ... & -1.1 \\ \hline
\textbf{Exp. Thresh\_down} & 0 & 0.1 & ... & -1.1 \\ \hline
\textbf{Exp. Thresh\_up} & 0 & 0.1 & ... & -1.1 \\ \hline
\end{tblr}
\vspace{1ex}

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

\vspace{1em}
\begin{tblr}{width=\textwidth, colspec={|c|c|c|X[c]|c|}}
\hline
\SetRow{lightgray} \SetCell[c=5]{l} \textbf{Test results} \\ \hline
\textbf{Time step} & 1 & 2 & ... & 11 \\ \hline
\SetRow{lightgray!50} \SetCell[c=5]{l} \textit{Mask parameters} \\ \hline
\textbf{Thresh\_up} & 0 & 0.1 & ... & -1.1 \\ \hline
\textbf{Thresh\_down} & 0 & 0.1 & ... & -1.1 \\ \hline
\SetRow{lightgray!50} \SetCell[c=5]{l} \textit{Controller parameters} \\ \hline
\textbf{Thresh\_down} & 0 & 0.1 & ... & -1.1 \\ \hline
\textbf{Thresh\_up} & 0 & 0.1 & ... & -1.1 \\ \hline
\textbf{Exp. Thresh\_down} & 0 & 0.1 & ... & -1.1 \\ \hline
\textbf{Exp. Thresh\_up} & 0 & 0.1 & ... & -1.1 \\ \hline
\end{tblr}
\vspace{1ex}

\begin{XtoCtabular}{Test settings}
Tolerance Thresh\_down & $\pm$3,0000e-08 \\ \hline
Tolerance Thresh\_up & $\pm$3,0000e-08 \\ \hline
\end{XtoCtabular}

\begin{XtoCtabular}{Test statistics}
Min CPU cycles & 983 \\ \hline
Max CPU cycles & 1641 \\ \hline
Avg CPU cycles & 1578 \\ \hline
\end{XtoCtabular}
