CMM2 Oscilloscope fun


Author Message
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 738
Posted: 02:15pm 25 Jul 2020      

  TassyJim said  
  Quote  How much time does it take to sample the input ?

That's up to you.
Assuming you want to fill a 800x600 screen, take 800 samples at a time.
The ADC will take the 800 samples in the background then swap to the second array.
While the ADC is sampling one array, your program displays the other array of data.

If you sample at 100kHz, the 800 samples takes 800*1/100000 = 8mS
That's how far behind your display will be.
Every 8mS, you swap arrays so that the 'other one' gets displayed.

If you want to display mains frequency, sampling at 10kHz will give 80 mS or 4 and a bit of your cycles.
You would probably want to use the trigger so the waveform is steady.

Jim
Then this idea is bunk ?
( I would like to ( using the VGA monitor ( and a single ADC pin ) ) )
have it act like an 8bit x 8bit matrix .
I . E ...... Only 1 pixel ( or mini sprite ? ) would display at one time .
Edited 2020-07-26 00:23 by hitsware2