Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:17 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Why Johnny needs a flash ADC

Author Message
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 719
Posted: 12:58am 17 Aug 2020
Copy link to clipboard 
Print this post


' "oscope"

'mode 1,12
setpin 7, ain,8
'page write 0
'box 400,150,260,250
'page write 1

'do
cls
for x% =400 to 655 step 32    
y%=275+((1.5-pin(7))*100)
pixel x%,y%
next x%
'loop

box 400,150,255,265
save image "1360 Hz",390,140,275,285
end



my site
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 02:50am 17 Aug 2020
Copy link to clipboard 
Print this post

If you use the PIN function to read an analogue value, sure. Take all the calculations and screen drawing out of the loop and it will go lots faster.

To go faster still, look at the ADC commands that can fill a DIM'ed array at 100+ times the frequency.
Visit Vegipete's *Mite Library for cool programs.
 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 719
Posted: 03:46am 17 Aug 2020
Copy link to clipboard 
Print this post

> If you use the PIN function to read an analogue value,
> sure. Take all the calculations and screen drawing out
> of the loop and it will go lots faster.

I ' m trying for ' real time ' so needs be ( I think )
the screen drawing .

> To go faster still, look at the ADC commands that
> can fill a DIM'ed array at 100+ times the frequency.

Yes .... I tried that this afternoon . Definitely faster ,
even doing the screen drawing while filling the array .
And has the triggering !
BUT ....
Seems to lack some accuracy ?
my site
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025