PulseOut (Procedure)

Description : 

 

This command send a logic high or logic low pulse. The Pulseout can be used solely as a means of generating a delay - that is without affecting any physical I/O pins the real time clock(rtc), task switching and network traffic are suspended during this time. Output pulses greater than 1.95 milliseconds will result in the loss of time in the rtc.

This command consists of integer and float version. The Pulse Width or time interval for float version has a range of about 1.085 microseconds to 71.1 milliseconds while integer version in units of 8 / 7372800 has a range of 1 to 65535 units.

Syntax : 

Call Pulseout (Pin, Pulse Width, State)

Example :

' Float version

' Send a high pulse to pin 5, pulse width is 1.2 ms

Call Pulseout (5, 1.2E-3, 1)

Example :

 

' Integer version

' Send a high pulse to pin 5, pulse width is 1.2 ms 

' Unit conversion: 1.2E-3 / 1.085E-6 = 1106

Call Pulseout (5, 1106, 1)