Design and test of a data acquisition system based on USB interface for the Medipix2 chip

Sezione di Cagliari Università di Cagliari Design and test of a data acquisition system based on USB interface for the Medipix2 chip V. Fanti, R. M...
Author: Briana Sherman
5 downloads 1 Views 946KB Size
Sezione di Cagliari

Università di Cagliari

Design and test of a data acquisition system based on USB interface for the Medipix2 chip

V. Fanti, R. Marzeddu, G. Piredda, P. Randaccio IWORID2004 Glasgow

1

System outline • Medipix2 serial readout port • Universal Serial Bus v 1.1 interface • External power supply card • Reduced size (3.8 x 4.8 cm2)

Power supply card

• No extra interface board needed

220 V

• Acquisition time ~ 1 s + 2.2 V + 50 V

Host PC

USB 1.1

(1.5 MBits / s ) IWORID2004 Glasgow

Demonstrator 2

General features • Serial readout of Medipix2 chip • Test pulse input • Readout of Medipix2 internal DACS with an 8-bit ADC • USB v. 1.1 low speed interface (data rate up to 1.5 Mbits/s) • Reduced size (3.8 × 4.8 cm2)

IWORID2004 Glasgow

3

Project overview •One Medipix2 readout chip •One Microchip® PIC16C675-I/NP microcontroller • USB v. 1.1 interface (up to 1.5 Mbits/s) • one channel 8-bit ADC for internal DACs readout • Bidirectional Serial Communication Interface between PIC and Medipix2 chip • Two LVDS driver/receiver (DATA_IN/OUT, FCLOCK_IN/OUT signals) • One voltage ref. circuit for internal DACs reference (1.324 V) • Three power lines: 2.2 V, 50 V (adj), 5 V (USB)

IWORID2004 Glasgow

4

Something about USB … 1. USB stands for Universal Serial Bus 2. Data rate supported: - (v 1.1 ) 1.5 Mbit/s (low speed) - 12Mbit/s (high speed) - (v 2.0) 12Mbit/s (full speed) - 480Mbit/s (high speed) 3. USB controller is required to control bus and data transfer. 4. Plug &Play and Hot-Swap connection 5. Cable up to 5 m (4-wire cable). 6. Up to 127 devices supported. 7. Power supply to external devices is 500 mA/5V (max). 1.5 Mbit/s means a readout time equal to ~600 ms IWORID2004 Glasgow

5

Something about PIC16C765 1. USB Connectivity 1.1v (Low Speed) 2. 8-bit microcontroller 24 MHz int. frequency 3. 5 channels of 8 -bit Analog-to-Digital converters 4. Serial communication interface (USART) 5. Program memory size = 14336 bytes 6. RAM size = 256 bytes 7. CMOS One Time Programmable (OTP) /!

IWORID2004 Glasgow

6

An easy-to-use system A personal computer Plug & Play device – The demonstrator is auto detected from the PC like as a general HID device

Power cable

Demonstrator

HID = Human Interface Device IWORID2004 Glasgow

7

Demonstrator card • Flexible and easy connection • Based on a single chip PIC Microcontroller • Reduced size (dental application ?)

USB cable

2.2V, 50 V cable

Top side

Bottom side IWORID2004 Glasgow

8

3

+50 V

+5 V

+2.2 V

Block diagram

To host PC

Vusb D+ D-

Power filters

DS90LV019TM PFCLOCK_OUT NFCLOCK_OUT

LVDS → CMOS

FCLOCK_OUT

CMOS → LVDS

CLOCK

USB interface

TP

PFCLOCK_IN NFCLOCK_IN

CLOCK

1

Medipix2 chip

PDATA_IN NDATA_IN

CMOS → LVDS

DATA_IN

LVDS → CMOS

DATA_OUT

DATA

PDATA_OUT NDATA_OUT

TX/RX# 1 TEST_IN

DAC_BIAS

TP

1.324 V

VCC (+5V)

8

IWORID2004 Glasgow

1

Serial Synchronous Interface

1 DAC_OUT

SHUTTER RESET M1 M0 ENABLE_OUTC SPARE_FSR POLARITY ENABLE_INC

ADC 8-bit

65 7 C 16 PIC

8-bit register 9

The power supply card 220 V – 50 Hz power plugged 50 V (adj.) – 100 µA output for sensor polarization 2.2 V - 1 A output for Medipix2 chip power supply Transformer

Voltage regulator

Rectifier circuit

220 AC

5V=

Power Supply Card

5V=

2.2 V – 1 A

DC-DC converter circuit

~50 V – 100 µA

IWORID2004 Glasgow

10

Some questions… Why such a little card? We think it is a good opportunity so use this project for some special applications (ex. dental radiography?) So why USB v 1.1 ? Microchip does not yet produce microcontrollers with USB 2.0 interface Why do we need an external power supply card ? The maximum current intensity which USB power line can supply is 500 mA.

IWORID2004 Glasgow

11

Project schematic

(Orcad® Capture)

Medipix2 LVDS

Power filter

PIC

DAC bias IWORID2004 Glasgow

12

Layout (1) Eight layers board: • Top layer: components • Bottom layer: Medipix2 chip • Inner layer 1: routing • Plane layers VCC (5 V), GND • Plane layers VDD, VDDA, VDDA LVDS (2.2V) (Orcad® Layout)

Dimensions: 4.8 × 3.8 cm2 (H × W) IWORID2004 Glasgow

13

Layout (2) BOTTOM

TOP DS90LV019TM

DS90LV019TM

Medipix2 chip

Caps Caps

6 MHz quarz

Caps PIC16C765-I/PT

PIC16C765-I/PT

Caps LM385

USB conn VCC conn VDD filter

VDDA filter

VDDLVDS filter

IWORID2004 Glasgow

14

Prototype card

DS90LV019 LM385

Medipix2 Chipboard

PIC16C765

Prototype card layout

• Reproduce the demonstrator board on larger scale ( 15 × 20 cm2) • All components are mounted on a prototype board and connected by wire wrap technique • Medipix2 chipboard with 128 pin DIL connector • PIC16C765 with 44 DIL package (reprogrammable!)

IWORID2004 Glasgow

15

The simplest and cheapest Medipix2 interface We are testing another interface competitive to the USB one: the parallel port Three software-controlled registers: • Data register: 8 bits I/O • Control register: 4 output bits • Status register: 5 input bits

IWORID2004 Glasgow

16

Interfacing Medipix2 with parallel port Why parallel port? - Available in all PCs - Easy to use and to debug - Enough I/O lines to fit requirements of Mpx2 - No other electronics needed (just three LVDSCMOS converters)

But: - Slow (1 – 5 s acquisition time) - Deserialization and derandomization must be done by software IWORID2004 Glasgow

17

Using the parallel port registers - Data register Used to define the I/O operation modes

- Control register Used to send clock and serial data

Parallel port DR

Medipix2 control lines

D0

M0

D1

M1

D2

RESET

D3

SHUTTER

D4

EN. TPULSE

D5

POLARITY

D6

SPARE FSR

D7

ENABLE_INC

Parallel port DR

Medipix2 control lines

C1

FCLOCK*

C3

DATA_IN*

*Through CMOS – LVDS converter

- Status register Used to read serial data and status bit IWORID2004 Glasgow

Parallel port DR

Medipix2 control lines

S3

DATA_OUT*

S4

ENABLE_OUTC

*Through LVDS – CMOS converter

18

In spite of its simplicity it works! Shadow of a lead filter (X-ray 50 kV)

IWORID2004 Glasgow

Sr 90 beta source pointing on the upper right corner

19

Suggest Documents