I was looking around the 'net for random things, as you do when I came across this: http://letsmakerobots.com/node/22058
Seemed like and interesting project for my own use, however I can not see for the life of any mention of response time. So I did little testing with a 28x2 and an old micro switch I had here. I used the santa scope to crab some readings at 16mhz (as seen in the attached chart, CH1 is switch, CH2 is an output set to go high), so even at that modest clock speed response time should not be an issue.
the sound detection was done with a circuit found here: http://www.picaxe.com/docs/picaxe_sound.pdf. would the delay in this circuit that is going to be appreciable by comparison to the picaxe response time.
is it also possible to have the output of the sound detection circuit connected to both and ADC and b.0 so that fine adjustment (to compensate for environment) can be made while using the high speed response of the hardware interrupt?
test code
Seemed like and interesting project for my own use, however I can not see for the life of any mention of response time. So I did little testing with a 28x2 and an old micro switch I had here. I used the santa scope to crab some readings at 16mhz (as seen in the attached chart, CH1 is switch, CH2 is an output set to go high), so even at that modest clock speed response time should not be an issue.
the sound detection was done with a circuit found here: http://www.picaxe.com/docs/picaxe_sound.pdf. would the delay in this circuit that is going to be appreciable by comparison to the picaxe response time.
is it also possible to have the output of the sound detection circuit connected to both and ADC and b.0 so that fine adjustment (to compensate for environment) can be made while using the high speed response of the hardware interrupt?
test code
Code:
[color=Blue]setfreq m16[/color]
[color=Black]init:
[/color][color=Blue]let [/color][color=Purple]w0 [/color][color=DarkCyan]= [/color][color=Navy]5000
[/color][color=Blue]hintsetup [/color][color=Navy]%00010001
[/color][color=Blue]setintflags [/color][color=Navy]%00000001[/color][color=Black],[/color][color=Navy]%00000001 [/color][color=Green]'int0 b.0
[/color][color=Blue]let [/color][color=Purple]dirsb [/color][color=DarkCyan]= [/color][color=Navy]%11111110[/color]
[color=Black]Main:
[/color][color=Green]'do stuff here
[/color][color=Blue]goto [/color][color=Black]main
[/color]
[color=Blue]interrupt:
high b.7
pause [/color][color=Navy]500
[/color][color=Blue]low b.7
pause [/color][color=Navy]500
[/color][color=Blue]let [/color][color=Purple]flags [/color][color=DarkCyan]= [/color][color=Navy]0
[/color][color=Blue]setintflags [/color][color=Navy]%00000001[/color][color=Black],[/color][color=Navy]%00000001
[/color][color=Blue]return[/color]
Attachments
-
325.8 KB Views: 33