sm: rs232 receive
authorBernhard Urban <lewurm@gmail.com>
Fri, 26 Mar 2010 16:40:03 +0000 (17:40 +0100)
committerBernhard Urban <lewurm@gmail.com>
Fri, 26 Mar 2010 16:40:03 +0000 (17:40 +0100)
spec/sm/alu.pdf
spec/sm/display.pdf
spec/sm/rs232-rs.pdf
spec/sm/rs232-rs.tex
spec/spec.tex

index cf2a2687ea49222b016c196828ac8890c46b627f..75a92da3a09631c36679fb9070d7d10595fa3db6 100644 (file)
Binary files a/spec/sm/alu.pdf and b/spec/sm/alu.pdf differ
index 4f6bc37a068f1e4b997458da78933843b57b4572..fdcdf1a3f7df7e788325c982154eb7d5ee26fcb0 100644 (file)
Binary files a/spec/sm/display.pdf and b/spec/sm/display.pdf differ
index 89b21857a5f03be4c3c4395ac7323de17f53e7bc..71ebb2bddc49958227fbdf7a54786cda2b3a56a2 100644 (file)
Binary files a/spec/sm/rs232-rs.pdf and b/spec/sm/rs232-rs.pdf differ
index 6688f377bb5117c2607809fa9a874097024e6cc9..8bab98a96c2a03fe5514fdb05c64bb9eb9d2c394 100644 (file)
 
 \begin{document}
 
-\begin{psmatrix}[mnode=circle, colsep=2cm, rowsep=2cm]
-[mnode=R,name=res]{RESET} & [name=i]{idle} & [name=rsp]{\shortstack{read \\ Stop-Bit}} \\
-& [name=rs]{\shortstack{read \\ Start-Bit}} & [name=rb]{read Bit}\\
+\begin{psmatrix}[mnode=oval, colsep=2cm, rowsep=2cm]
+[mnode=R,name=vars]{int bc := 0;} &
+[name=idle]{\shortstack{\textbf{idle}\\bc:=0;}} &
+[name=rsp]{\shortstack{\textbf{read}\\\textbf{stopbit}}} \\
+%%
+[mnode=R,name=res]{sys\_res\_n} &
+[name=rs]{\shortstack{\textbf{read}\\\textbf{startbit}}} &
+[name=rb]{\textbf{read}} \\
 \end{psmatrix}
 
 \psset{arrows=->, shortput=nab}
 
-\ncline[linestyle=dotted]{res}{i}
+\ncline[linestyle=dotted]{res}{idle}
 
-\ncarc[arcangle=25]{i}{rs}\ncput*[npos=.38]{\shortstack{falling\\edge rxd}}
-\ncarc[arcangle=25]{rs}{i}\ncput*[npos=.36]{rxd=1}
+\ncarc[arcangle=35]{idle}{rs}\ncput*[npos=.38]{\shortstack{rxd$\downarrow$}}
+\ncarc[arcangle=35]{rs}{idle}\ncput*[npos=.38]{rxd=1}
 
 \ncline{rs}{rb}\ncput*{rxd=0}
 
-\ncline{rb}{rsp}\ncput*{bitcount=8}
-\nccircle[angle=180]{rb}{.7cm}\ncput*{bitcount$<$8}
+\ncline{rb}{rsp}\ncput*{$bc=8$}
+\nccircle[angle=180]{rb}{.5cm}\ncput*{$bc<8$}
 
-\ncline{rsp}{i}
+\ncline{rsp}{idle}
 \end{document}
index 0764c3663a35f96b1a1f8c8c5f47048f4170a068..b29e1ee426cb7775f2d64c5295ab2eb2454f2e59 100644 (file)
@@ -368,7 +368,6 @@ die vollen 71 Zeichen in der entsprechenden Zeile enthalten sind\footnote{ein St
 \end{itemize}
 
 \subsection{RS232}
-%test, TODO
 \begin{figure}[!ht]
 \includegraphics[width=0.9\textwidth]{sm/rs232-rs.pdf}
 \centering
@@ -376,6 +375,13 @@ die vollen 71 Zeichen in der entsprechenden Zeile enthalten sind\footnote{ein St
 \label{fig:rs232-rs}
 \end{figure}
 
+\begin{itemize}
+\item \textbf{idle}:
+\item \textbf{read startbit}:
+\item \textbf{read}:
+\item \textbf{read stopbit}:
+\end{itemize}
+
 
 \subsection{PC-Kommunikation}
 \begin{figure}[!ht]