Fastwel AIC324 User manual

AIC324
Analog and Digital Input / Output Module
User
Manual
July 2018
Version 1.7.1

User Manual AIC 324
Product Title: AIC324
Document name: AIC324 User Manual
Manual version: 1.7.1
Copyright © 2018 Fastwel Co. Ltd. All rights reserved.
Revision Record
Revision number
Brief description of changes
Device name
Revision date
1.0
Initial version
AIC324
October 2011
1.1
Remarks related to the archives
AIC324
November 2012
1.2.
Section 1.2.3. has been updated
AIC324
November 2012
1.3.
Section 2.1.5. has been added
AIC324
February 2013
1.4.
Section 1.1.5 has been added, Annex B 2 has been
updated.
Compliance assessment
AIC324
April 2013
1.5.
Labeling has been revised. Weight has been specified.
AIC324
April 2013
1.6.
Weight of the device and weight of shipping containers has
been added.
AIC324
June 2013
1.7.
Section 1.1.5 has been revised.
AIC324
March 2014
1.7.1.
Compliance assessment.
AIC324
July 2018
Contact information
Manufactured by: Fastwel Co. Ltd:
Address: 108 Profsoyuznaya st.,
Moscow 117437,
Russian Federation
Tel.: +7 (495) 232--1681
Fax: +7 (495) 232-1654
Email: info@fastwel.com
Technical support: _ http://www.fastwel.com/
-
All information in this document is provided for reference only, with no warranty of its suitability for any specific purpose.
This information has been thoroughly checked and is believed to be entirely reliable and consistent with the product that
it describes. However, Fastwel accepts no responsibility for inaccuracies, omissions or their consequences, as well as
liability arising from the use or application of any product or example described in this document.
Fastwel Co. Ltd. reserves the right to change, modify, and improve this document or the products described in it, at
Fastwel's discretion without further notice. Software described in this document is provided on an “as is” basis without
warranty. Fastwel assumes no liability for consequential or incidental damages originated by the use of this software.
This document contains information, which is property of Fastwel Co. Ltd. It is not allowed to reproduce it or transmit by
any means, to translate the document or to convert it to any electronic form in full or in parts without antecedent written
approval of Fastwel Co. Ltd. or one of its officially authorized agents.
Fastwel and Fastwel logo are trademarks owned by Fastwel Co. Ltd., Moscow, Russian Federation. Ethernet is a
registered trademark of Xerox Corporation. IEEE is a registered trademark of the Institute of Electrical and Electronics
Engineers Inc. Intel is a trademark of Intel Corporation. Pentium M and Celeron M are trademarks of Intel Corporation.
Microsoft is a trademark of the Microsoft Corporation. In addition, this document may include names, company logos and
trademarks, which are registered trademarks and, therefore, are property of their respective owners.
Fastwel welcomes suggestions, remarks and proposals regarding the form and the content of this Manual.

User Manual
AIC324
Table of contents
Table of contents 3
Trademarks 5
Ownership Rights 5
Notation Conventions 6
Manufacturer's warranties 7
1
General information 8
1.1 Purpose and technical characteristics of the module.................................................................................... 8
1.2 Module’s structure and functioning ............................................................................................................. 11
1.3 Connectors and Ports................................................................................................................................. 15
1.4 Labeling………………………………………………………………………………………………………………..23
1.5 Packaging ……………………………………………………………………………………………………………..23
2
Intended use 24
2.1 Preparation for use..................................................................................................................................... 24
2.2 Use of the module....................................................................................................................................... 25
3
Maintenance........................................................................................................................................ .25
4
Repairs ............................................................................................................................................…..25
5
Storage………………………………………………………………………………………………………..….25
5.1 Storage conditions...................................................................................................................................... 25
6
Transportation. ................................................................................................................................... .26
6.1 General requirements and conditions ........................................................................................................ 26
6.2 Transportation characteristics………………………………………………………………………………………26
6.3 Placement and fixing the shipping container………………………………………………………………………27
7
Unpacking……………………………………………………………………………………………………….27
7.1 General requirements and conditions ........................................................................................................ 27
ANNEX A…………………………………………………………………………………………………………………………………29
ANNEX B ………………………………………………………………………………………………………………………………..30
ANNEX C ………………………………………………………………………………………………………………………………..32
ANNEX D DISCLAIMER………………………………………………………………………………………………………………..33

