Reading a 0.6v frequency
Hey,
Trying to get a http://www.sparkfun.com/products/9768 light-2-frequency IC working but it outputs a 0.2v - 0.6v signal. Using the propeller counters in DUTY mode:
setup: (pin 4)
read:
gives:
Does the prop recognise that lower signal on a I/O pin?

Any other ideas?
Ta,
James
Trying to get a http://www.sparkfun.com/products/9768 light-2-frequency IC working but it outputs a 0.2v - 0.6v signal. Using the propeller counters in DUTY mode:
setup: (pin 4)
' setup light frequency counter
dira[LIGHT_FREQ]~
light_sample_period := clkfreq/5
lightFreqNextSampleTime := cnt + light_sample_period
ctra := %00110 << 26
ctra += LIGHT_FREQ
frqa := 1
read:
repeat
' light frequency sensor
if cnt-lightFreqNextSampleTime > light_sample_period
sys_lightfreq := phsa
phsa := 0
lightFreqNextSampleTime := cnt + light_sample_period
debug.dec(sys_lightfreq)
debug.tx(13)
gives:
32005958
32004902
32009574
32004902
32009574
32005958
32004902
32009574
32004902
32009574
32005958
32004902
32009574
32004902
32009574
32005958
32004902
32009574
Does the prop recognise that lower signal on a I/O pin?

Any other ideas?
Ta,
James
Comments
-Phil
Are you sure your device is connected correctly?
After looking at the datasheet, I don't see any indication it would output such a limited range.
What voltage are you using to power it?
Edit: Phil beat me again.
If it really is a .6v level, you could put a resistor divider between the pin and +3.3V, such as 4.7K/3.3K, which will give you a .5v cutoff voltage.
thanks Phil!