beautypg.com

Hp e1459a edge event detection flowchart – HP E1459A User Manual

Page 36

background image

Using the HP E1459A Module

35

Figure 2-1. HP E1459A Edge Event Detection Flowchart

Unmask all 16 bits of Port.

(Either Positive, Negative,

or both.)

Optionally, set the

Debounce Time

Enable the Edge Detection

Wait for the Event to Occur.

Do one of the following:

1. Poll the Port Summary Register

2. Poll the Status Subsystem

3. Use SRQ to interrupt

Read the data and clear the

event detector register

[SENSe:]EVENt:PORT

n:NEDGE:ENABle

[SENSe:]EVENt:PORT

n:PEDGE:ENABle

INPut

n:DEBounce:TIMe

[SENSe:]EVENt:PORT

n:EDGE:ENABle

[SENSe:]EVENt:PSUMmary:EDGe?

STATus:OPERation:PSUMmary:CONDition?

STATus:OPERation:PSUMmary:ENABle <

mask>

STATus:OPERation:ENABle 512
*SRE128

[SENSe:]EVENt:PORT

n:NEDGe?

[SENSe:]EVENt:PORT

n:PEDGe?

HP E1459A Edge Event Detection Flowchart

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