beautypg.com

Sense:]event:port n:pedge, Sense:]event:port n:pedge:enable

Page 58

background image

HP E1459A SCPI Command Reference

57

[SENSe:]EVENt:PORT

n:PEDGe?

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

Parameters

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:PORT

n:PEDGe:ENABle

Sets the Positive Edge Detection Mask for Port n.

Parameters

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

Parameter Name

Parameter Type

Range of Values

Default

PORT

n

numeric

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

PORT0

Parameter Name

Parameter Type

Range of Values

Default

PORT

n

numeric

numeric

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

-32768 to +32767 (0000

h

to FFFF

h

)

PORT0

0

Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com