PulsePort (Toggle Port State)

The PulsePort instruction is used to toggle the state of a port, delay, and then toggle the port again.

Syntax

PulsePort (Port, Delay )

Remarks

This instruction toggles a port, delays the specified amount of time, toggles the port, and then delays a second time. The second delay in the instruction allows it to be used to create a 50 percent duty cycle clock for clocking multiplexers.

Parameters

Port

The number of the port to use in this instruction. An alphanumeric code is entered. Right-click to display a list.

Code Description
C1 Control Port 1
C2 Control Port 2
C3 Control Port 3
C4 Control Port 4
U1 Universal terminal 1
U2 Universal terminal 2
U3 Universal terminal 3
U4 Universal terminal 4
U5 Universal terminal 5
U6 Universal terminal 6
U7 Universal terminal 7
U8 Universal terminal 8
U9 Universal terminal 9
U10 Universal terminal 10
U11 Universal terminal 11
U12 Universal terminal 12

Type: Constant

Delay

The amount of time, in microseconds, to delay after toggling the port. The delay is used after both the first and second toggles of the port.

Type: Constant