09-24-2009 01:11 PM
Hi all,
I need to interface this sensor with my LM3S8962 Board.
According to the datasheet, I will send pules 5uS wide avery time I need to neasure distance, So I'd like to generate a 5uS wide pulse that is periodically repeated every 25mS.
I tried to do that with two ways but there is no signal on ocsilloscope.
Did any one know an other way to do that?
thanks
09-24-2009 01:12 PM
Woops! the snippet:
09-26-2009 11:44 AM - edited 09-26-2009 11:45 AM
The interger part of 0.2 is always zero.
Configure PWM in project:
PWM Divider /32
Configure the node:
Frequency: 40 Hz
Duty Cycles Units: PWM Clock Cycles
Wire an integer constant to EIO node (5us*50MHz/32 = 7.8125 => floor(7.8125) = 7)
However, SIG on that PING))) is bidirectional, so be patient when building the hardware. You cannot connect that directly to a microcontroller pin without using Inline C Nodes (in LabVIEW you have GPIO in, GPIO out, PWM, which is output, but no option for in/out)
You don't need the Timed Loop to make the signal.