LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate Low Width PWM

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

0 Kudos
Message 1 of 3
(6,360 Views)

Woops! the snippet:

 PWM.png

0 Kudos
Message 2 of 3
(6,359 Views)

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.

Message Edited by NicB on 09-26-2009 11:45 AM
Message 3 of 3
(6,329 Views)