whymaybe
11-23-2006, 02:31 PM
Hello all,
I am a newbie of Basic Stamp. Recently I've got a used BS2 education kit from my friend and I am trying to implement it with a gameboy camera.
So here are two questions I want to ask (I've been trying to search the forum but have no luck and I am tired):
1) Is it possible to make a clock function (pulse train?) which has frequency around 500 khz (period around 2 us); I have tried two methods, one with HIGH and LOW pin which gives me about 500 us (its too slow), the other one is using Pulseout, which gives a 2 us high time but the low time takes for a while and the whole period is about 300 us. I am wondering if it is the loop thing that delay the process and I want to know how fast I could have a clock generated.
2) how fast can I read from Analog signal? say if I have an external ADC chip, how fast can the BS2 digital port read?
p.s. I am using the lowest level of BS2 controller.
Thanks a lot.
I am a newbie of Basic Stamp. Recently I've got a used BS2 education kit from my friend and I am trying to implement it with a gameboy camera.
So here are two questions I want to ask (I've been trying to search the forum but have no luck and I am tired):
1) Is it possible to make a clock function (pulse train?) which has frequency around 500 khz (period around 2 us); I have tried two methods, one with HIGH and LOW pin which gives me about 500 us (its too slow), the other one is using Pulseout, which gives a 2 us high time but the low time takes for a while and the whole period is about 300 us. I am wondering if it is the loop thing that delay the process and I want to know how fast I could have a clock generated.
2) how fast can I read from Analog signal? say if I have an external ADC chip, how fast can the BS2 digital port read?
p.s. I am using the lowest level of BS2 controller.
Thanks a lot.