User Manual
AIC324
LIST OF TABLES
Table 1: Switching ……………...…………………………………………………………………….……………….........................14
Table 2: Light indication ……………………………………………………………………………………………………………….14
Table 3: XP9 Analog Connector Pinout …….………………………………………………………………………………………..15
Table 4: Designation of the main functional outputs of the XP9 analog connector ……………………………………………..15
Table 5: Pinout of Digital Connector (XP12) …….…………………………………………………………………………………..16
Table 6: Designation of the main functional outputs of the XP12 digital connector ……………….……………………………16
LIST OF FIGURES
Fig. 1-1:Main Components and Connectors Layout….……………………………………………………………………………….11
Fig. 1-2: Module’s Block Diagram ……………………………………………….……………………………………………………...12
All information in this document is provided for reference only, with no warranty of its suitability for any specific purpose. This information has been
thoroughly checked and is believed to be entirely reliable and consistent with the product that it describes. However, Fastwel accepts no responsibility
for inaccuracies, omissions or their consequences, as well as liability arising from the use or application of any product or example described in this
document.
Fastwel Co. Ltd. reserves the right to change, modify, and improve this document or the products described in it, at Fastwel's discretion without further
notice. Software described in this document is provided on an “as is” basis without warranty. Fastwel assumes no liability for consequential or incidental
damages originated by the use of this software.
This document contains information, which is property of Fastwel Co. Ltd. It is not allowed to reproduce it or transmit by any means, to translate the
document or to convert it to any electronic form in full or in parts without antecedent written approval of Fastwel Co. Ltd. or one of its officially
authorized agents.
Fastwel and Fastwel logo are trademarks owned by Fastwel Co. Ltd., Moscow, Russian Federation. Ethernet is a registered trademark of Xerox
Corporation. IEEE is a registered trademark of the Institute of Electrical and Electronics Engineers Inc. Intel is a trademark of Intel Corporation.
Microsoft is a trademark of the Microsoft corporation. In addition, this document may include names, company logos and trademarks, which are
registered trademarks and, therefore, are property of their respective owners. Fastwel welcomes suggestions, remarks and proposals regarding the
form and the content of this Manual.

User Manual
AIC324
Trademarks
"Fastwel" logotype is a trademark belonging to Fastwel Group Co. Ltd., Moscow, Russian
Federation.
Besides, this document may contain names, corporate logotypes and trademarks being registered
trademarks; consequently, property rights to them belong to their respective legitimate owners.
Ownership Rights
This document contains information being the property of Fastwel Group Co. Ltd. It can
neither be copied nor transferred with the utilization of known media nor be stored in data storage
and search systems without the prior written authorization of Fastwel Group Co. Ltd. To our best
knowledge, the data in this document does not contain errors. However, Fastwel Group Co. Ltd
cannot take responsibility for any inaccuracies and their consequences, as well as responsibility
arising as a result of utilization or application of any diagram, product or example cited in this
document. Fastwel Group Co. Ltd reserves the right to alter and update both this document and
the product presented therein at its own discretion without additional notification.

User Manual
AIC324
Notation and
Conventions
Warning!
ESD Sensitive Device!
This symbol draws your attention to the information related to electro
static sensitivity of your
product and its components. To keep product safety and operability it
is necessary to handle it with care and follow the ESD safety
directions.
Warning!
Information marked by this symbol is essential for human and
equipment safety.
Read this information attentively, be watchful.
Note
This symbol and title marks important information to be read attentively
for your own benefit.
This User Manual (hereinafter referred to as the User Manual) is designed for getting acquainted with
the device, its principle of operation and main information, required for the commissioning, intended
use and servicing of the device “Analog and Discrete Input / Output Module AIC324” (hereinafter
referred to as the Module).
Note
The list of the approved abbreviations and notations, used in this User
Manual, is specified in Annex A.
Information on the types of hazardous exposure, general requirements and electrostatic safety
requirements when preparing the module for use are specified in p.2.1.1 –2.1.3 of this User Manual.
WARINING: THE MODULE CONTAINS ESD COMPONENTS!

