Home | Reviews | GUIpedia | Forum | Fun500
Jason | TIMERHey, I'm making something that needs a spot on timer, TIMER doesnt meet the resolution i need, everything I have looked for has different speeds on different computers, please please please help! | 2010-08-07 | 2:00 AM |
HorvatM | Re:TIMERTry looking at the petesqbsite.com downloads, I remember there's something that claims to be much better than TIMER. | 2010-08-07 | 6:08 AM |
Jason | Re:TIMERit doesnt make any sence, i've seen it
i found out that TIMER2# = TIMER makes it very high res.
but for some reason, even using TIMER2# it still can only go as fast as .05
i need atleast .005
i wouldnt suspect that OUT &H22C, &H10: BYTE% = INP(&H22A) will slow it down that much, but would a long maths line (> used twice, < used twice, AND used 1ce, OR used twice) or would making TIMER2# = TIMER slow it down? | 2010-08-07 | 8:57 AM |
Todd | Re:TIMERJust curious, what do you need a precision floating-point timer for? | 2010-08-07 | 5:43 PM |
Jason | Re:TIMER bumpmaking a spk, mic modem. do you have any ideas?
i found that microsoft suggested using ON PLAY, INT 15 AH=86 OR INT 1A AH=00
but they only go to 30 ticks a second, 18 ticks a second or something else that was pretty woeful. i really need this to work, please, please, help if you have any ideas | 2010-08-07 | 7:23 PM |
Todd | Re:TIMERSee if this works: http://qb45.com/download.php?id=1334
It's based on the speed of your CPU and how long it takes to complete a set number of iterations in a FOR loop. This should at least be a way for you to gauge precision for your modem. | 2010-08-08 | 12:54 PM |
Jason | Re:TIMERhi, ive seen this one before but didnt make sence of it, i dont use a timer anymore, i sacrafice some speed as a delay, i've created some really good background noise cancelers and a hert reader, the hert reader works surprisingly well, it waits for no sound, then when a sound over 5 or so (i cant remember and cbf walking downstairs) it starts reading how many times it ticks from top to bottom of a sine wave. i dont actually read the middle because thats where background noise interfearance is, so i use about 20+126 (126 seems to be the middle)
so, in conclusion, thanks for all your help, wait for it in navaska. i will release. | 2010-08-08 | 1:22 PM |
Dick | Re:TIMERCLS
OUT &H43, &H34
OUT &H40, &H400
OUT &H40, &H4
DO
LOCATE 1, 1
PRINT TIMER
LOOP
| 2010-08-08 | 2:11 PM |
Dick | Re:TIMERCLS
DO
LOCATE 1, 1
PRINT TIMER
LOOP
| 2010-08-08 | 2:12 PM |
Dick | Re:TIMERTry both, there is a difference. You can change the speed of TIMER. You may need to set it back before end of program. | 2010-08-08 | 4:20 PM |
Jason | Re:TIMER + Sine Countyeah, i think i will have to, so this doesnt vary on cpu type at all? cool, thanks
i tried my program and that was luck before, and it was set to a slow bps (1?)
Anyone know how to convert microphone input to hertz?? i'll keep working and if i find a way i'll let you know
http://uppit.com/ncild2xg0u5c/untitled.bmp | 2010-08-08 | 9:52 PM |
Other
2021 Brandon Cornell