- Name:
-
pulsout
- Syntax:
-
PULSOUT pin,time
Pin - is a variable/constant which specifies the i/o pin to use.
Time - is a variable/constant which specifies the period (0-65535) in 10us units (at 4MHz resonator).
- Description:
-
Output a timed pulse by inverting a pin for some time.
The pulsout command generates a pulse of length time. If the output is initially low, the pulse will be high, and vice versa. This command automatically configures the pin as an output, but for reliable operation you should always ensure this pin is an output before using the command (using high, low or output).
Effect of Increased Clock Speed:
| 4MHz |
10us unit |
| 8MHz |
5us unit |
| 16MHz |
2.5us unit |
| 32MHz |
1.25us unit |
| 64MHz |
0.625us unit |