User Manual
AIC324
MANUFACTURER'S WARRANTIES
Warranty liabilities
The manufacturer hereby guarantees that the device meets the technical specification
requirements.
The Consumer should comply with the conditions of usage, transportation, storage, installation and
assembly, set by the accompanying documents.
The Manufacturer hereby guarantees that the products supplied thereby are free from
defects in workmanship and materials, provided operation and maintenance norms were observed
during the currently established warranty period. The Manufacturer's obligation under this warranty
is to repair or replace free of charge any defective electronic component being a part of a returned
product.
Products that broke down through the Manufacturer's fault during the warranty period will be
repaired free of charge. Otherwise the Consumer will be invoiced as per the current labor
remuneration rates and expendable materials cost.
Liability limitation right
The Manufacturer shall not be liable for the damage inflicted to the Consumer's property
because of the product breakdown in the process of its utilization.
Warranty period
The warranty period for the products made by Fastwel LLC is 36 months since the sale date
(unless otherwise provided by the supply contract).
The warranty period for the custom-made products is 60 months since the sale date (unless
otherwise provided by the supply contract.
Limitation of warranty obligations
The above warranty obligations shall not be applied:
To the products (including software), which were repaired or were amended by the
employees, that do not represent the manufacturer. Exceptions are the cases where the
customer has made repairs or made amendments to the devices in the strict compliance with
instructions, preliminary agreed and approved by the manufacturer in writing;
To the products, broken down due to unacceptable polarity reversal (to the opposite sign)
of the power supply, improper operation, transportation, storage, installation, mounting or
accident.
Procedure of device returning for repairs
Sequence of activities when returning the products for repairs:
Apply to Fastwel company or to any of the Fastwel's official representatives for the Product
Return Authorization;
Attach a failure inspection report with a product to be returned in the form, accepted by the
Manufacturer, with a description of the failure circumstances and symptoms;
Carefully package the product in the antistatic bag and carton box, in which the product
had been supplied. Then package the product in a safe container for shipping. Failure to
package in antistatic material will VOID all warranties.
The customer pays for shipping the product to Fastwel or to an official Fastwel
representative or dealer.

User Manual
AIC 324
1 GENERAL INFORMATION
1.1 PURPOSE AND TECHNICAL CHARACTERISTICS OF THE MODULE
1.1.1 Purpose of the module
The analog-to-digital input/output module is designed for input and output of analog and digital signals
from real-time control systems, production control, high-speed data collection and processing. In
addition, the module enables prompt replacement of the working software of the built-in FPGA, which
provides additional opportunities for adapting the module to specific tasks.
The module has a partial program compatibility mode with the DMM-32DX-AT card manufactured by
Diamond System Corporation. This mode implies the presence of FPGA firmware that repeats the
functional load of the DMM-32DX board.
Module technical features
The module is made in the PC104 standard and has the following I/O channel structure:
32x galvanically isolated analog inputs (XP9 connector, see fig. 1.1);
4x galvanically isolated analog outputs (XP9 connector, see fig 1.1);
30x digital I/Os (XP12 connector, see fig. 1.1)
Module power supply:
Power supply voltage –+5 V ±5% is supplied via PC104 system connector;
Consumption –no more than 0,6 A
insulation strength of analog path 1000V
Operation conditions:
operating temperature range –from - 40° С to +85° С;
Relative humidity –from 5 to 95 % at +25° С (no condensation);
Mechanical characteristics:
vibration resistance, acceleration amplitude –10 g, within the range of frequencies 5
… 2000 Hz GOST 28203-89 (IEC 60068-2-6);
resistance to single shocks, peak acceleration –150 g GOST 28213-89 (IEC 60068-
2-27);
resistance to multiple shocks, peak acceleration –50 g GOST 28215-89 (IEC 60068-
2-29).
MTBF:
- No less than 100 000 hours.
Electromagnetic compatibility:
industrial radio interference from Information Technology Equipment –Class A GOST R
51318.22-99 (CISPR 22-97);
resistance to electromagnetic interference –II-nd group GOST R 50839-2000 (BS EN 61000-
6-2:2001)
Dimensions, no more than:
105.2 x 96.0 x 23,3 mm.

User Manual
AIC 324
Weight: no more than:
0.12 kg.
Note –The MTBF values are calculated using the Telcordia Issue 1 calculation model
(calculation method Method I Case 3) for continuous operation in case of the ground-
based installation under conditions corresponding to the climatic category 4 as per the GOST
standard 15150-69, at the ambient temperature of + 30°С.
1.1.2 Characteristics of Analog-to-Digital Converter
number of bits: 16 bits;
Maximum conversion frequency: 250 kHz;
32x analog channels, configurable to 32 asymmetrical, 16 differential,8 differential + 16
asymmetrical;
Ranges of input voltages: 0..0,625 V, 0..1,25 V, 0..2,5 V, 0..5 V, 0..10 V, ±0,625 V, ±1,25 V,
±2,5 V, ±5 V, ±10 V;
Possibility of working with current sensors in the range 0..20 mA, 0..10 mA, 0..5 mA;
Conversion time on each analog input, without averaging –no more than 4 μs;
Input impedance of analog input –no less than 1 MΩ;
Bypass resistance for measuring current of analog input port: 249 Ohm ± 0.05%, 5ppm,
0.125W;
Availability of FIFO buffer for 2048 words ADC;
Availability of channel-scanning mode;
Availability of the function of program calibration of the board’s analog paths;
Protection of inputs against overvoltage: ±40V;
Availability of galvanic insulation.
1.1.3 Characteristics of Digital-to-Analog Converter
Number of bits: 16 bits;
Setup time –no more than 6 μs;
4 analog outputs;
Output voltages range: 0..5 V, 0..10 V, ±2,5 V, ±5 V, ±10 V;
Maximum output current 3 mA;
Protection of outputs against overvoltage ±40V;
Availability of a ring-buffer for 2048 words DAC;
Availability of the function of program calibration of the board’s analog paths.
1.1.4 Characteristics and possibilities of digital inputs/outputs
24x I/O channels, analog m/s 8255;
Bus integrability;
Output voltage level 5V CMOS;
support of 16x and 32x bit counters;
ESD protection;

User Manual
AIC 324
1.1.5 Maximum measurement deviations and currents and voltages generations
ADC measurement range
Limits of the maximum basic percentage error, ±, %
Under normal conditions
Within operating temperature
range
0..0,625V
0,1
0,1
0..1,25V
0,1
0,1
0..2,5V
0,1
0,1
0..5V
0,1
0,1
0..10V
0,1
0,1
±0,625V
0,1
0,1
±1,25V
0,1
0,1
±2,5V
0,1
0,1
±5V
0,1
0,1
±10V
0,1
0,1
0 … 20 mA
0,2
0,2
0 … 10 mA
0,2
0,2
0 … 5 mA
0,2
0,2
DAC measurement range
Limits of the maximum basic percentage error, ±, %
Under normal conditions
Within operating temperature
range
0… 5 V
0,1
0,1
0 … 10 V
0,1
0,1
-2,5 … +2,5 V
0,1
0,1
-5 … +5 V
0,1
0,1
-10 … +10 V
0,1
0,1
Note: These characteristics are received during measurement with the averaging over 32
points and in accordance with MI 2539-99.

User Manual
AIC 324
1.2 MODULE’S STRUCTURE AND FUNCTIONING
1.2.1 Location of main components
Location of the main components (including connectors for module’s external connections) is given in
figure 1.1. Reference notations of connectors in figure correspond to the notations on the board.
Figure 1.1 –Main Components and Connectors Layout

User Manual
AIC 324
1.2.2 Block Diagram
Figure 1.2 –Module’s Block Diagram
The module includes the following functional blocks:
- Galvanically isolated digital and analog I/O unit.
- Digital I/O unit compatible with 8255.
- Timer unit compatible with 8254.
The analog I/O unit (XP9 connector) consists of a 16-bit ADC with a multiplexed 32x channel input, a
16-bit 4x channel DAC, a path calibration system, a temperature sensor and a digital input/output
channel. The multiplexed inputs of the ADC can be configured in 16 differential inputs or 32 non-
differential inputs. With the use of jumpers XP1 - XP8 in differential mode, the 0 –15 differential
channels can be transferred to the current measurement mode by connecting current-measuring
resistors. The ADC can operate in unipolar and bipolar conversion modes. The path gain factor can
be changed from 0.5 to 8 with respect to the reference voltage of 5V. The calibration system makes it
possible to perform internal calibration of the board without the use of external means. The calibration
minimizes board measurement errors throughout the operating temperature range, and availability of
a thermal sensor allows you to save calibrations in nonvolatile memory for reuse when the board is
operating in the similar temperature modes. When performing calibration, it is not necessary to
disconnect the ADC input channels from the signal sources. When DAC calibration is performed, the
output channels must be disconnected, since the DAC generates voltages in the range of ± 10V at the
output. Calibration can be performed using the test program aictest (“Aictest program. User Manual”)
or using functions from the function library supplied with the board (“Functions Library: User Manual”).
Digital channels located in the galvanically isolated part of the board, have a fixed direction of
input/output and can be used both for the arrangement of synchronous operation of several boards
and for implementing digital I/O functions.

User Manual
AIC 324
The digital I/O unit (XP12 connector) is compatible with an 8255 chip. Port A supports operation in the
0 and 1 modes, the other ports - only in the mode 0. The additional port D consists of 6 I/O lines. All
ports have current-limiting protective resistors and the ability to “pull down” or pull up the lines.
The timers unit located on the board is compatible with an Intel 8254 chip and is represented by a
three 16-bit timers. Timers 0 and 1 are connected in a circuit, which allows implementing a wide range
of frequencies for controlling the operation of ADC and DAC. The control circuits of the timers are
output to a galvanically isolated digital I/O port.
1.2.3 Module’s distinctive features
Module’s distinctive features are:
- Availability of galvanic isolation of the analog path of the board from the system bus;
- Support of I/O addresses on the PC104 bus: 0x100, 0x140, 0x180, 0x200, 0x280, 0x300, 0x340,
0x380.
- Supports direct memory access channels 1 and 3.
- Support of interrupts 3-7, 10-12, 14, 15.
- Availability of a pass-through connector type PC104 + to ensure the convenience of stacks assembly
not associated with the elements of the board;
- Ability to create alternative FPGA firmware with support for the changed board functionality. The
FPGA firmware can be changed via a dedicated I/O port.
-Possibility of the module to use the following OS:
- Linux 2.6
- QNX6
- FreeDOS
- Windows XP
An example of working with a module without using a library of functions can be found in the file
examples/aic324_init.c at FTP server.
Comparative characteristics of the module parameters of different manufacturers in PC/104 form-
factor (see ANNEX C).

User Manual
AIC 324
1.2.4 connection of the peripherals
Table 1: Switching
Name on PCB
Function
# of Contacts
XS1
(PC104)
Connection of PC104 expansion module via ISA bus
104
XS2
(PC104+)
Pass-through connector; installed for PC104+ system assembly
convenience. Not connected to the circuitry of the module.
120
XP12
(Digital IN/OUT)
30x digital I/O lines
34
XP9
(Analog IN/OUT)
32 analog input lines, 4 analog output lines, 4 digital input lines, 3
digital output lines
50
XP13
Interrupt and DMA channel number setting
30
XP10
Configuring of ADC input channels types and base address
10
XP15
Setting the discrete inputs/outputs group pull-up
3
XP1 - XP8
Connection of current measurement resistors to differential ADC
channels
4
Table 2: Light indication
Name on PCB
Function
Color
VD1
(LED1)
User LED
Yellow
1.2.5 Delivery checklist
The delivery checklist includes:
Analog I/O module AIC324;
Antistatic packaging (plastic bag) –1;
Consumer packaging (cardboard box) –1.
Note –If any of the provided components are missing or have external mechanical
damages, please contact the authorized distributor by whom the module was purchased.
Keep the antistatic packaging and consumer packaging of the module in its original form before the
end of the warranty period of operation.

User Manual
AIC 324
1.3 Connectors and Ports
1.3.1 Analog Connector
Table 3: XP9 Analog Connector Pinout
AGND
1
2
AGND
Vin0 / 0+
3
4
Vin16 / 0-
Vin1 / 1+
5
6
Vin17 / 1-
Vin2 / 2+
7
8
Vin18 / 2-
Vin3 / 3+
9
10
Vin19 / 3-
Vin4 / 4+
11
12
Vin20 / 4-
Vin5 / 5+
13
14
Vin21 / 5-
Vin6 / 6+
15
16
Vin22 / 6-
Vin7 / 7+
17
18
Vin23 / 7-
Vin8 / 8+
19
20
Vin24 / 8-
Vin9 / 9+
21
22
Vin25 / 9-
Vin10 / 10+
23
24
Vin26 / 10-
Vin11 / 11+
25
26
Vin27 / 11-
Vin12 / 12+
27
28
Vin28 / 12-
Vin13 / 13+
29
30
Vin29 / 13-
Vin14 / 14+
31
32
Vin30 / 14-
Vin15 / 15+
33
34
Vin31 / 15-
Vout DAC3
35
36
Vout DAC2
Vout DAC1
37
38
Vout DAC0
Vref out
39
40
AGND
A/D Convertion
41
42
Ctr2 out/ Dout 2
Dout 1
43
44
Ctr0 out/ Dout 0
Extclk/Din 3
45
46
ExtGate / Din 2
Gate 0/ Din 1
47
48
Clk0 / Din0
+5V
49
50
DGND
Table 4: Designation of the main functional outputs of the XP9 analog connector
Name
Function
Vin 0/0+ ~ Vin 15/15+
Analog inputs: 0-15 single-wire inputs/0-15 positive diff.
Vin 16/0- ~ Vin 31/15-
Analog inputs: 16-31 single-wire inputs/0-15 neg. diff.
Vref out
Reference +5V output. Do not use as power voltage.
Vout DAC 0-3
Analog outputs
A/D Conversion
Pulse to start A/D conversion (output)
Dout 2- 0
Galvanically isolated digital outputs combined with a pulse counter
Din 3 –0
Galvanically isolated digital inputs combined with a pulse counter or ADC startup
ExtClk
External ADC startup
ExtGate
Input gate latches Ctr 1&2 of 8254 timers module
Gate 0
Input gate latch Ctr0 of 8254 timers module
Clk 0
External clock input for timer 0 (8254 module) operation
+5V
Output of galvanically isolated +5V
ADND
Analog ground of galvanically isolated analog path
DGND
Discrete ground of galvanically isolated analog path

User Manual
AIC 324
1.3.2. Digital Connector
Table 5: Pinout of Digital Connector (XP12)
A7
1
2
A6
A5
3
4
A4
A3
5
6
A2
A1
7
8
A0
B7
9
10
B6
B5
11
12
B4
B3
13
14
B2
B1
15
16
B0
C7
17
18
C6
C5
19
20
C4
C3
21
22
C2
C1
23
24
C0
Latch
25
26
Ack
D0
27
28
D1
D2
29
30
D3
D4
31
32
D5
+5V
33
34
DGND
Table 6: Designation of the main functional outputs of the XP12 digital connector
Name
Function
A7 –A0
Digital I/O port A
B7 –B0
Digital I/O port B
C7 –C0
Digital I/O port C
D5 –D0
Digital additional I/O port D
Latch
Latch input, active level high (port А, mode 1)
Ack
Acknowledgement output, active level high (port А, mode 1)
+5V
+5V digital power
DGND
Digital ground of PC104 bus
1.3.3 Registers Mapping
+0
W
ADC conversion software start
If ADC is not in Busy state (AD_BUSY high), writing any value to the register leads to starting ADC
conversion.
+0
R
Reading of the lower data byte from ADC
Bit #
7
6
5
4
3
2
1
0
Name
AD7
AD6
AD5
AD4
AD3
AD2
AD1
AD0
AD7 –0 –ADC data from 7 to 0 bits.
+1
R
Reading of the higher data byte from ADC
Bit #
7
6
5
4
3
2
1
0
Name
AD15
AD14
AD13
AD12
AD11
AD10
AD9
AD8
AD15 –8 - ADC data from 15 to 8 bits.
*When using 8-bit module access commands, higher byte should be read first, then lower byte.
+2
R\W
Lower ADC channel number in scan mode.
Bit #
7
6
5
4
3
2
1
0

User Manual
AIC 324
Name
x
x
x
CL4
CL3
CL2
CL1
CL0
Lower ADC channel number in scan mode. Writing to this register leads to setting of the channel at the
module. Channel number can be from 0 to 31.
+3
R\W
Higher ADC channel number in scan mode.
Bit #
7
6
5
4
3
2
1
0
Name
x
x
x
CH4
CH3
CH2
CH1
CH0
Higher ADC channel number in scan mode. Channel number can be from 0 to 31.
+4
W
ADC control
Bit #
7
6
5
4
3
2
1
0
Name
FIFOEN
ADINTE
SCANEN
х
х
х
х
FIFORST
SCANEN (bit 5) –Enable ADC channels scan mode.
ADINTE (bit 6) –Enable interrupt from ADC.
FIFOEN (bit 7) –Enable FIFO mode when using ADC. If interrupt is enabled, it will occur when TF flag is set
to 1. If this mode is disabled and interrupt from ADC is enabled, it will occur each time on ADC conversion.
Bit FIFORST –Reset FIFO pointers.
+4
R
ADC status
Bit #
7
6
5
4
3
2
1
0
Name
FIFOEN
WAIT
STS
0
EF
TF
FF
OVR
EF, TF, FF, OVF –ADC FIFO status bits: Empty FIFO, FIFO threshold reached, FIFO overflow.
STS (bit 5) –ADC status: if = 1 the conversion in process or channels scan mode in process.
WAIT (bit 6) = 0 –ADC conversion enabled; = 1 –conversion start is not allowed, the time is needed for
setting a signal when a channel is changed, gain or range is switched. The waiting time is about 10 μs.
+5
R
DAC status
Bit #
7
6
5
4
3
2
1
0
Name
0
0
0
0
0
0
0
DACBUSY
DACBUSY bit indicates that data is being transferred to DAC. At this moment writing to the registers 5 and 6
is disabled.
+5
W
DAC control
Bit #
7
6
5
4
3
2
1
0
Name
WGSTRT
WGPS
WGRST
WGINC
DASIM
DAGEN
DACH1
DACH0
Bits DACH1-0 set current DAC channel in operation (0 to 3).
Bit DAGEN –if = 1, write the set data in FIFO along with the channel number.
Bit DASIM –if = 0, when writing Register 5, the data is transferred to DAC and set at DAC output;
if = 1, write to buffer occurs without output to DAC.
Bit WGINC –Write the data and increment the address counter in buffer. Manual mode.
Bit WGRST –Reset the generator buffer address.
Bit WGPS –Pause the generator. During pause, bit WGRST can be used to reset the generator.
Bit WGSTRT –Generator start in any mode.
+6
R
Update DAC data for all 4 channels
Update DAC data for all 4 channels.

User Manual
AIC 324
+6
W
Write 8 lower DAC bits
Bit #
7
6
5
4
3
2
1
0
Name
DAC7
DAC6
DAC5
DAC4
DAC3
DAC2
DAC1
DAC0
8 lower DAC bits
+7
W
Write 8 higher DAC bits
Bit #
7
6
5
4
3
2
1
0
Name
DAC15
DAC14
DAC13
DAC12
DAC11
DAC10
DAC9
DAC8
8 higher DAC bits.
*Write leads to different results depending on the control bits status.
If DASIM = 1, write occurs to memory cell with the DAC channel number, data output to DAC is not done.
If DASIM = 0, current written value is additionally sent to DAC.
If bit DAGEN = 1, the data are written to FIFO. This write to FIFO operation has priority over DASIM bit.
+8
R
Current page and power control
Bit #
7
6
5
4
3
2
1
0
Name
0
PWREN
0
0
0
P2
P1
P0
Bits P2-0 set page for the mode of extended access to the ports of the module. The page consists of
4 registers and is mapped to 12-15 registers of the main IO area.
Bit PWREN = 1 –Power is supplied to analog part of the module (default value).
+8
W
Setting current page, power and module reset control
Bit #
7
6
5
4
3
2
1
0
Name
0
PWREN
INTRST
RESETD
RESETA
P2
P1
P0
Bits P2-0 set page for the mode of extended access to the ports of the module. The page consists of
4 registers and is mapped to 12-15 registers of the main IO area.
Bit RESETA –Reset of DAC, FIFO, DIO and all internal registers. 8254 timer(s) is not reset.
Bit RESETD –The same reset as RESETA, but DAC is not affected.
Bit INTRST –Interrupts reset.
Bit PWREN = 1–Power is supplied to analog part of the module (default value).
+9
R
Read galvanically isolated digital inputs
Bit #
7
6
5
4
3
2
1
0
Name
0
0
Debounce
DINTE
DIN3
DIN2
DIN1
DIN0
Bits DIN3-0 –Read digital inputs at analog connector.
Bit DINTE –Enable interrupt from digital IO.
Bit Debounce –Enable software debounce at Din[3] input. In case of bad signal, leads to possibility of the
interrupt setting jitter of 6.4 μs max.

User Manual
AIC 324
+9
W
Isolated digital outputs control
Bit #
7
6
5
4
3
2
1
0
Name
х
х
Debounce
DINTE
LED
DOUT2
DOUT1
DOUT0
Bits DOUT2-0 –Control of digital outputs at analog connector.
Bit LED = 1, –Switch on the VD1 onboard LED.
Bit DINTE –Enable interrupt from digital IO.
Bit Debounce –Enable software debounce at Din[3] input. In case of bad signal, leads to possibility of the
interrupt setting jitter of 6.4 μs max.
+10
R\W
Timer 8254: clock and signal source control
Bit #
7
6
5
4
3
2
1
0
Name
TINTE
GT12EN
SRC0
GT0EN
OUT0EN
OUT2EN
FREQ0
FREQ12
Bit FREQ12 = 1, –Counter 1 input is supplied with 200 kHz signal from the internal generator;
if = 0 –20 MHz is supplied from the same source.
Bit FREQ0 = 1, –Counter 0 input is supplied with 20 kHz signal from the internal generator;
if = 0 –20 MHz is supplied from the same source.
Bit OUT2EN = 1, –Counter 2 output is routed to OUT2\DOUT2 output, cont. 42 of XP9 conn.
Bit OUT0EN = 1, –Counter 0 output is routed to OUT0\DOUT0 output, cont. 44 of XP9 conn.
Bit GT0EN =1, –Gate0\DIN1 (cont. 47 of XP9) connected to timer 0. Active level is high.
Pull-up to power 10 kOhm.
Bit SRC0 = 1, –Timer 0 receives clock freq. from FREQ0. = 0 –Clock input of the timer is connected to
pin CLK0\DIN0 (cont. 48 of XP9). Active edge is negative. Pull-up to power 10 kOhm.
Bit GT12EN =1 and if ExtGate\DIN2 (cont. 46 of XP9) = 0, then ADC conversion is started. ADC conversion
is not started, if this pin = 1. If it was 0 at start and then set to 1, conversion pause is set until it is 1.
Pull-up to power 10 kOhm.
Bit TINTE –Enable interrupt from 8254 timer.
+11
R\W
Interrupt flags read and reset
Bit #
7
6
5
4
3
2
1
0
Name
x
x
x
x
x
ADINT
TINT
DINT
Bit DINT = 1, interrupt received from discrete IO.
Bit TINT = 1, interrupt received from 8254 timer.
Bit ADINT = 1, interrupt received from ADC.
Writing 1 in the correspondent bit resets the flag. To reset all flags, write 0хFF.
1.3.4 Page 0 –8254 Timer
+12
R\W
Read/write counter 0 data
+13
R\W
Read/write counter 1 data
+14
R\W
Read/write counter 2 data
+15
R\W
8254 counter control port
Operation modes and registers fully comply with 8254 timer counter. For details, see standard
description, for example at: http://www.digchip.com/datasheets/parts/datasheet/227/8254.php

User Manual
AIC 324
1.3.5 Page 1 –Input / Output port 8255
+12
R\W
Port A read/write
+13
R\W
Port B read/write
+14
R\W
Port C read/write
+15
R\W
Control port read/write
Operating modes and registers fully comply with the Intel 8255 microchip. For details, see the
standard description, e.g.: http://en.wikipedia.org/wiki/Intel_8255
ATTENTION! All the ports support the 0 port. The 1 mode is supported only by Аport,
external synchronization outputs during operation in the 1 mode are routed to separate outputs of
digital connector and not to the Сport as described in the configuration of the 8255 chip.
ATTENTION! Additional digital port D has the direction of data transfer related to the port С
8255. i.e. Outputs D3 –D0 have the similar direction with the lower part of the port С(С3 –С0),
outputs D5 –D4 have the similar direction with the upper part of the port С(С7 –С4).
1.3.6 Page 2 –ADC control
+12
W
The least significant byte of the infill ratio for FIFO
Bit #
7
6
5
4
3
2
1
0
Name
FT8
FT7
FT6
FT5
FT4
FT3
FT2
FT1
Bits FT8-1 FIFO threshold during which interrupt is generated for ADC data acquisition from FIFO.
+12
R
The least significant byte of threshold value for FIFO
Bit #
7
6
5
4
3
2
1
0
Name
FC7
FC6
FC5
FC4
FC3
FC2
FC1
FC0
Bits FС7-0 the least significant byte of the word, specifying the current amount of data in FIFO.
+13
R\W
The most significant address of threshold value for FIFO
Bit #
7
6
5
4
3
2
1
0
Name
х
х
х
х
х
х
FT10
FT9
Bits FT10 –9 FIFO threshold at which generation of interrupt for ADC data acquisition from FIFO is carried out. FIFO
size amounts to 2048 words.
+13
R
The most significant byte of FIFO infill ratio
Bit #
7
6
5
4
3
2
1
0
Name
0
0
0
0
FC11
FC10
FC9
FC8
Bits FC11 –8 the most significant byte of the word, specifying the current amount of data in FIFO. FIFO amounts
to 2048 words.
Table of contents
Other Fastwel I/O System manuals