
PA 3110 Table of contents
II
7 CONNECTING THE PERIPHERAL......................................................24
7.1 Connection principle ...................................................................................24
7.2 Connector pin assignment ...........................................................................24
7.3 Connection examples ..................................................................................26
8 FUNCTIONS ..................................................................................28
8.1 Analog output channels ...............................................................................28
8.2 Analog input channels .................................................................................28
8.3 Time-multiplex system ..................................................................................29
9 SOFTWARE EXAMPLES....................................................................31
9.1 Initialisation..................................................................................................31
9.1.1 Initialisation of the PA 3110 under DOS and Windows 3.11....................................31
a) Flow chart......................................................................................................31
b) Example in C for DOS and Windows 3.11......................................................32
9.1.2 Initialisation of the PA 3110 under Windows NT / 95................................................33
a) Flow chart......................................................................................................33
c) Example in C for Windows NT / 95.................................................................34
9.2 Interrupt........................................................................................................35
9.2.1 Interrupt routine under DOS and Windows 3.11 .....................................................35
a) Flow chart for DOS, Windows 3.11 and Windows NT / 95 (asynchronous
mode) ...............................................................................................................35
b) Example in C for DOS and Windows 3.11......................................................36
c) Example in C for Windows NT / 95 (Asynchronous mode)..............................37
d) Flow chart for Windows NT / 95 (synchronous mode).....................................38
e) Example in C for Windows NT / 95 (synchronous mode) ................................39
9.3 Direct conversion of analog inputs ..............................................................40
9.3.1 Testing one analog input .......................................................................................40
a) Flow chart......................................................................................................40
b) Example in C.................................................................................................41
9.3.2 Testing all analog inputs ........................................................................................42
a) Flow chart......................................................................................................42
b) Example in C.................................................................................................43
9.4 Cyclic conversion of the analog inputs........................................................44
9.4.1 Cyclic conversion without DMA and delay ............................................................44
a) Flow chart......................................................................................................44
b) Example in C for DOS ....................................................................................45
c) Example in c for Windows 3.1x ......................................................................46
d) Example in C for Windows NT / 95 (asynchronous mode)..............................47
e) Example in C for Windows NT / 95 (synchronous mode) ................................48