Up-/down-sampler, with or without external sync.
-
The input is marked with a squared arrow and is floating, and the output is 1Ω.
-
The pins on the bottom are the I/O clock, marked with an input, triangular arrow (floating), and the output sync clock, marked with an outgoing arrow (Rout=0).
-
Example with SampledSource and UpDnSpl.
The upsampler is using the internal clock (f0>0, f0==finput), and the downsampler uses external synchronization (f0<0, |f0|==finput). The value of index dictates the beginning of the sample relative to the input.
|
f0 |
Hz |
The sampling frequency.
- f0<0 ⇒ external syncronization (must match input's clock)
- f0>0 ⇒ internal clock (default, 1k)
- f0=0 ⇒ bypass
|
N=<-∞:∞> |
- |
Sets the upsampler's or downsampler's rate:
- N≥2 ⇒ upsampler (default, 2)
- N≤2 ⇒ downsampler
Anything else means bypass
|
index=<0:|N|-1> |
- |
Sample offset, default 0. For example, if the input is [0,1,2,3,...] :
-
N=-4, index=2 ⇒
[2,6,10,14,...]
-
N=-4, index=1 ⇒
[1,5,9,11,...]
-
N=4, index=2 ⇒
[0,0,o,0; 0,0,1,0; 0,0,2,0; 0,0,3,0; ...]
|
|
ref |
V |
Logic threshold for the downsampler's clock, default 0.5 |
lim |
V |
Internal limits to avoid clipping (downsampler), default 1k |
tripdt |
s |
LTspice's specific for A-devices, default 1u of the resulting upsampler's (f0*N) or downsampler's (f0/N) clock |
|
|