Title: Capstone CDR
1Capstone CDR
- Group AquaLung
- Mir Minhaz Ali
- Wilfredo Oteromatos
- Greg Newcomb
- Robin Elliott
2Presentation Overview
- Freddy
- CCD Parallel Interface
- CCD Serial Interface
- Functional Block Diagram
- Analog to Digital
- FPGA Connection
- Minhaz
- Hardware Overview
- Bill of Materials
- Fiber and Camera Assembly
- CCD and Connection
- Greg
- USB Interface
- Easy USB Chip
- Connection
- Device Driver to handle USB
- Driver to GUI
- Robin
- Software Functionality
- Software Flowchart
- AquaImage
- Program Launch and Menu
- Time Chart
- Milestone Tasks
3Complete Hardware Overview
4Bill of Materials (BOM)
- 1 meter long optical fiber with built in camera
- Ti CCD Sensor (TC237B)
- Hi speed clock driver for CCD (EL7202C)
- Octal buffer for CCD serial driver ( 74ACT240NS)
- Spartan 3 FPGA with 1M-byte of Fast Asynchronous
- USB Chip (FT245BM)
- USB Cable and connector
- 8bits ADC(AD7825)
- EPROM (93LC46B-I/P)
- Clock (12.5 MHz) (CSTLS6M00G53Z-B0)
- Crystal Resonator (6MHz)
- Variable output voltage regulator (PTN7800)
- Other hardware, Capacitor and resistor.
5Optical Fiber and Camera
- 7000 pieces of fiber inside creating full color
image. - 0.5mm diameter glass fiber imaging bundle enables
scope to bend around . - Very inexpensive(120) for 1M long fiber with
camera - 2 Xeon light bulbs to illuminate the image.
1M long Optical Fiber
Camera Tip
Eye Piece
6 Charge Couple Device (CCD)
- 0.34M Pixels Per Field
- 658(H) x 469(v) Active Elements
- Multimode readout capability
- Progressive Scan
- Duel Line readout
- Image Area line Summing
- Low Dark Current
- 7.4µm x 7.4µm pixel size
- 12.5 MHz Clock
7Module 1 CCD
- Four Functional Blocks
- Image sensing area
- image storage area
- serial register gate
- low noise signal processing amplifier block
- The storage area and serial gate are used to
transfer charge line by line from storage area
into serial register - After transfer the pixel are clocked out and
sensed by charged detection node.
8Module 2 CCD Parallel interface
- Drivers
- EL7202C (non-inverting)
- Image Area Gate (IAG)
- Storage Area Gate (SAG)
- - Input CLK(12.5MHz)
- Output Logic signals to control Image and
Storage Areas. - Purpose Activates the Image Area and Opens the
Storage Area.
CCD Driver
9Module 3 CCD Serial Driver
- Progressive Scan Mode
- Two register available for high speed data
transfer - Drives the Serial Register Gate (SRG)
- 12.5Mhz clk. Signal.
- 74ACT240 Octal buffer
- Allows data to be pulled from the serial
registers. - Input CLK (12.5MHz)
- Output Driving signal.
Octal Buffer
10Functional Block Diagram
Parallel Driver
Serial Driver
11 Analog to Digital Converter
- AD 7825
- 2Msps
- 420nS conversion time
- PWR Dissipation 36mW
- Input 2 AC signals from CCD out1 and 2.
- Output 8 Bits Parallel to FPGA.
- Purpose Conversion from CCD analog output to
FPGA A-2 header.
12Module 4 Spartan III FPGA
- FPGA Spartan III
- Inputs
- Data from ADC
- End of Conversion (EOC) signal from ADC.
- Outputs
- 8 bits data to USB interface
- Control signals to
- ADC
- USB (interface)
- CCD
- Function Data timing issues resolutions and
sampling.
13 Module 5 USB Interface
14Easy USB chip
- FIFO Interface between FPGA and USB cable
- Bidirectional
- Transfer data rate 1M byte/sec
- Entire USB protocol handled on-chip
- Simple to interface with FPGA
- USB 2.0 Compatible
- Cheap
- EEPROM optional (93LC46B)
- Default setting or program with EEPROM
- 6 MHz Timing Chip required (CSTLS6M00GS32-B0)
- With 8x clock multiplier, works at 48 MHz
15Easy USB - FT245BM
Single Chip USB ltgt parallel FIFO bi-directional
data transfer
Clock
EEPROM Interface
Check TXE Low
Control
16Easy USB - FT245BM
Single Chip USB ltgt parallel FIFO bi-directional
data transfer
Clock
Input 8 pin digital signal from FPGA (D0-D7)
EEPROM Interface
Write when TXE Low
Control
17Easy USB - FT245BM
Single Chip USB ltgt parallel FIFO bi-directional
data transfer
Clock
Input 8 pin digital signal from FPGA (D0-D7)
EEPROM Interface
Sending over USB cable
Output 2 pin signal to USB Cable (USBDP USBDM)
TXE is Raised
Control
18Easy USB - FT245BM
Single Chip USB ltgt parallel FIFO bi-directional
data transfer
19Physical Connection to USB pins
To PC
From FPGA
Type A/B USB cable
Pin FPGA Signal Name
1 5 V VBUS
2 USBDM Data Minus
3 USBDP Data Plus
4 GND GND
20USB Cable
- USB 2.0 (Full Speed)
- Uses NRZI (Non Return to Zero Invert) encoding
- Not our problem!
21Device Driver to Handle USB
- Provided by FTDI free
- Version for Windows XP
- Will allow for plug play
22Driver to GUI Handoff
Notice Interrupt Open File 1
23Driver to GUI Handoff
Save 1st picture
24Driver to GUI Handoff
Notice File 1 is Full Open File 1
Picture 1 saved Close File 1
25Driver to GUI Handoff
Read Data from File 1
Save next picture
26Driver to GUI Handoff
Finish Getting Data Close File 1
Save next picture
Send image to monitor
27Driver to GUI Handoff
Open File 2 Get Data
Save next picture
28Software Functionality
Pick Up Event
Launch Program
Display Moving Image
Y
- Option
- Buttons
- Zoom
- Color Contrast
- Pause/Unpause
- Auto Save
- OpenSaved Image
Data?
N
Pick Up Event
Display Still Image Or None at all
Exit Program
29Software Flow Chart
? Valid Mouse Event ?
- Display Moving Image
- Patient name ID
- Zoom/Contrast toggle
- Zoom Level (if zoomed)
N
? Determine Event ?
- Launch Program
- initialize software
- look for device driver
Y
? Image Update Ready ?
Y
N
Y
? Device Driver Found ?
? Data From Driver ?
- Auto Save Image
- Name, ID, date, time
Y
Y
? Moving Image ?
- Zoom Toggle
- Turn off Color Contrast
N
- Color Contrast Toggle
- Turn off Zoom
N
Display Driver Error
N
Unpause the Image
Display No Signal
Pause Current Image
Open Saved Image
? Open Saved Image ?
? Determine Event ?
Y
- Display Still Image
- Patient name ID
- Zoom/Contrast toggle
- Zoom Level (if zoomed)
? Valid Mouse Event ?
Y
N
N
- Exit Program
- Close all files
30 About AquaImage
This is the About box seen in all Windows
applications.
31 Program Launch
- Screen seen at start-up.
- Circled items are customized features.
32 Menu Bar
- Menu features included in AquaImage.
33Time Chart
34 Milestone Tasks
- Milestone 1
- GUI Complete
- Device Driver Implemented/Not Tested
- Prototyping and Modular Testing
- Milestone 2
- Static Interface Working
- Prototyping and Testing Complete
- PCB In House
35Questions ??