Read-write routines – Teledyne LeCroy PCIBX64-X User Manual

Page 16

Advertising
background image

14

Read-Write Routines


1) To write:


Set Address

Reset the AS and DS signals

outp(0x37a, 0xde);

Set an Address in parallel port register

outp(0x378, 0xaddress_value from the menu);

Latch the value in PCI card Address register

outp(0x37a, 0xd6);

Wait, 100 us minimum

Reset the AS and DS signals

outp(0x37a, 0xde);


Write Data

Set a Data in parallel port register

outp(0x378, 0xdata_value from menu);

Latch the value in PCI card Data register

outp(0x37a, 0xdc);

Wait, 100 us minimum

Reset the AS and DS signals

outp(0x37a, 0xde);


2) To read :


Set Address

Reset the AS and DS signals

outp(0x37a, 0xde);

Set an Address in parallel port register

outp(0x378, 0xaddress_value from the menu);

Latch the value in PCI card Address register

outp(0x37a, 0xd6);

Wait, 100 us minimum

Reset the AS and DS signals

outp(0x37a, 0xde);


Set the port to read mode

outp(0x37a, 0xff);

Read Register and display

I = inp(0x378);

Reset the AS and DS signals

outp(0x37a, 0xde);


3) Extended Write for voltage and current conversion routine:


Set Address

Reset the AS and DS signals

outp(0x37a, 0xde);

Set an Address in parallel port register

outp(0x378, 0xaddress_value from the menu);

Latch the value in PCI card Address register

outp(0x37a, 0xd6);

Wait, 100 us minimum

Reset the AS and DS signals

outp(0x37a, 0xde);


Write Data

Reset the AS and DS signals

outp(0x37a, 0xde);

Set a Data in parallel port register

outp(0x378, 0xdata_value);

Latch the value in PCI card Data register

outp(0x37a, 0xdc);

Wait 2 ms


Reset the AS and DS signals

outp(0x37a, 0xde);

Advertising
This manual is related to the following products: