NACK Digital Equalizer Nguyen Craig Petersen Andrew Nguyen Kevin Wong Group 7 CPSC 483 - 502 © 2000...

Post on 20-Dec-2015

219 views 0 download

Tags:

Transcript of NACK Digital Equalizer Nguyen Craig Petersen Andrew Nguyen Kevin Wong Group 7 CPSC 483 - 502 © 2000...

NACK Digital Equalizer

• Nguyen Nguyen• Craig Petersen

• Andrew Nguyen• Kevin Wong

Group 7

CPSC 483 - 502 © 2000

Midterm Proposal

Problems Encountered• State Machine Transitions Much Too Fast -

Solved by Decreasing Clock (LED Circuit)

• Difficult to Test LED (Column) Display Without Proper Band Filtering

• NS16550 UART (Communications IC) Becomes Extremely Hot

• Serial Communication More Difficult to Implement than Previously Expected

Modifications?

• Added LED (Digital) Display For Easy Reference (dB levels)

• 5-Bands Used Instead of 7-Bands

• Not 7-Band Due to National Semiconductor IC Becoming Obsolete

• dB Range in Increments of 2.4 (-12 to +12) Instead of +1/-1 dB (Due to IC Used)

Modifications (Cont.)

• Software/Hardware = 65% - 35% (Now)

• Software/Hardware = 35% - 65% (Previous)

• Transition due to FPGA Implementation and Not TTL

Results/Partial Results Obtained

• LED (Digital) Display Counting from -12 to +12 (dB) in 2.4 Increments - 10 Steps

• LED (Column) Works but Unable to Test Individual Bands

• 5-Band Equalizer Semi-Communicates with UART (Output Response Undetermined)

Results/Partial Results Obtained (Cont.)

• UART Can Transmit/Receive Data When Test By Switching Wire Manually

• Internal Baud Generator of UART Can Be Programmed By State Machine

• A Functional Stand Alone FPGA

Assignment of Responsibilities - Updated

• Nguyen - Software Program, UART FPGA Control

• Andrew - Testing Equalizer

• Craig - Interfacing LCD, Constructing LED (Digital) Display, LED Column Display, Assisting Andrew with Equalizer Circuit Communication

• Kevin - Serial Interface, Software Program, UART FPGA Control, Stand Alone FPGA

Levels Encountered - (1 = Best 4 = Very Poor)

• Difficulties Faced Implementing Project - 2

• Serial Interface Being Problematic

• Coordination Among Team Members (Availability) - 3

• Everyone is interviewing and busy with classes

• Support From the Lab - 1

• Lab TA is extremely helpful

5-Band Equalizer Specs

• Monolithic integrated 5-band stereo equalizer circuit

• Five filters for each channel

• Center frequency, bandwidth and maximum boost/cut

• defined by external components

5-Band Equalizer Specs (Cont.)

• Choice for variable or constant Q-factor via I^2 C software

• The 5-band stereo equalizer is an I^2 C-bus controlled tone

• Processor for application in car radio sets, TV sets and Music centers.

5-Band Equalizer Specs (Cont.)

Defeat mode

All stages are DC-coupled

I^2 C-bus control for all functions

Two different module addresses programmable.

Andrew Nguyen’s Contributions

• Fabricate the Hardware

• Build State Machine for the Equalizer

• Build the Circuit for the Equalizer

• Test the Equalizer

• Help Craig and Kevin

Craig Petersen’s Contribution

• Developed Both a Hardware and FPGA Version of LED (Digital) Display (State Machine) - Displays Band, dB Level, Positive/Negative Sign, and decimal point

• Developed LED (Column) Display Using 10 LEDs for Each Band

• Helping Andrew Communicate with Equalizer Circuit - State Machine and Verilog Code for I2C Bus

Kevin Wong’s Contribution

• Worked On Equalizer Control Software (PC - Visual Basic)

• Wired-Up Stand-Alone FPGA

• Built The Serial Interface Circuit

• Implemented UART Control State Machine

• Also helped Andrew and Craig

Nguyen Nguyen’s Contributions

• Write code in Visual Basic to test on a loop-back cable.

• Help around in making circuit board layout.

• Figure out the pin number on Xilinx chip to connect to RS-232.

• Using state machine to change the state of output frequencies.

R

+-

5 V

1

2345678910

Audio Input(Each Band)

Equalizer Circuit

LED DRIVER IC

(LED Brightness)

Frequency Filters

Audio OutFiltered

Audio InUnfiltered

LCD

UP

DOWN

LEFT RIGHT

FPGAControlCircuitry

Control and DataLine

LED Segment Display

RS-232 Logic VS. TTL Logic

Logic Level RS-232 TTLActive/High -3 ~ -25V 5VInactive/Low +3 ~ +25V 0V

Serial Interface Schematic

MAX232

16550UART

FPGA

DATA (D0..D7)

ADDRESS (A0..A2)

READ

WRITE

Rx

Tx

Rx

Tx

OtherControl/Equalizer

Component

Serial Port(PC Connection)

FLOW DIAGRAM

ComputerSoftwareControl

Demux

ManualControl

DigitalController (FPGA)

Display Driver

LEDDisplay

5-BAND INTEGRATED CIRCUIT

LRC Support

LCDDisplay

Band Boost & Cut

Audio Files

COMPUTERSPEAKER

SPEAKER

UART Control State Machine

Initialize UART:Serial Characteristics

Band GeneratorFIFO/16450 Mode

IN

OUT

Din[7:0]

Dout[7:0]

MEMin[7:0]

MEMout[7:0] WR RD

RxRDYTxRDY

A[2:0]

START

Wait For Data ToTransmit/Receive

Transmit:Put Data

From MEMin to DoutFor UART to Transmit

Receive:Get Data

From Din to MEMoutFor FPGA

TxRDY

RxRDY

MAX-232 Driver/Receiver

• 2 Receivers & 2 Transmitters• Generates +10V & -10V From Single 5V

RS-232 Data Format

HIGH

LOW

Idle 5-to-8 DataBits

ParityBit

StopBit

IdleStartBit

D0 Dn P StSr

Period = 1 / Frequency

Frequency = 16 * Baud Rate

Ex: 115200bps => Frequency = 16 * 115200 = 1.8432MHz

Universal Asynchronous Receiver/Transmitter

• Serial-to-Parallel / Parallel-to-Serial Conversion

• 16 Bytes Receive/Transmit Storage Buffer

• Add/Delete Standard Asynchronous Communication Bits

• Build-in Programmable Baud Generator

16550 UART

UART Settings

• 8 Data Bits, 1 Stop Bit, No Parity Bit

• 115200bps Baud Rate

• 18.432MHz Clock (Baud Rate Divisor: 10)

Week 1 Week 2 Week 3 Week 4 Week 5 Week 6 Week 7 Week 8 Week 9 Week 10 Week 11 Week 12 Week 13 Week 14 Week 158/28~31 9/1~7 9/8~14 9/15~21 9/22~28 9/29~10/5 10/6~12 10/13~19 10/20~25 10/26~11/2 11/3~9 11/10~16 11/17~23 11/24~30 12/1~7

Prepare Final Proposal

FPGA

Test And Debug

Present Proposal & Demo

Order Chips And Components

Equalizer Chips

Setup Circuit Board

Serial Interface

LED Displays & Drivers

LCD Display

Get Familiar With Visual Basic

Implement The Control Software

Do Testing On The Software

Design Circuits

Task

Research and Development

Prepare and Present Proposal

P lanned

Completed

Still Working

Week-by-Week Goals

List of Components for implementation

• Graphic driver program to digitally control the equalizer’s activities

• A workstation/pc for the software package• A soundcard• A bus interface• 7 analog filters and gain system• 14 operational amplifier• Resistors• Capacitors

List of Components for implementation (cont ….)

• Switches/selectors

• LEDs display bar

• Decoders/Demuxes

• Diodes

• LCD display

• Xilinx tool/Labview

List of Components for testing

1. Breadboard2. Oscilloscope3. Function Generator4. Digital Multimeter

List of special testing environments

• Xilinx circuit board

• PC with available COM port and sound card

• Audio speakers

• Music files

• Oscilloscope

Percentage of software and hardware work involved

• Hardware: 60 - 65%

• Software: 35 - 40%

Cost of prototypeLabor and services Measure Unit Approximate Cost

Parts Listed parts $300Equipments 100 hours $600Facilities 150 hours $1000Consultant 10 hours $500Drafting (layout &document)

Materials & 50hours

$300

Miscellaneous Other expenditures $150Total $2850

Technical Specifications

Frequency response (Centerposition)

5 Hz ~ 100 kHz, -3 Db

Maximum output voltage 5 V (1 kHz, THD 0.01%)Rated output voltage 1 VRated total harmonic distortion 0.002% (1 kHz), 0.1%(20 kHz)Input sensitivity 1VSignal-to-noise ratio 110 dBMaximum input voltage 6 V (1 kHz)Input impedance 27 kHzGain 0 +- 1 dBBand level control +12 dB ~ -12 dBCenter frequencies 63 Hz, 160 Hz, 400 Hz, 1 kHz, 2.5

kHz, 6.3 kHz, 16 kHzPower Supplies AC 120 V 60 HzPower consumption 10 W

Team Assignments

Andrew Nguyen Software / Hardware Specialist (FPGA modules,A/D Converter, PC Board)

Kevin Wong Software Specialist (Majority of SoftwareInterfacing with Equalizer, FPGA)

Craig Petersen Hardware Specialist (Connect LCD display, LEDfunctionality, Analog Filters, Construction ofCasing

Nguyen Nguyen Testing, Software Coding, Circuit Design

Note: Responsibilities may change throughout the semester due to individualstrengths.