]> jspc29.x-matter.uni-frankfurt.de Git - daqdocu.git/commitdiff
new SPI features, JM
authorhadeshyp <hadeshyp>
Thu, 3 Jan 2013 17:33:33 +0000 (17:33 +0000)
committerhadeshyp <hadeshyp>
Thu, 3 Jan 2013 17:33:33 +0000 (17:33 +0000)
trb3/DacProgramming.tex
trb3/GbEGettingStarted.tex
trb3/Trb3GeneralRemarks.tex
trb3/WasaFrontend.tex
trb3/trb3qs_webinterface.tex

index 583520b5cf37b4275e8d2ec5d17c5053fb3e57d6..1b8dfff0115151ec69a55aa20e6765ae01a12c77 100644 (file)
@@ -9,6 +9,8 @@ Programming the DAC for threshold generation is simple: A standard SPI interface
  \item Doing a memory write with 18 words will do the job, should be faster than two individual accesses for data and length.
  \item All data is sent MSB first (Bit 31), Bits 31-24 are the don't-care-Bits of the DAC. 
  \item Interface speed: e.g. 6.25 MHz -> max. 80us for 16 chips
+ \item If a chain contains only one device, up to 16 commands can be sent to this device with one access. Bit 7 in length register 0xd411 has to be set to select this multi-write to single device mode.
+ \item Register 0xd412 contains the read-back of data from SPI. Content depends on slave chip.
 \end{itemize*}
 
 \paragraph*{Configuration File}
index fe85f2876bca6adaaef1f71e38332b62ea0d5b08..53f602a323e1267d0852d1be0eb9fb7d07a027d5 100644 (file)
@@ -65,6 +65,11 @@ and then restart the daemon:
  rcrpcbind restart
 \end{verbatim}
  
+If you have a running instance of trbnetd and want to know to which TRB3 it connects:
+\begin{verbatim}
+ cat /proc/$(pgrep -f "trbnetd")/environ | strings | grep TRB3
+\end{verbatim}
+
 
 \subsubsection{Trbcmd server}
 \begin{itemize*}
@@ -77,3 +82,5 @@ and then restart the daemon:
 
 \subsubsection{Usage}
 Now you are ready to use the trbcmd in the same way as it is for the normal HADES system.
+
+
index 4f12a7da1a0dbda2956cc6263fbbdddfdce1d6ef..37aed2110f6c7aae5761e18b41338b32bfbd37fa 100644 (file)
@@ -62,7 +62,7 @@ The lower 16 Bit are used to identify the contents of the design and the AddOn b
   \item[0040]  sends triggers to optical link SFP1
   \item[0080]  sends slow-control to optical link SFP1
 \end{description*}
-\item[Peripheral FPGA]~
+\item[Peripheral FPGA (also CBM-RICH and other derivates)]~
 \begin{description*}
   \item[0XXX]  use with ADA adapter board AddOn version 1
   \item[1XXX]  use with ADA adapter board AddOn version 2
@@ -72,6 +72,8 @@ The lower 16 Bit are used to identify the contents of the design and the AddOn b
   \item[X0nX]  contains $2^n$ TDC channels, single edge
   \item[X1nX]  contains $2^n$ TDC channels, double edge
   \item[X2XX]  contains a network hub
+  \item[X4XX]  SPI interface on AddOn connector
+  \item[X8XX]  Double edge TDC realized with two single edge channels
 \end{description*}
 \end{description*}
 
@@ -86,6 +88,8 @@ All boards of a given type are accessible by a broadcast address at the same tim
  \item 0x42 for a design for FPGA 2 only
  \item 0x43 for a design for FPGA 3 only
  \item 0x44 for a design for FPGA 4 only
+ \item 0x48 TDC design for peripheral FPGA
+ \item 0x50 CBM-Rich
 \end{itemize*}
 
 The initial address set with \signal{Regio\_Init\_Address} can be chosen from the following set:
index e0c6f9a0c19f2a911e1da1a95a1a72e287de6178..43fcdeb41a579c237ca734213e2c19e54206ec1f 100644 (file)
@@ -13,16 +13,14 @@ The device contains:
 
 \subsubsection{Configuration}
 All configuration is done via a single-device SPI bus. The interface is kept similar to the LTC2600 to use the same SPI master code.
+Note that up to 16 commands can be sent to a board with one trbnet access: Load all commands to registers 0xd400 - 0xd40f, set the correct amount in 0xd411 plus Bit 7 to select the multi-write mode.
 
 \begin{table}
  \begin{tabularx}{\textwidth}{c|c|X}
 \textbf{Bits} & \textbf{Name} & \textbf{Content} \\
 \hline
 31 -- 24 & Select & See table \ref{tab:spiselect}\\
