Scicos Block
fr - eng


Discrete zero crossing block

\epsfig{file=VCOEVT_f.eps,height=90pt}

Contents


Palette

Description

This block realizes a discrete threshold detection, by analyzing instaneous angular position of oscillator and generates events when a crossing at zero occurs.
To understand the computational function of that block, define an oscillator with the following formula :

\begin{eqnarray}
y_{\rm {s}}\left(t\right)=\cos\left(\theta\left(t\right)\right)
\end{eqnarray}


with $ \theta(t)$ defined by :

\begin{eqnarray}
\theta\left(t\right)=2\pi f_{o}t+\varphi_{\rm {s}}\left(t\right)
\end{eqnarray}


where $ f_{o}$ is the free-running frequency and $ \varphi_{\rm {s}}\left(t\right)$ the instantaneous phase of the oscillator. Moreover in steady state assume that :

\begin{eqnarray}
\varphi_{\rm {s}}\left(t\right)<<2\pi f_{o}t
\end{eqnarray}


When sampling the angular position with constant step, $ \theta(t)$ becomes $ \theta_{k}$ and the following figure can be used to compute the event dates of the oscillator when zero crossing occurs.
\begin{figure}\centering
\scalebox{0.8}{%
\input{2picross.pstex_t}}
\end{figure}
Figure 1: Discrete computation of zero crossing dates of oscillator

At the time $ t_{k}$, we can do an extrapolation of the argument of the cosine function by writting the following equality :

\begin{eqnarray}
\frac{\theta_{k+1}-\theta_{k}}{t_{k+1}-t_{k}}&=&\frac{\theta_{i_{k+1}}-\theta_{k}}{t_{i_{k+1}}-t_{k}}.
\end{eqnarray}


Finally, we can write the date of the event generation :

\begin{eqnarray}
t_{i_{k+1}}&=&t_{k}+\frac{\theta_{i_{k+1}}-\theta_{k}}{\theta_{k+1}-\theta_{k}}h.
\end{eqnarray}


with $ h$ the integration step.

Dialog box

\begin{figure}\begin{center}
\epsfig{file=VCOEVT_f_gui.eps,width=300pt}
\end{center}\end{figure}

Default properties

Interfacing function

Computational function

See also

Authors

A. Layec

Bibliography

[1] A. Demir, ``Analysis and simulation of noise in nonlinear electronic circuits and system,'' Ph.D., University of California, Berkeley, 1997.