![]() |
Forum Index : Microcontroller and PC projects : Why Johnny needs a flash ADC
Author | Message | ||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
' "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: CanadaPosts: 1132 |
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 StatesPosts: 719 |
> 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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |