You are on page 1of 19

FPAA TRAINING MANUAL

For Technical Support

Oppila Microsystems Pvt Ltd


No.135, Old Madras Road
Halasuru
Bangalore- 560 008
fpaa@oppila.

Page | 1
What does the AnadigmDesigner2 software do?
 AnadigmDesigner2 allows one to quickly create and test analog circuits.
 Pre-packaged analog circuit blocks called "CAMs" may be selected and placed within
a "chip". The CAMs placed within a chip may then be "wired" together to form a
more complex circuit. There is a built-in simulator that may then be used to examine
the behaviour of the entire circuit.
 The built-in simulator allows one to place "signal generators" and "oscilloscope
probes."
 The results of the last simulation are saved so that the oscilloscope probes may be
moved from node to node to examine the behaviour of the circuit as if it were an
actual circuit on a lab bench.
 After one is sure that the circuit is behaving as planned, one may then download the
configuration bit stream to the Anadigm evaluation board. The download operation
will program the chip so that the chip will immediately begin to behave as the circuit
that was designed.
 The configuration bit stream may be downloaded directly to the Anadigm evaluation
board via the PC’s serial port. One may then examine the actual electrical behaviour
of the circuit embodied within the chip by using signal generators and oscilloscopes
attached to probe points on the Anadigm evaluation board.
 The bit stream may also be downloaded to files of various formats suitable for use
with ROM burners. This allows Anadigm Field Programmable Arrays to be
programmed from ROM chips.
 There are also systems to generate C code to assist the embedded system designer
who is doing dynamic configuration of the Anadigm FPAA under microprocessor
control.
Software Installation
 If you do not already have Anadigmdesigner2 on your PC. Insert the
software/documentation CD-ROM into your PC’s CD-ROM drive. The software should
automatically prompt you for installation. (Note: Anadigm’s web site has the most
up to date version of the software.)
 After you have installed the software, you will need to register your copy of the
software with Anadigm® online at http://www.anadigm.com/Lic_step_1.asp
 For registration you will need first to create a MyAnadigm account, then follow the
web site instructions to licence your software – (please use your real email address)
 Once you have registered online, a license ID and a license key will be e-mailed to
you.
 Please enter these in the registration dialog box of the AnadigmDesigner®2 software.
 You are now ready to use the world’s first FPAA design software.

Tools General Shortcut Keys


 Ctrl ‘w’ - Configuring the FPAA - Static.
 F5 - Simulating your Design with Anadigm’s In-build Oscilloscope.
 P - Selecting a Probe.
 M - CAM selection window

Page | 2
Configuring FPAA board
1. To configure the FPAA board, connect the USB cable between the board and a
computer.
2. Open AnadigmDesigner®2 (AD2) on the computer and go to the Settings menu, then
select Preferences.
3. Click on the Port tab. In the drop down menu under “Select Port” there should be a
COM port corresponding to the Anadigm board. It’s a virtual COM port. COM port
will have no label indicating that it is the Anadigm board, so if the computer has
other device.
4. Once connected to COM ports (real or virtual) then there may be more than one
COM port appearing in the drop down box. In this case it may be necessary to do
some trial and error to determine which port corresponds to FPAA board. Select the
appropriate COM port. Click on Apply, and then click on OK.
5. To check that AD2 is now able to communicate with the board, go to the Target
menu and select Display board Information. Below pop-up window will appear if the
FPAA board is successfully connected to the Anadigm Designer2.

6. Now board is ready for configuration. For configuration, click “configure” from the
tool bar and then click write data to serial port. Alternatively press ctrl ‘W’.
7. A yellow LED next to the microcontroller will flash as FPAA is configured, and finally a
green LED will turn on to indicate that FPAA have been configured correctly. A red
LED will indicate if configuration fails.

Page | 3
1. GAIN INVERTER
a – Static Configuration

Objective
Build a Circuit that inverts as well as amplifies the input signal.
Demonstration Hardware Requirements
1. FPAA Trainer Kit.
2. Standard serial (USB) programming cable and Power Supply.
3. AnadigmDesigner2 Software loaded on your computer.
4. Oscilloscope and Probes.
Design Steps
1. Within the AnadigmDesigner2, double click the left mouse button, it will show up the
chip clock divider settings;
2. Set the FPAA clock accordingly. For this experiment, we will select the CAM clock as
4000 KHz.
3. “Press the `M’ keystroke” and select “OscillatorSine” by double click and place inside
the FPAA. Set the parameter of OscillatorSine CAM as
Oscillator Freq =50 KHz and Peak Amplitude = 2V.

4. Similarly Place the GainInv CAM next to OscillatorSine. Set the parameter as Gain =
1 (or Desired Gain).

Page | 4
5. Make the connections by routing the wire from one CAM to other. You will be
allowed to start or terminate the wire with single left click on mouse button.

6. Assign output of OscillatorSine to IOCell7 and output of GainInv to IOCell5 of


FPAA2.
7. Place the probes by pressing `P’ keystroke as shown in Fig3 and save.
8. Simulate and check the waveform at in-build Anadigm Designer’s oscilloscope.
Powering up the Development Board
1. Connect a +5V power supply to the jack socket input.
2. There is a green LED to indicate that the board is successfully powered up.

Testing the Design


1. Now, connect the oscilloscope Probe1 to the BASIC OUTPUT (J65) jumper and
connect oscilloscope probe2 to FILTER OUTPUT (J64) jumper of FPAA board. You can
see the inverted output signal in the oscilloscope screen.
2. Now change “gain” in the CAM “Gain Inv” and configure the board as explained
above and check the waveform at oscilloscope.

Page | 5
b – Dynamic Configuration

Creating the Application


1. Open the Inverter Gain circuit.
2. Go to Dynamic Config menu and select Visual C++ Prototype.
3. Select VC++ version e.g. Visual C++ .NET 2003. Select directory and type in Project
name, for the purpose of this document we will call it Inverter Gain. Click on
Generate. The project will be created and will open in Visual Studio.
4. In the solution explorer window in Visual Studio expand the Inverter Gain directory
and then expand the Source Files directory, double click on Inverter_GainDlg.cpp
and scroll down to the OnInitDialog function. Change the values of m_sampleMin,
Max and Value to 0.1, 1.5 and 1.0 respectively. These are the slider min, max and
default values for gain of the inverting gain stage.
5. Go to the UpdateSampleControls function and insert the code below at the bottom
of the function. The functions come from the FPAA1_GainInv1.cpp files in the CCode
dir.
m_FPAA2.GainInv1.setGainInv(m_sampleValue);
m_FPAA2.ExecuteReconfig(AUTO_EXEC);
This code makes the slider change the gain of the Gain inverter. The CAM is named
as GainInv1 in this case.
6. Also delete the word Units in the following line in UpdateSampleControls functions:
value.Format(“%.2 ”, m_sampleValue);
7. Change from Solution Explorer to Resource View in left window. If the resource view
tab is not visible then go to the View menu at the top and select Resource View.
There will be 3 directories - CCode, PortIO and “the project directory”, in this case
“Inverter_Gain”. Expand the project directory, then the Inverter_Gain.rc directory,
and then the Dialog directory and then double click the project dialog called
IDD__INVERTER_GAIN_DIALOG. This will show the GUI (Graphical User Interface).
8. Inverter_Gain GUI will be formed. In that GUI, below the slider, there is a text start
with “To make these controls.............” delete the said text and type as “GAIN” (i.e.
the name of the “Dynamic variable parameter”). Then drag and move the text and
slider of the convenience of the user.
9. Build it and run it.
10. Go to the Project Directory e.g. C/User/FPAAWorkshop/Inverter Gain), open the
project directory double click on Inverter_Gain then double click on Debug Open the

application file named as Inverter_Gain , GUI will open and move the slider
to dynamically reconfigure the FPAA.

Page | 6
2. FULL WAVE RECTIFIER
Objective
Build a Circuit that Filters and Rectifies a Signal.

Demonstration Hardware Requirements


1. FPAA Trainer Kit.
2. Standard serial (USB) programming cable and Power Supply.
3. AnadigmDesigner2 Software loaded on your computer
4. Oscilloscope and Probes.

Design Steps
1. Place the OscillatorSine CAM by pressing the `M’ keystroke. Set the parameters as
Oscillator Freq = 100 KHz and Peak Amplitude = 1.5V.

2. Place the RectifierFilter CAM next to Oscillator Sine. Set the parameters as, Corner
frequency = 100 KHz and Gain = 1

Page | 7
3. Place FilterBiquad and then select Low Pass filter. Set the parameter as given below
for both the FilterBiquad CAMs. Corner Frequency = 40 KHz, Gain = 1 and Quality
factor = 0.707.Change the polarity of the filter to Non-inverting by selecting the
respective radio button.

4. Now make the connections as shown below.

5. Assign the output of OscillatorSine to IO cell 5 & output of 2nd FilterBiquad to the IO
cell 7.

Page | 8
Powering up the Development Board

1. Connect a +5V power supply to the jack socket input.


2. There is a green LED to indicate that the board is successfully powered up.

Configuring FPAA board

Testing the Design

Now, connect the oscilloscope probe1 to the Basic Output Jumper (J65) and oscilloscope
probe2 to Filter Output (J64) Jumper of FPAA. You can see the rectified Output signal in the
oscilloscope screen.

Page | 9
3. VOLTAGE CONTROLLED OSCILLATOR
a – Static Configuration

Objective

Build a VCO whose frequency to be controlled by the input voltage.

Demonstration Hardware Requirements

1. FPAA Trainer Kit.


2. Standard serial (USB) programming cable and Power Supply.
3. AnadigmDesigner2 Software loaded on your computer.
4. Oscilloscope and Probe.

Setting up the AnadigmDesigner2

1. Open AnadigmDesigner2 and select “Continue with Default Chip (AN231E04)” (if the
chip selected is not AN231E04 you need to change it using “Choose a Different Chip”
and then select AN231E04 chip.
2. Within the AnadigmDesigner2, double click the left mouse button, it will show up the
chip clock divider settings;
3. For this experiment, we will set the CAM clock as 2000 KHz. To achieve this, set the
FPAA clock accordingly.

Design Steps:
1. Place the VCO CAM. Set the parameters as
2. Centre frequency as 20 KHZ and Frequency variation as 80%.

Page | 10
3. Connect input to IO cell 2 and first output to the IO cell 5 and second output to the
IO cell 7 of FPAA 2.

Powering up the Development Board

1. Connect a +5V power supply to the jack socket input.


2. There is a green LED to indicate that the board is successfully powered up.

Configuring FPAA board

Testing the design

1. Now connect the oscilloscope probe 1 to Basic Output (J65) Jumper and oscilloscope
probe 2 Filter output (J64) jumper of FPAA board.

2. Now check the variation in the frequency of the VCO by varying the potentiometer

Page | 11
b- Dynamic Configuration

Creating the Application

1. Open the VCO circuit.


2. Go to Dynamic Config menu and select Visual C++ Prototype.
3. Select VC++ version e.g. Visual C++ .NET 2003. Select directory and type in Project
name, for the purpose of this document we will call it VCO. Click on Generate. The
project will be created and will open in Visual Studio.
4. In the solution explorer window in Visual Studio expand the VCO directory and then
expand the Source Files directory, double click on VCODlg.cpp and scroll down to the
OnInitDialog function. Change the values of m_sampleMin, Max and Value to 5.0, 80
and 20 respectively. These are the slider min, max and default values for frequency
Variation of the VCO.
5. Go to the UpdateSampleControls function and insert the code below at the bottom
of the function. The functions come from the FPAA2_xVCO1.cpp files in the CCode
dir.
m_FPAA2.xVCO1.setVCO(20, m_sampleValue);
m_FPAA2.ExecuteReconfig(AUTO_EXEC);
This code makes the slider change the gain of the Gain inverter. The CAM is named
as GainInv1 in this case.
6. Also delete the word Units in the following line in UpdateSampleControls functions:
1. value.Format(“%.2 ”, m_sampleValue);
7. Change from Solution Explorer to Resource View in left window. If the resource view
tab is not visible then go to the View menu at the top and select Resource View.
There will be 3 directories - CCode, PortIO and “the project directory”, in this case
“VCO”. Expand the project directory, then the VCO.rc directory, and then the Dialog
directory and then double click the project dialog called IDD__VCO_DIALOG. This will
show the GUI (Graphical User Interface).
8. VCO GUI will be formed. In that GUI, below the slider, there is a text start with “To
make these controls.............” delete the said text and type as “Frequency Variation”
(i.e. the name of the “Dynamic variable parameter”). Then drag and move the text
and slider of the convenience of the user.
9. Build it and run it.
10. Go to the Project Directory (e.g. C/User/FPAAWorkshop/VCO), open the project
directory double click on VCO then double click on Debug Open the application file

named as VCO , GUI will open and move the slider to dynamically
reconfigure the FPAA.

Page | 12
4. TONE (NOISE) GENERATION AND NOTCH FILTER
Objective
1. Design and implement a circuit that adds noise (by frequency tone) to an audio
signal and then remove the noise using band-stop (notch) filter.
2. Learn to design & implement complex Analog circuits rapidly using FPAA.
3. Learn to design & implement Analog signal processing (low frequency signals like
audio, biomedical, etc) rapidly using FPAA.

Demonstration Hardware Requirements


1. FPAA Trainer Kit.
2. Standard serial (USB) programming cable and Power Supply.
3. AnadigmDesigner2 Software loaded on the computer.
4. Audio source and an audio media/file. Using a Laptop with an audio application like
5. Windows Media Player is not recommended because of ground problems.
6. Stereo audio cable for Input.
7. Powered speakers or headphones for audio output.
Design Steps
1. Open AnadigmDesigner2 , Select Chip - AN231E04
2. For this experiment, we will set the CAM clock as 50 KHz for FPAA1 , because the
physical input and output connections are made on this chips.
3. Now insert the SumFilter CAM in FPAA1 and change the CAM parameters by double
clicking on the respective CAMs and set parameters as follows. Corner Frequency =
0.9 KHz, Gain1 = 3, Gain2 = 0.1.

Page | 13
4. Insert OscillatorSine CAM on FPAA1 and set parameters as follows. Oscillator
Frequency = 0.9 KHz and Peak amplitude = 1.33V.

5. Now insert the FilterBiquad CAM, Select Filter Types as Band Stop (Notch) and set
parameters as follows: Corner Frequency = 0.9 KHz, Dc Gain = 1, High Freq gain = 1,
Q-factor = 0.707.

6. Assign Amplifier (Filter) as input on IOCell3 and IOCell 4 and Output (Bypass) to
IOCell6 and IOCell7
7. Now make the connections as shown in the above figure

Page | 14
Powering up the Development Board
1. Connect a +5V power supply to the jack socket input.
2. There is a green LED to indicate that the board is successfully powered up.

Configuring FPAA board

Testing the Design

1. Now connect the audio cable input to the Audio Input(J4) Jumper feed any audio
source, say for example from mobile phone.
2. Connect the Headphone/Speaker to the Audio Output J25 Jumper
3. Play favourite music from your cell phone.
4. Now Change the frequency of OscillatorSine from 0.9 kHz to 1.0 kHz.
5. The frequency tone (i.e. noise) will appear on one channel.
6. Modify the FilterBiquad parameters to filter the noise (i.e. from 0.9 kHz to 1.0 kHz).
The band-stop (notch) circuit will suppress the noise tone.
7. Similarly change various parameters like peak Amplitude of OscillatorSine and
observe the noise, by setting different filter parameters at FilterBiquad.
8. Same changes can be done at other channel and observe the output accordingly.

Page | 15
5. REALIZATION OF FILTERS (LP, HP, BP, BS) – USING ANADIGMFILTER TOOL

Objective
1. Learn various Filter types and its approximation.
2. Understanding Filter frequency response using AnadigmFilter Tool.
3. Design complex, high order filters & implement in minutes.

Demonstration Hardware Requirements


1. FPAA Trainer Kit.
2. Standard serial (USB) programming cable and Power Supply.
3. AnadigmDesigner2 Software loaded on the computer.
4. Oscilloscope and Probe.

Setting up the AnadigmDesigner2

1. Open AnadigmDesigner2 and select Chip AN231E04


2. Click Tools –> AnadigmFilter from menu bar

Page | 16
Design Steps:

1. In AnadigmFilter, Designing a Low pass filter

2. Select Filter Type & Approximation. For example Low Pass filter & Butterworth
Approximation as shown

Page | 17
3. Define the parameters of the Low pass filter as follows, Pass Band Freq as 100KHz
and Stop Band freq as 200KHz and Uncheck the automatically adjust clock.

4. Send your design to Anadigm Designer2, by clicking To AnadigmDesigner2

Page | 18
5. Make the Connection by wiring the circuit,

Powering up the Development Board


1. Connect a +5V power supply to the jack socket input.
2. There is a green LED to indicate that the board is successfully powered up

Configuring FPAA board

Testing the Design:


1. Now, connect oscilloscope probe to Filter Output (J64) jumper of FPAA board and
you can see the filtered output signal in the oscilloscope screen.
2. Now change the frequency of the input to the board and analyse the filter output in
the oscilloscope screen.
3. Change the filter approximation and analyse the frequency response of the filter for
different approximation techniques.
4. Try the same procedure and design various filters like High Pass, Band Pass and Band
Stop filter using AnadigmFilter Tool.

Page | 19

You might also like