\documentclass[10pt]{datasheet}
\usepackage{palatino}
\usepackage{textgreek}
\usepackage{minted}
\usepackage{tcolorbox}
\usepackage{etoolbox}

\usepackage[justification=centering]{caption}

\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[english]{isodate}

\usepackage{graphicx}
\usepackage{subfig}

\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{circuitikz}
\usepackage{pifont}
\usetikzlibrary{calc}
\usetikzlibrary{fit,backgrounds} 

\title{5518 BNC-IDC / 5528 SMA-IDC}
\author{M-Labs Limited}
\date{January 2022}
\revision{Revision 1}
\companylogo{\includegraphics[height=0.73in]{artiq_sinara.pdf}}

\begin{document}
\maketitle

\section{Features}

\begin{itemize}
    \item{8 channels.}
    \item{Internal IDC connector.}
    \item{External BNC or SMA connectors.}
\end{itemize}

\section{Applications}

\begin{itemize}
    \item{Breaks out analog signals.}
    \item{BNC or SMA adapters for: \begin{itemize}
        \item{5432 DAC Zotino}
        \item{5632 DAC Fastino}
    \end{itemize}}
    \item{(5528 only) SMA adapter for 5108 Sampler.}
    \item{Convert from/to HD68 with 5568 HD68-IDC.}
\end{itemize}

\section{General Description}
The 5518 BNC-IDC card is a 8hp EEM module, while the 5528 SMA-IDC card is a 4hp EEM module.
Both adapter cards break out analog signal from IDC connectors to BNC (5518) or SMA (5528).
IDC connectors can be found on 5108 Sampler, 5432 DAC Zotino, 5632 DAC Fastino \& 5568 HD68-IDC.

Each card provides 8 channels, with BNC (5518) or SMA (5528) connectors.
Breaking out all 32 channels from 5432 DAC Zotino, 5632 DAC Fastino or 5568 HD68-IDC requires 4 BNC/SMA-IDC cards.
Only 1 BNC/SMA-IDC is required to break out all 8 ADC channels from a 5108 Sampler.

% Switch to next column
\vfill\break

