[SENSe:]EVENt:PORTn:PEDGe?

Returns the value of the Positive Edge Detect Register for all 16 bits of Port n.

Parameters

 

 

 

 

Parameter Name

Parameter Type

Range of Values

Default

 

 

 

 

PORTn

numeric

0, 1, 2, 3 (PORT = PORT0)

PORT0

 

 

 

 

 

 

 

 

Comments The value returned is in the range of -32768 to +32767. A 0 in any bit position indicates a positive edge event was not detected for the corresponding bit of that port; a 1 in any bit position indicates a positive edge event was detected for the corresponding bit of that port.

When an edge event is detected, the Edge Detect Status is set true. Refer to the [SENSe:]EVENt:PSUM:EDGE? and [SENSe:]EVENt:PORTn:EDGE? commands.

Reading this register for all events that have occurred will clear the event detector register.

*RST Condition: disables the Edge Event.

[SENSe:]EVENt:PORTn:PEDGe:ENABle <mask>

Sets the Positive Edge Detection Mask for Port n.

Parameters

Parameter Name

Parameter Type

Range of Values

Default

 

 

 

 

PORTn

numeric

0, 1, 2, 3 (PORT = PORT0)

PORT0

<mask>

numeric

-32768 to +32767 (0000h to FFFFh)

0

 

 

 

 

 

 

 

 

Comments Each bit enables the corresponding channel positive edge detect mask for Port n. A 1 means the mask is enabled for that bit, a 0 means the mask is disabled for that bit.

*RST Condition: clears the mask (no enabled bits).

Example EVEN:PORT 1:PEDG:ENAB 32767

Enables Positive Edge Event Detection

 

on all bits of Port 1

HP E1459A SCPI Command Reference 57