I'm trying to do RZ with tikz-timing, like in the following picture.
For that I tried using the high impedance timing character Z
, like in this MWE :
\documentclass{article}
\usepackage{tikz-timing}
\begin{document}
\begin{center}
\begin{tikztimingtable}[timing/slope=0, scale=2]
Horloge & 8{hl} \\
01001110 & LHLLHHHL \\
NRZ & LHLLHHHL \\
RZ & 0.25Z lzh 2{zl} 3{zh} zl 0.25Z \\
\extracode
\makeatletter
\begin{pgfonlayer}{background}
\vertlines[help lines, blue]{}
\horlines[blue]{}
\foreach [count=\x] \b in {0,1,0,0,1,1,1,0} {
\node [below,font=\sffamily\bfseries\tiny,inner ysep=2pt] at (\x-.5,-1.5) {\b};
}
\end{pgfonlayer}
\end{tikztimingtable}
\end{center}
\end{document}
But it gives this result, where
- The
horline
is not centered atZ
Z
has a blue color
According to the documentation, the blue color is perfectly normal, as that's how Z
works. So I think that I should instead use L
as 0 V. Therefore, is there a way to have a negative amplitude with tikz-timing
?