I have a question about LTSpice. I put a Sample & Hold block in a sheet to quantize a continuous sine signal like below: But the resolution is not desired. I have a 16-Bit ADC with a 1v reference voltage. even I changed the spice lines and opened the SAMPLE.asy symbol but I really couldn't find any solutions.
@andy-aka I really appreciate you for your reply. (due to my low reputation I couldn't upvote for you) Yes. I had forggoton the principle :) actually N=Fs/F. so we have N=10Meg/1Meg=10 points per each cycle.
if it's possible I have an another question :) when the ADC resolution is Vref/(2^16), can I implement it in LTspice like below:
Vres=Vref/(2^16) out=int(Vin/Vres) if abs(Vin)>=Vref Vin=1 end