\newcommand*{\MyLabel}[3][2cm]{\parbox{#1}{\centering #2 \\ #3}}
\newcommand*{\MymyLabel}[3][4cm]{\parbox{#1}{\centering #2 \\ #3}}
\newcommand{\repeatfootnote}[1]{\textsuperscript{\ref{#1}}}
\newcommand{\inputcolorboxminted}[2]{%
    \begin{tcolorbox}[colback=white]
    \inputminted[#1, gobble=4]{python}{#2}
    \end{tcolorbox}
}

\begin{figure}[h]
    \centering
    \scalebox{0.95}{
    \begin{circuitikz}[european, scale=1.2, every label/.append style={align=center}]

        \begin{scope}[]

            % Node to pin-point the locations of IO symbols
            \draw[color=white, text=black] (-0.1,  2.45) node[twoportshape, circuitikz/bipoles/twoport/width=1.2, scale=0.4 ] (io0) {};
            \draw[color=white, text=black] (-0.1,  1.75) node[twoportshape, circuitikz/bipoles/twoport/width=1.2, scale=0.4 ] (io1) {};
            \draw[color=white, text=black] (-0.1,  1.05) node[twoportshape, circuitikz/bipoles/twoport/width=1.2, scale=0.4 ] (io2) {};
            \draw[color=white, text=black] (-0.1,  0.35) node[twoportshape, circuitikz/bipoles/twoport/width=1.2, scale=0.4 ] (io3) {};
            \draw[color=white, text=black] (-0.1, -0.35) node[twoportshape, circuitikz/bipoles/twoport/width=1.2, scale=0.4 ] (io4) {};
            \draw[color=white, text=black] (-0.1, -1.05) node[twoportshape, circuitikz/bipoles/twoport/width=1.2, scale=0.4 ] (io5) {};
            \draw[color=white, text=black] (-0.1, -1.75) node[twoportshape, circuitikz/bipoles/twoport/width=1.2, scale=0.4 ] (io6) {};
            \draw[color=white, text=black] (-0.1, -2.45) node[twoportshape, circuitikz/bipoles/twoport/width=1.2, scale=0.4 ] (io7) {};

            % Labels for all IO symbols
            \node [label=left:\tiny{IO 0}] at (0.25,  2.45) {};
            \node [label=left:\tiny{IO 1}] at (0.25,  1.75) {};
            \node [label=left:\tiny{IO 2}] at (0.25,  1.05) {};
            \node [label=left:\tiny{IO 3}] at (0.25,  0.35) {};
            \node [label=left:\tiny{IO 4}] at (0.25, -0.35) {};
            \node [label=left:\tiny{IO 5}] at (0.25, -1.05) {};
            \node [label=left:\tiny{IO 6}] at (0.25, -1.75) {};
            \node [label=left:\tiny{IO 7}] at (0.25, -2.45) {};

            % draw all IO symbols
            \begin{scope}[scale=0.07 , rotate=-90, xshift=35cm, yshift=2cm]
                \draw (0,0.65) -- (0,3);
                \clip (-1.5,0) rectangle (1.5,1.5);
                \draw (0,0) circle(1.5);
                \clip (-0.8,0) rectangle (0.8,0.8);
                \draw (0,0) circle(0.8);
            \end{scope}
            \begin{scope}[scale=0.07 , rotate=-90, xshift=25cm, yshift=2cm]
                \draw (0,0.65) -- (0,3);
                \clip (-1.5,0) rectangle (1.5,1.5);
                \draw (0,0) circle(1.5);
                \clip (-0.8,0) rectangle (0.8,0.8);
                \draw (0,0) circle(0.8);
            \end{scope}
            \begin{scope}[scale=0.07 , rotate=-90, xshift=15cm, yshift=2cm]
                \draw (0,0.65) -- (0,3);
                \clip (-1.5,0) rectangle (1.5,1.5);
                \draw (0,0) circle(1.5);
                \clip (-0.8,0) rectangle (0.8,0.8);
                \draw (0,0) circle(0.8);
            \end{scope}
            \begin{scope}[scale=0.07 , rotate=-90, xshift=5cm, yshift=2cm]
                \draw (0,0.65) -- (0,3);
                \clip (-1.5,0) rectangle (1.5,1.5);
                \draw (0,0) circle(1.5);
                \clip (-0.8,0) rectangle (0.8,0.8);
                \draw (0,0) circle(0.8);
            \end{scope}                        
            \begin{scope}[scale=0.07 , rotate=-90, xshift=-5cm, yshift=2cm]
                \draw (0,0.65) -- (0,3);
                \clip (-1.5,0) rectangle (1.5,1.5);
                \draw (0,0) circle(1.5);
                \clip (-0.8,0) rectangle (0.8,0.8);
                \draw (0,0) circle(0.8);
            \end{scope} 
            \begin{scope}[scale=0.07 , rotate=-90, xshift=-15cm, yshift=2cm]
                \draw (0,0.65) -- (0,3);
                \clip (-1.5,0) rectangle (1.5,1.5);
                \draw (0,0) circle(1.5);
                \clip (-0.8,0) rectangle (0.8,0.8);
                \draw (0,0) circle(0.8);
            \end{scope}
            \begin{scope}[scale=0.07 , rotate=-90, xshift=-25cm, yshift=2cm]
                \draw (0,0.65) -- (0,3);
                \clip (-1.5,0) rectangle (1.5,1.5);
                \draw (0,0) circle(1.5);
                \clip (-0.8,0) rectangle (0.8,0.8);
                \draw (0,0) circle(0.8);
            \end{scope}
            \begin{scope}[scale=0.07 , rotate=-90, xshift=-35cm, yshift=2cm]
                \draw (0,0.65) -- (0,3);
                \clip (-1.5,0) rectangle (1.5,1.5);
                \draw (0,0) circle(1.5);
                \clip (-0.8,0) rectangle (0.8,0.8);
                \draw (0,0) circle(0.8);
            \end{scope}

            % Draw CH0, CH1 & CH7 CM chokes
            \draw (3,  1.2) node[twoportshape, t=\MymyLabel{Common Mode}{Line Filter}, circuitikz/bipoles/twoport/width=2.2, scale=0.6] (cm0) {};
            \draw (3,  0.4) node[twoportshape, t=\MymyLabel{Common Mode}{Line Filter}, circuitikz/bipoles/twoport/width=2.2, scale=0.6] (cm1) {};
            \draw (3, -1.1) node[twoportshape, t=\MymyLabel{Common Mode}{Line Filter}, circuitikz/bipoles/twoport/width=2.2, scale=0.6] (cm7) {};

            % Omission dots for other channels
            \node at (3, -0.15)[circle,fill,inner sep=0.7pt]{};
            \node at (3, -0.35)[circle,fill,inner sep=0.7pt]{};
            \node at (3, -0.55)[circle,fill,inner sep=0.7pt]{};

            % IDC26 connector
            \draw (5.13, 0) node[twoportshape, t={IDC Port}, circuitikz/bipoles/twoport/width=3.8, scale=0.7, rotate=-90] (idc) {};

            % Connect IO connectors to CM chokes
            \draw [latexslim-latexslim] (io0.east) -- (1.3,  2.45) -- (1.3,  1.2) -- (cm0.west);
            \draw [latexslim-latexslim] (io1.east) -- (1.2,  1.75) -- (1.2,  0.4) -- (cm1.west);
            \draw [latexslim-latexslim] (io2.east) -- (1.1,  1.05) -- (1.1, -0.15) -- (2.5, -0.15);
            \draw [latexslim-latexslim] (io3.east) -- (1.0,  0.35) -- (1.0, -0.25) -- (2.5, -0.25);
            \draw [latexslim-latexslim] (io4.east) -- (1.0, -0.35) -- (1.0, -0.35) -- (2.5, -0.35);
            \draw [latexslim-latexslim] (io5.east) -- (1.1, -1.05) -- (1.1, -0.45) -- (2.5, -0.45);
            \draw [latexslim-latexslim] (io6.east) -- (1.2, -1.75) -- (1.2, -0.55) -- (2.5, -0.55);
            \draw [latexslim-latexslim] (io7.east) -- (1.3, -2.45) -- (1.3, -1.1) -- (cm7.west);

            % Connect CM chokes to the IDC connector
            \draw [latexslim-latexslim] (cm0.east) -- (4.85,  1.2);
            \draw [latexslim-latexslim] (cm1.east) -- (4.85,  0.4);
            \draw [latexslim-latexslim] (3.5, -0.15) -- ++(1.35, 0);
            \draw [latexslim-latexslim] (3.5, -0.25) -- ++(1.35, 0);
            \draw [latexslim-latexslim] (3.5, -0.35) -- ++(1.35, 0);
            \draw [latexslim-latexslim] (3.5, -0.45) -- ++(1.35, 0);
            \draw [latexslim-latexslim] (3.5, -0.55) -- ++(1.35, 0);
            \draw [latexslim-latexslim] (cm7.east) -- (4.85, -1.1);

        \end{scope}

    \end{circuitikz}
    }

    \caption{Simplified Block Diagram}
\end{figure}

\begin{figure}[hbt!]
    \centering
    \subfloat[\centering BNC-IDC]{{
        \includegraphics[height=2.5in]{BNC_IDC_FP.jpg}
        \includegraphics[height=2.5in]{photo5518.jpg}
    }}%
    \subfloat[\centering SMA-IDC]{{
        \quad
        \includegraphics[height=2.5in]{SMA_IDC_FP.pdf}
        \quad
    }}%
    \caption{BNC-IDC/SMA-IDC Card photos}%
    \label{fig:example}%
\end{figure}

% For wide tables, a single column layout is better. It can be switched
% page-by-page.
\onecolumn

\section{Electrical Specifications}

Specifications of parameters are based on the datasheet of the
common mode line filter\footnote{\label{cm_choke}https://www.we-online.com/catalog/datasheet/744229.pdf}.
\begin{table}[h]
\centering
\begin{threeparttable}
\caption{Electrical Specifications}
\begin{tabularx}{0.65\textwidth}{l | c | c | c | X}
    \thickhline
    \textbf{Parameter} & \textbf{Symbol} & \textbf{Max. Value} & \textbf{Unit} & \textbf{Conditions} \\
    \hline
    Rated voltage & $V_{R}$ & 80 & V & \\
    \hline
    Rated current & $I_{R}$ & 400 & mA & $\Delta T^{*}=40K$ \\
    \thickhline
\end{tabularx}
*$\Delta T$ refers to the temperature of the CM line filter minus the ambient.
\end{threeparttable}
\end{table}

Impedance characteristics of common mode \& differential mode signal at different frequencies are shown in the following graph.

\begin{figure}[H]
    \centering
    \includegraphics[]{idc_cm_choke.pdf}
    \caption{Common Mode Line Filter Impedance Characteristics}
\end{figure}

\newpage

\section{Channel Mapping}
The following table shows the corresponding channel number of the BNC/SMA-IDC adapter IO ports, when it is connected to Sinara cards that support IDC connections.
\begin{table}[h]
    \caption{Channel Mapping of BNC/SMA-IDC to Zotino, Fastino \& HD68-IDC}
    \centering
    \begin{tabular}{|c|c|c|c|c|c|c|c|c|}
    \hline
    IDC Port Label & \multicolumn{1}{l|}{IO 0} & \multicolumn{1}{l|}{IO 1} & \multicolumn{1}{l|}{IO 2} & \multicolumn{1}{l|}{IO 3} & \multicolumn{1}{l|}{IO 4} & \multicolumn{1}{l|}{IO 5} & \multicolumn{1}{l|}{IO 6} & \multicolumn{1}{l|}{IO 7} \\ \hline
    CH 0-7         & 0                         & 1                         & 2                         & 3                         & 4                         & 5                         & 6                         & 7                         \\ \hline
    CH 8-15        & 8                         & 9                         & 10                        & 11                        & 12                        & 13                        & 14                        & 15                        \\ \hline
    CH 16-23       & 16                        & 17                        & 18                        & 19                        & 20                        & 21                        & 22                        & 23                        \\ \hline
    CH 24-31       & 24                        & 25                        & 26                        & 27                        & 28                        & 29                        & 30                        & 31                        \\ \hline
    \end{tabular}
\end{table}

\begin{table}[h]
    \caption{Channel Mapping of BNC/SMA-IDC to 5108 Sampler}
    \centering
    \begin{tabular}{|l|l|l|l|l|l|l|l|l|}
    \hline
                    & IO 0                   & IO 1                   & IO 2                   & IO 3                   & IO 4                   & IO 5                   & IO 6                   & IO 7                   \\ \hline
    Sampler Ch. & \multicolumn{1}{c|}{7} & \multicolumn{1}{c|}{6} & \multicolumn{1}{c|}{5} & \multicolumn{1}{c|}{4} & \multicolumn{1}{c|}{3} & \multicolumn{1}{c|}{2} & \multicolumn{1}{c|}{1} & \multicolumn{1}{c|}{0} \\ \hline
    \end{tabular}
\end{table}

\section{Front Panel Drawings}

\begin{multicols}{2}

\begin{center}
    \centering
    \includegraphics[height=2.7in]{bnc_idc_drawings.pdf}
    \captionof{figure}{5518 BNC-IDC front panel drawings}
\end{center}

\begin{center}
    \captionof{table}{Bill of Material (5518 Standalone)}
    \tiny
    \begin{tabular}{|c|c|c|c|}
    \hline
    Index & Part No. & Qty & Description \\ \hline
    1 & 90506946 & 1 & FP-FRONT PANEL, EXTRUDED, TYPE 2, STATIC, 3Ux8HP \\ \hline
    2 & 3218843 & 2 & FP-ALIGNMENT PIN (LOCALIZATION) \\ \hline
    3 & 3020716 & 0.04 & SLEEVE GREY PLAS.M2.5 (100PCS) \\ \hline
    \end{tabular}
\end{center}

\columnbreak

\begin{center}
    \centering
    \includegraphics[height=2.7in]{bnc_idc_assembly.pdf}
    \captionof{figure}{5518 BNC-IDC front panel assembly}
\end{center}

\begin{center}
    \captionof{table}{Bill of Material (5518 Assembled)}
    \tiny
    \begin{tabular}{|c|c|c|c|}
    \hline
    Index & Part No. & Qty & Description \\ \hline
    1 & 90506946 & 1 & FP-LYKJ 3U8HP PANEL \\ \hline
    2 & 3033098 & 0.04 & SCREW COLLAR M2.5X12.3 (100X) \\ \hline
    3 & 3040138 & 2 & PB HOLDER DIE-CAST \\ \hline
    4 & 3001012 & 2 & SCR M2.5*6 PAN PHL NI DIN7985 \\ \hline
    5 & 3010110 & 0.02 & WASHER PLN.M2.7 DIN125 (100X) \\ \hline
    6 & 3201099 & 0.01 & SCR M2.5*8 OVL PHL ST NI (100EA) \\ \hline
    7 & 3040005 & 1 & HANDLE 8HP GREY PLASTIC \\ \hline
    8 & 3207076 & 0.01 & SCR M2.5*16 PAN 100 21101-222 \\ \hline
    9 & 3201130 & 0.01 & NUT M2.5 HEX ST NI KIT (100PCS) \\ \hline
    10 & 3211232 & 1 & SCR M2.5*14 PAN PHL SS \\ \hline
    11 & 3010124 & 0.1 & EMC GASKET FABRIC 3U (10PCS) \\ \hline
    \end{tabular}
\end{center}
\end{multicols}

\begin{multicols}{2}

    \begin{center}
        \centering
        \includegraphics[height=3in]{sma_idc_drawings.pdf}
        \captionof{figure}{5528 SMA-IDC front panel drawings}
    \end{center}
    
    \begin{center}
        \captionof{table}{Bill of Material (5528 Standalone)}
        \tiny
        \begin{tabular}{|c|c|c|c|}
        \hline
        Index & Part No. & Qty & Description \\ \hline
        1 & 90506946 & 1 & FRONT PANEL 3U 4HP PIU TYPE2 \\ \hline
        2 & 3020716 & 0.02 & SLEEVE GREY PLAS.M2.5 (100PCS) \\ \hline
        3 & 3218843 & 2 & FP-ALIGNMENT PIN (LOCALIZATION) \\ \hline
        \end{tabular}
    \end{center}
    
    \columnbreak
    
    \begin{center}
        \centering
        \includegraphics[height=3in]{sma_idc_assembly.pdf}
        \captionof{figure}{5528 SMA-IDC front panel assembly}
    \end{center}
    
    \begin{center}
        \captionof{table}{Bill of Material (5528 Assembled)}
        \tiny
        \begin{tabular}{|c|c|c|c|}
        \hline
        Index & Part No. & Qty & Description \\ \hline
        1 & 90506949 & 1 & FP-LYKJ 3U4HP PANEL \\ \hline
        2 & 3001012 & 2 & SCR M2.5*6 PAN PHL NI DIN7985 \\ \hline
        3 & 3010110 & 0.02 & WASHER PLN.M2.7 DIN125 (100X) \\ \hline
        4 & 3010124 & 0.1 & EMC GASKET FABRIC 3U (10PCS) \\ \hline
        5 & 3040012 & 1 & HANDLE 4HP GREY PLASTIC \\ \hline
        6 & 3040138 & 2 & PB HOLDER DIE-CAST \\ \hline
        7 & 3201099 & 0.01 & SCR M2.5*8 OVL PHL ST NI (100EA) \\ \hline
        8 & 3207075 & 0.01 & SCR M2.5*12 PAN 100 21101-221 \\ \hline
        9 & 3033098 & 0.02 & SCREW COLLAR M2.5X12.3 (100X) \\ \hline
        \end{tabular}
    \end{center}
\end{multicols}

\section{Ordering Information}
To order, please visit \url{https://m-labs.hk} and select the 5518 BNC-IDC/5528 SMA-IDC in the ARTIQ Sinara crate configuration tool.
The card may also be ordered separately by writing to \url{mailto:sales@m-labs.hk}.

\section*{}
\vspace*{\fill}

\begin{footnotesize}
Information furnished by M-Labs Limited is provided in good faith in the hope that it will be useful. However, no responsibility is assumed by M-Labs Limited for its use. Specifications may be subject to change without notice.
\end{footnotesize}

\end{document}
