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

\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 & ... & 7 \\ \hline
\textbf{CPU cycles} & 41 & 41 & 41 & 41 & ... & 41 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Inputs} \\ \hline
\textbf{In1 (DSP)} & 0 & 0 & 0 & 0 & ... & 1 \\ \hline
\textbf{In2 (DSP)} & 0 & 0 & 0 & 0 & ... & 1 \\ \hline
\textbf{In1} & 0 & 0.1 & 0.2 & 0.3 & ... & 1.1 \\ \hline
\textbf{In2} & 0.1 & 0.2 & 0.3 & 0.4 & ... & 1.2 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Parameters} \\ \hline
\textbf{Toggle} & \SetCell[c=6]{c}0 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Outputs} \\ \hline
\textbf{Out} & 0 & 0 & 0 & 0 & ... & 1 \\ \hline
\textbf{Exp. Out} & 0 & 0 & 0 & 0 & ... & 1 \\ \hline
\textbf{Out (DSP)} & 0 & 0 & 0 & 0 & ... & 1 \\ \hline
\textbf{Exp. Out (DSP)} & 0 & 0 & 0 & 0 & ... & 1 \\ \hline
\end{tblr}
\vspace{1ex}

\begin{XtoCtabular}{Test settings}
Tolerance Out & $\pm$7,8125e-03 ($\pm$0 LSB) \\ \hline
\end{XtoCtabular}

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

\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 & ... & 10 \\ \hline
\textbf{CPU cycles} & 41 & 41 & 41 & 41 & ... & 41 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Inputs} \\ \hline
\textbf{In1 (DSP)} & \SetCell[c=6]{c}1 \\ \hline
\textbf{In2 (DSP)} & \SetCell[c=6]{c}0 \\ \hline
\textbf{In1} & \SetCell[c=6]{c}1 \\ \hline
\textbf{In2} & \SetCell[c=6]{c}0 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Parameters} \\ \hline
\textbf{Toggle} & 0 & 0.1 & 1 & 2 & ... & -3 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Outputs} \\ \hline
\textbf{Out} & 1 & 0 & 0 & 0 & ... & 0 \\ \hline
\textbf{Exp. Out} & 1 & 0 & 0 & 0 & ... & 0 \\ \hline
\textbf{Out (DSP)} & 1 & 0 & 0 & 0 & ... & 0 \\ \hline
\textbf{Exp. Out (DSP)} & 1 & 0 & 0 & 0 & ... & 0 \\ \hline
\end{tblr}
\vspace{1ex}

\begin{XtoCtabular}{Test settings}
Tolerance Out & $\pm$7,8125e-03 ($\pm$0 LSB) \\ \hline
\end{XtoCtabular}

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

\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 & ... & 10 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Mask parameters} \\ \hline
\textbf{Toggle} & 0 & 0.1 & 1 & 2 & ... & -3 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Controller parameters} \\ \hline
\textbf{Toggle} & 0 & 1 & 1 & 1 & ... & 1 \\ \hline
\textbf{Exp. Toggle} & 0 & 1 & 1 & 1 & ... & 1 \\ \hline
\end{tblr}
\vspace{1ex}

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

\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 & ... & 10 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Mask parameters} \\ \hline
\textbf{Toggle} & 0 & 0.1 & 1 & 2 & ... & -3 \\ \hline
\SetRow{lightgray!50} \SetCell[c=7]{l} \textit{Controller parameters} \\ \hline
\textbf{Toggle} & 0 & 1 & 1 & 1 & ... & 1 \\ \hline
\textbf{Exp. Toggle} & 0 & 1 & 1 & 1 & ... & 1 \\ \hline
\end{tblr}
\vspace{1ex}

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

\begin{XtoCtabular}{Test statistics}
Min CPU cycles & 520 \\ \hline
Max CPU cycles & 546 \\ \hline
Avg CPU cycles & 527 \\ \hline
\end{XtoCtabular}
