2011年6月29日 星期三

Reference

  1. Cypess EZ-USB FX2 TechRefManual. http://www.cypress.com
  2. USB 2許永和 編著,USB2.0 高速周邊裝置設計之實務應用,全華科技圖書公司

Chapter-24: GPIF with EP4 and EP6

1. Create EP4OUT GPIF bulk write and single byte write.
2. Create EP6IN GPIF bulk read and single byte read.

2011年6月11日 星期六

Chapter-23: High Speed A/.D Convertor Design and Application

Chapter-22: Implement Slave FIFO with CPLD

Chapter-21: Slave FIFO design and Application

Chapter-20: HID PC Application Design

Chapter-19: HID I/O firmware design

Chapter-18: HID group

Chapter-17: PC Application

Chapter-16: General Driver

Chapter-15: Bulk Transfer

Chapter-14: Firmware architecture

Chapter-13: Device Renumeration

Chapter-12: Control transfer and Endpoint 0

Chapter-11: Reset and Power management

Chapter-10: Interrupt

Chapter-09: Access Endpoint buffer

Chapter-08: I/O Example - LCD display

Chapter-07: I/O Example-LED output

Chapter-06: Hardware Develpoment tool

Chapter-05: Software Development tool

Chapter-04: Input/Output and Memory

Chapter-03: EZ-USB FX2 CPU

Chapter-02: EZ-USB FX2 characteristics

2011年6月10日 星期五

Chapter-01: USB architecture and characteristics

1-1 What is USB?
USB: 1995, Compaq, Digital Equipment Corp, IBM, Intel, Microsoft, NEC, and Northern Telecom
USB 1.0: 1996
USB 1.1: 1998, Compaq, Intel, Microsaoft, and NEC
USB 2.0: Year 1999, + Hewlett Packard, Philips, Lucent
USB advantages:
  • Unified interface
  • Plug-and Play
  • Hot Attach & Detach
  • USB 2.0 up to 480Mbps
  • Supporting maximum 127 devices
  • Device power maximum 5V/500mA, typical 5V/100mA
1-5 USB transfer type
  • Control transfer: Control read, control write, and no data control
  • Interrupt transfer
  • Bulk transfer: Resend , if transfer error. (USB 2.0 max. 56MB/s)
  • Isochronous transfer
USB 1.0 and USB 1.1 : 1ms frame
USB2.0 : Divide 1ms frame to 8 microframe. (1 microframe = 125us)

1-6 USB conecttor and cable
http://en.wikipedia.org/wiki/Universal_Serial_Bus

  • PC Host: There are two 15K ohm resisters to pull down D+ and D- lines.
  • Full Speed device: D+ pull up a 1.5K ohm
  • Low Speed device: D- pull up a 1.5K ohm
  • The data cables for USB 1.x and USB 2.x use a twisted pair to reduce noise and crosstalk.
  • Differential 1: (D+) - (D-) > 200mV, Differential 0: (D+) - (D-) < 200mV
  • J state: Full speed device: Differential 1, Low speed device: Differential 0
  • K state: Full speed device: Differential 0, Low speed device: Differential 1
  • IDLE: Full Speed device: D+ > VIHZ(min), D- < VIH(min)
  • IDLE: Low Speed device: D- > VIHZ(min), D+ < VIH(min)
  • SOP: IDLE (J)- > K