USB Mass-Storage Implementation on an Embedded System (D0113) - PowerPoint PPT Presentation

1 / 20
About This Presentation
Title:

USB Mass-Storage Implementation on an Embedded System (D0113)

Description:

USB Mass-Storage Implementation on an Embedded System (D0113) Final Presentation 20/4/2004 Supervisor: Dimitry Sokolik Performed by: Yoav Gershoni – PowerPoint PPT presentation

Number of Views:240
Avg rating:3.0/5.0
Slides: 21
Provided by: 72555
Category:

less

Transcript and Presenter's Notes

Title: USB Mass-Storage Implementation on an Embedded System (D0113)


1
USB Mass-Storage Implementationon an Embedded
System(D0113)
Final Presentation 20/4/2004
  • Supervisor
  • Dimitry Sokolik
  • Performed by
  • Yoav Gershoni
  • Shachar Faigenblat

HSDS LAB Technion - Winter 2003
2
Project overview
  • The project provides generic means to read files
    from a FAT32 formatted USB-Flash-Disk.
  • Stage A
  • PC implementation all the logic and the
    protocol layers will be implemented on the PC.
  • Stage B
  • Full on board implementation (hardware
    application).

3
Block Diagram
Stage A
PIC Evaluation Board
Flat Cable 23 bits
Parallel Connection
USB BUS
USB Host Controller
Pic Microprocessor
RS 232
4
Block Diagram
Stage B
PIC Evaluation Board
Flat Cable 23 bits
Parallel Connection
USB BUS
USB Host Controller
Pic Microprocessor
The application will be implemented on the PIC
itself
5
Project Specification
  • Components
  • PIC 18F452 evaluation board.
  • Philips ISP1362 USB Host Controller.
  • Power supply
  • 9v from external PS converted to 5v and 3.3v.
  • 5v for the evaluation board, PIC and USB bus.
  • 3.3v for the host controller.
  • Interfaces
  • USB bus between Flash Disk and Host Controller.
  • parallel bus between PIC ports and Host
    Controller.
  • RS-232 bus between the PC and the PIC board.

6
Project Specification Cont
  • Connectors
  • Type A USB connector.
  • D-Type-9 connector. (for RS-232 already exists
    on the evaluation board and on PC).

7
Project background
  • Stand alone device.
  • Stage A Application on the PC.
  • Microprocessor instead of FPGA to control the USB
    HC.
  • Future implementations - MP3 decoder.

8
Software Architecture
Logical File System Layer FAT16/FAT32
Command Set Protocol Using SCSI Primary Command
Set
USB Mass-Storage Class Using Bulk-Only Transport
protocol
Host Controller Driver
PC PIC Communication
9
Software Development Tools
  • PIC
  • MCC18 compiler on MPLAB IDE.
  • PC
  • Code in C, with Visual Studio compiler.
  • USB protocol
  • USB Inspector.

10
Project Status
  • PC-PIC Communication.
  • HC Board.
  • USB Protocol Analysis.

11
PIC-HC Connection
  • HC has 16 I/O bits.
  • Command or Data Control bit (A0).
  • Method
  • Send Command. (A01)
  • Send/Receive Data. (A00)

12
Writing 16/32 bits to HC
13
PC-PIC Protocol
  • Over RS232.115200bps, 8 bits, no parity, 1 stop
    bit.
  • Transactions has Command and Data.

14
Software Design
  • PC-PIC Connection Protocol Design.
  • Learn RS232 Communication on PC.
  • RS232 on PIC using Lee Ehud LIB.
  • Implementation of PC-PIC Protocol on PC and PIC.

15
HC Board Design
  • Connection To PIC (ports assignment)
  • Buffers to Convert Logical Levels 5v lt-gt 3.3v
  • Power Supply 5v, 3.3v
  • USB Connector with Over Current Sense.
  • Good Link Led.
  • Manual Reset.
  • Clock.

16
USB Protocol Analysis
  • SCSI Commands Understanding.
  • SCSI Commands Specifications Drafts not Final.

17
The End
18
PC-PIC Protocol
19
(No Transcript)
20
Ports Table
Write a Comment
User Comments (0)
About PowerShow.com