-23 -- 20 & Command & Command, similar to LTC2600:\newline
-0: write\newline
-8: read\newline
-other: no operation \\
+23 -- 20 & Command & Command, 0: read, 8: write, other: no operation \\
 19 -- 16 & Channel & Channel / Register select (0 -- 15)\\
 15 -- 0\newline (\& following$\dagger$)& Data & 16 Bit data payload for write commands\\
 
@@ -38,11 +36,11 @@ other: no operation \\
 \hline
 0x00 & PWM & Write/read settings for PWM channels 0 - 15.\\
 0x10 & UId / Temperature & read unique id. 64 Bit Id is divided in 4 16 Bit words, in registers 0 - 3. Temperature is available in register 4. (r/o)\\
-0x20 & I/O $\dagger$& Register 0 contains one bit per input. 0: enable (default), 1: disable.\newline Register 1 shows the current status of the pin.\newline Register 2 Write: Override LED status. Bit 0-3: LED in alphabetical order. Bit 4: enable override. Read: LED status. \\
-0x40 & Memory & Read/Write to/from RAM. 16 registers with 16 Bit each. (Payload is written to/sent from subsequent registers $\dagger$)\\
-0x50 & Flash $\dagger$& Write RAM content to Flash. No data payload\\
-0x51 & Flash $\dagger$& Load RAM content from Flash. No data payload\\
-0x52 & Flash $\dagger$& Load RAM content as PWM settings. No data payload\\
+0x20 & I/O & Register 0 contains one bit per input. 0: enable (default), 1: disable.\newline Register 1 shows the current status of the pin.\newline Register 2 Write: Override LED status. Bit 0-3: LED in alphabetical order. Bit 4: enable override. Read: LED status.\newline Register 3: 4 Bit to select one input to be routed to test output (SPARE\_LINE 5\&6) \\
+0x40 & Memory & Read/Write to/from RAM. 16 registers with 8 Bit each.\\
+0x50 & Flash & Execute Flash command. Bit 14-12: Command (0:read, 2:write, 4:enable flash, 5:disable flash, 7:erase, Bit 11-0: Flash page\\
+0x51 & Flash & Load RAM content to PWM settings. Channel Bit 0 selects upper or lower half of PWM channels. No data payload\\
+0x52 & Flash $\dagger$& Load RAM content from Flash. No data payload\\
  \end{tabularx} 
 \caption{SPI component selection}
 \label{tab:spiselect}
index a57104664282059ed1246a326f86c5a90a47276e..f97502e449e2ddd91b13440dca7deb09e569a353 100644 (file)
@@ -1,24 +1,28 @@
 \section{Web interface}
 
-\subsection{CTS monitor}
-
 Now in your browser open the page \verb+ctshost:1234+, where \verb+ctshost+ is
-the machine when CTS server is started.
+the machine when CTS server is started. If the CTS server is running we can also have access to configuration pages for
+different components, described in following parts.
+
+
+\begin{description}
+\item[/] Main page with links to all individual screens
+\item[cts.htm] The main control screen for all CTS functions 
+\item[tdc/tdc.htm] The TDC status - input status, hit counter, status registers and control function to enable individual inputs
+\item[network/gbe.htm] The Gigabit Ethernet status information
+\item[thresh/threshold.htm] Manual setting of thresholds for CBM-Rich and Padiwa boards
+\item[padiwa/padiwa.htm] Temperature, IDs and threshold information about Padiwa front-ends
+\end{description}
+
+Note: All pages despite the CTS monitor fetch data directly from the DAQ network. Make sure that you don't read too often or from too many open browser windows at the same time. 
 
 \begin{figure}[!ht]
  \centering
  \includegraphics[width=1.0\textwidth]{trb3qs_img/CTS}
- \caption{Screenshoot of the CTS window. In this example the Pulser \#0 with
+ \caption{Screenshot of the CTS window. In this example the Pulser \#0 with
 frequency 1~MHz is used as a trigger source.}
 \end{figure}
 
-If the CTS server is running we can also have access to configuration pages for
-different components, described in following parts.
-
-\subsection{TDC settings}
-
-Under the address \verb+http://ctshost:1234/thresh/tdc.htm+ we can configure
-TDCs.
 
 \begin{figure}[!ht]
  \centering
@@ -26,24 +30,16 @@ TDCs.
  \caption{TDC settings panel}
 \end{figure}
 
-\subsection{Gigabit Ethernet settings}
-
-Under the address \verb+http://ctshost:1234/thresh/gbe.htm+ we can configure
-GbE registers.
-
 \begin{figure}[!ht]
  \centering
  \includegraphics[width=1.0\textwidth]{trb3qs_img/GbEregs}
  \caption{Gigabit Ethernet settings panel}
 \end{figure}
 
-\subsection{Threshold for different modules}
-
-Under the address \verb+http://ctshost:1234/thresh/threshold.htm+ we can set
-threshold for different modules.
-
 \begin{figure}[!ht]
  \centering
  \includegraphics[width=1.0\textwidth]{trb3qs_img/Threshreg}
  \caption{Threshold settings panel}
 \end{figure}
+
+