\documentclass[a4paper,12pt,oneside,pdflatex,italian,final,twocolumn]{article} \usepackage[utf8]{inputenc} \usepackage{parallel} \usepackage{siunitx} \usepackage{booktabs} \usepackage{fancyhdr} \usepackage[export]{adjustbox} \usepackage[margin=0.5in]{geometry} \addtolength{\topmargin}{0in} \usepackage{libertine} \renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document is to be sans serif \usepackage[T1]{fontenc} \title{ ADS1015 } \author{ Nick Felker } \date{ 2019 } \begin{document} \pagestyle{fancy} \lhead{ Nick Felker } \chead { 2019 } \rhead{ ADS1015 v0.1.0 } \onecolumn \begin{figure} \begin{minipage}{0.47\textwidth} \section{Overview} Texas Instruments Analog-Digital Converter \begin{itemize} \item Device address 73 \item Address type 7-bit \item Little Endian \end{itemize} \end{minipage} \hfill \end{figure} \section{Register Description} \begin{itemize} \item ADC config - Describes the specifics of the sensing implementation \item ADC Value - Conversion register contains the result of the last conversion \end{itemize} \section{Technical specification} \centering \begin{tabular}{lcrr} \toprule & Register Name & Register Address & Register Length \\ \midrule Config & ADC config & 1 & 16 \\ Conversion & ADC Value & 0 & 16 \\ \bottomrule \end{tabular} \raggedright \section{Fields} \raggedright \subsection{Register Config} \centering \begin{tabular}{lcr} \toprule & Field Name & Bits \\ \midrule Channel & Set the channel to read & 14:12 \\ DeviceOperatingMode & Set the operating mode & 8 \\ ProgrammableGain & Setup programmable gain & 11:9 \\ SampleRate & Setup sample rate for reading analog voltage & 7:5 \\ \bottomrule \end{tabular} \raggedright \subsubsection{Field Channel } This sets the channel for reading analog voltage \begin{itemize} \item CHANNEL\_1 (0) - Channel 1 \item CHANNEL\_2 (1) - Channel 2 \item CHANNEL\_3 (2) - Channel 3 \item CHANNEL\_4 (3) - Channel 4 \end{itemize} \raggedright \subsubsection{Field DeviceOperatingMode } This bit controls the operating mode \begin{itemize} \item CONTINUOUS\_CONVERSION (0) - Continuous Conversion \item SINGLE\_SHOT (1) - Single-shot or power-down state \end{itemize} \raggedright \subsubsection{Field ProgrammableGain } This sets the programmable gain for reading analog voltage \begin{itemize} \item PGA0\_256 (5) - Plus/minus 0.256V \item PGA0\_512 (4) - Plus/minus 0.512V \item PGA1\_024V (3) - Plus/minus 1.024V \item PGA2\_048V (2) - Plus/minus 2.048V \item PGA4\_096V (1) - Plus/minus 4.096V \item PGA6\_144V (0) - Plus/minus 6.144V \end{itemize} \raggedright \subsubsection{Field SampleRate } This sets the samples-per-second value \begin{itemize} \item HZ128 (0) - 128 samples/second \item HZ1600 (4) - 1600 samples/second \item HZ2400 (5) - 2400 samples/second \item HZ250 (1) - 250 samples/second \item HZ3300 (6) - 3300 samples/second \item HZ490 (2) - 490 samples/second \item HZ920 (3) - 920 samples/second \end{itemize} \raggedright \section{Functions} \centering \begin{tabular}{lc} \toprule & Description \\ \midrule analog & Reads the analog voltage in Volts \\ \bottomrule \end{tabular} \raggedright \subsection{Function analog } Reads the analog voltage in Volts \\ \centering \begin{tabular}{lcr} \toprule & Inputs & Return \\ \midrule read & channel (int8) & processed \\ \bottomrule \end{tabular} \raggedright \end{document}