CypressメーカーCY7C64013Cの使用説明書/サービス説明書
ページ先へ移動 of 51
Full-S peed USB (12-Mbp s) Function CY7C64013C CY7C641 13C Cypress Semiconductor Corpora tion • 198 Champion Cou rt • San Jose , CA 95134-1 709 • 408-943-2 600 Document #: 38-08001 Rev .
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 2 of 51 TABLE OF CONTENTS 1.0 FEATURES ..................................................... ........................................... .................. .....................6 2.0 FUNCTIONAL OVERVIEW .
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 3 of 51 TABLE OF CONTENTS 16.6 DAC Interrupt .......................................................................... .................................. .............. 31 16.7 GPIO/HAPI Interrupt .
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 4 of 51 LIST OF FIGURES Figure 6-1. Clock Oscillator On-Chip Circuit ............................................................... .................... ....... 17 Figure 7-1. Watchdog Reset (WDR) .
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 5 of 51 LIST OF TABLES Table 4-1. Pin Assignments ............................................. ....................................................... ........ ...... 10 Table 4-2. I/O Register Summary .
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 6 of 51 1.0 Features • Full-speed USB Mic rocontroller • 8-bit USB Optimize d Microcontroller — Harvard architecture — 6-MHz external .
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 7 of 51 2.0 Functional Overview The CY7C64013C and CY7C641 13 C are 8-bit One Time Programmab le microcontrollers that are d esigned for full-speed USB applications.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 8 of 51 Logic Block Diagram Interrupt Controller PROM 12-bit Timer Reset W atchdog Tim er Power-On SCLK I 2 C GPIO PORT 1 GPIO PORT 0 P0[7:0] .
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 9 of 51 3.0 Pin Configurations 1 2 3 4 5 6 7 9 11 12 13 14 15 16 18 17 XTALIN 10 8 19 20 31 30 29 33 32 35 34 37 36 39 38 41 40 43 42 45 44 46.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 10 of 51 4.0 Product Summary T ables 4.1 Pin Assign ments 4.2 I/O Register Summary I/O registers are accessed via the I/O Read (IORD) and I/O Write (IOWR, IOWX) instruct ions. IORD re ads data from the selected port into the accu mulator .
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 1 1 of 51 GPIO Configuration 0x08 R/W GPIO Port Configurations 20 HAPI and I 2 C Configuration 0x09 R/W HAPI Width and I 2 C Position Configur.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 12 of 51 4.3 Instructi on Set Summary Refer to th e CY ASM Assembler User ’s Guide for more det ails.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 13 of 51 5.0 Programming Model 5.1 14-Bit Program Counte r (PC) The 14-bit program counter (PC) a llows access to up to 8 KB of PROM availabl e with the CY7C64x13 C architecture. The top 32 bytes of the ROM in the 8 Kb part are reserved for testing purpose s.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 14 of 51 5.1.1 Program Memory Orga nization after reset Address 14-bit PC 0x0000 Program execution begins here after a reset 0x0002 USB Bus Reset interrupt vector 0x0004 128-µs timer interrupt vector 0x0006 1.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 15 of 51 5.2 8-Bit Accumulator (A) The accumulator is the general-purpose register for the microcontroller. 5.3 8-Bit T e mporary Regist er (X) The “X” register is available to the firmware for temporary st orage of intermediate results.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 16 of 51 5.5 8-Bit Data S tack Pointer (DSP) The data stack pointer (DSP) supports PUSH and POP i nstruct ions that use the data stack for temporary storage. A PUSH instruction pre-decrements the DSP , then writes data to the memo ry location addressed by the DSP .
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 17 of 51 6.0 Clocking The XT ALIN and XT ALOUT are the clock pins to the microcontroller . The user can connect an external oscillator or a crystal to these pins. When using an externa l crystal, keep PCB traces betw een the ch ip leads and crystal as short as possible (less than 2 cm).
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 18 of 51 The USB transmitter is disabled by a Watchdog Reset because th e USB De vice Address Register is clea red (see Section 18.1). Otherwise, the USB Controller would respond to all address 0 transactio ns.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 19 of 51 9.0 General-Purpose I/O (GPIO) Port s There are up to 32 GPIO pins (P0[7:0], P1 [7:0], P2[7:0], and P3[7:0]) for the hardw are interface. Th e number of GPIO pins changes based on the package type of the chip.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 20 of 51 Port 3 Dat a ADDRESS 0x03 S pecial care shoul d be taken with any unused GPIO data bits. An unused GPIO data bit, either a pin on the chip or a p ort bit th at is not bonded on a particular package, must not be left floating when the device enters the suspe nd state.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 21 of 51 Q1, Q2, and Q3 discussed below are the transistors referenced in Figu re 9-1 . The available GPIO drive strength are: • Output LOW .
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 22 of 51 The amount of sink current for the DAC I/O pin is progra mmable ov er 16 values based on the co ntents of the DAC Isink Register for that output pin. DAC[1:0] are high-current outp uts that are programmable from 3.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 23 of 51 Bit [4..0]: Isin k [x] (x= 0..4) Writing all ‘0’s to the Isink register caus es 1/5 of the max current to flow through the DAC I/O pin. Writing all ‘1’s to the Isink register provides the maximum current flow thro ugh the pin.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 24 of 51 Tim er M SB ADDRESS 0x25 Bit [3:0]: Timer higher nibble Bit [7:4]: Reserved 12.0 I 2 C and HAPI Configuration Regi ster Internal hard.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 25 of 51 13.0 I 2 C-comp atible Controller The I 2 C-compatible block provides a versatile two-wire communication with external devices, supporting master , slave, and multi- master modes of operation.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 26 of 51 Bit 7 : MSTR Mode Setting this bit to 1 causes the I 2 C-co mpatible block to initiate a master mode transaction b y sending a start bit and transmitting the first data byte from the data register (this ty pically holds the target address and R/W bit).
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 27 of 51 to the data register before setting the Continue bit. T o preven t fa lse ARB Lost signals, th e Restart bit is cleared by hardware during the restart sequence. Bit 1 : Receive Stop This bit is set when the slave is in receive mode and detects a stop bit on the bus.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 28 of 51 15.0 Processor S t atus and Control Register Processor St atus and Control ADDRESS 0xFF Bit 0: Run This bit is manipulated by the HAL T inst ruction. When Halt is executed , all the bi ts of the Processo r S tatus and Con trol Register are cleared to 0 .
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 29 of 51 16.0 Interrupt s Interrupts are generated by the GPIO/D AC pins, the internal timers, I 2 C-compatible interface or HAPI op eration, or on various USB traffic conditions.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 30 of 51 The interrupt controller con tains a separate flip-flop for each interrupt. See F igure 16-3 for the logic block diagram of the inte rrupt controller . When an interrupt is generated, it is first registered as a pend ing interru pt.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 31 of 51 16.2 Interrupt Latency Interrupt latency can be calculated from the following equation: Interrupt latency = (Number of clock cycles r.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 32 of 51 16.7 GPIO/HAPI Interrupt Each of the GPIO pins can generate an interrupt, if enabled.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 33 of 51 5. In ma ster receive mode, af ter the master receives a byte of data: Firmware should read the data and set the ACK and Continue/Busy bits appropriately for the next byte.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 34 of 51 USB St atus and Control ADDRESS 0x1F Bits [2..0] : Control Action Set to control action as per T able 17-1 .The three co ntrol bits allow the upstream port to be driven manu ally by firmware.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 35 of 51 Bits[6..0] :Device Address Firmware writes this bits during the USB enumeration process to the non-zero address assigned by the USB host. Bit 7 :Device Address Enable Must be set by firmware before the SIE can resp ond to USB traf fic to the Device Address.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 36 of 51 Bit 6: End point 0 IN Received 1= T oken received is an IN token. 0= T oken received is not an IN token. This bit is set by the SIE to report the type o f token received by the correspondin g device address is an IN token.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 37 of 51 Bits [5..0] : Byte Count These counter bits indicate the number of data bytes in a tra n saction. For IN transactions, firmware lo ads the count with the numbe r of bytes to be transmit ted to the h ost from th e end point FIFO.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 38 of 51 A C K 1. IN T oken H O S T D E V I C E S Y N C IN A D D R C R C 5 E N D P S Y N C D A T A 1/0 C R C 16 S Y N C Data Token Packet Data.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 39 of 51 19.0 USB Mode T ables Mode This lists the mnemonic given to the different modes that can be set in the Endpoint Mode Register by writing to the lo wer nibb le (bits 0..3). The bit settings for different modes are covered in the column ma rked “Mode Bits”.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 40 of 51 An “Accept” in any of the columns means that the device will respond with an ACK to a valid SETUP transaction tot he host. Comments Some Mode Bits are automatically chan ged by the SIE in respons e to certain USB transactions.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 41 of 51 the firmware recognizes the changes that the SIE might have made during the previo us transaction .
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 42 of 51 1 1 1 0 Out !=2 UC valid updates 1 updates UC UC 1 UC 0 0 1 1 St all yes 1 1 1 0 Out > 10 UC x UC UC UC UC UC UC UC NoChange ignor.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 43 of 51 20.0 Register Summary Address Register Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Read/Write/ Both/- Default/ Reset GPIO CONFIGURA TION PO RTS 0, 1, 2 AND 3 0x00 Port 0 Dat a P0.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 44 of 51 Note: B: Read and W rite W: Wri te R: Read 21.0 Sample Schematic RESERVE D 0x48 Reserved Reserved Reserved Reserved Reserved Re s erv.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 45 of 51 22.0 Absolute Maximum Ratings S torage T emperature ........... .............. ................ .......................... .............. .............. ............ ............. ....
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 46 of 51 DAC Interface R up DAC Pull-up Resistance (typical 14 k Ω) 8.0 24.0 k Ω I sink0(0) DAC [7:2] Sink current (0) V out = 2.0V DC 0.1 0.3 mA I sink0(F) DAC[7:2] Sink current (F) V out = 2.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 47 of 51 Figure 24-1. Clock Timing Figure 24-2. USB Data Signal T iming Figure 24-3. HAPI Read by External Interfac e from USB Microcontroller CLOCK t CYC t CL t CH 90% 10% 90% 10% D − D + t r t r OE (P2.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 48 of 51 25.0 Ordering Information Ordering Code PR OM Size Packag e T ype Operating Range CY7C64013C-SXC 8 KB 28-Pin (300-Mil) SOIC Commercia.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 49 of 51 26.0 Package Diagrams 48-Lead Shrunk Small Ou tline Package 51-85061-*C DIMENSIONS IN INCHES [MM] MIN. MAX. SEATING PLANE 0.260[6.60] 0.295[7.49] 0.090[2.28] 0.110[2.79] 0.055[1.39] 0.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 50 of 51 © Cypress Semi conductor Corporati on, 2006. The info rmation conta ined herein is su bject to change without notice. Cypress Semic onduct or Corporation assumes no responsibility for th e use of any circuitry o ther than circuitr y embodied in a Cypress product.
CY7C64013C CY7C641 13C Document #: 38-08001 Rev . *B Page 51 of 51 Document History Page Document Title: CY7C64013C, CY7C641 13C Full-Speed USB (12 Mbp s) Function Document Number: 38-08001 REV .
デバイスCypress CY7C64013Cの購入後に(又は購入する前であっても)重要なポイントは、説明書をよく読むことです。その単純な理由はいくつかあります:
Cypress CY7C64013Cをまだ購入していないなら、この製品の基本情報を理解する良い機会です。まずは上にある説明書の最初のページをご覧ください。そこにはCypress CY7C64013Cの技術情報の概要が記載されているはずです。デバイスがあなたのニーズを満たすかどうかは、ここで確認しましょう。Cypress CY7C64013Cの取扱説明書の次のページをよく読むことにより、製品の全機能やその取り扱いに関する情報を知ることができます。Cypress CY7C64013Cで得られた情報は、きっとあなたの購入の決断を手助けしてくれることでしょう。
Cypress CY7C64013Cを既にお持ちだが、まだ読んでいない場合は、上記の理由によりそれを行うべきです。そうすることにより機能を適切に使用しているか、又はCypress CY7C64013Cの不適切な取り扱いによりその寿命を短くする危険を犯していないかどうかを知ることができます。
ですが、ユーザガイドが果たす重要な役割の一つは、Cypress CY7C64013Cに関する問題の解決を支援することです。そこにはほとんどの場合、トラブルシューティング、すなわちCypress CY7C64013Cデバイスで最もよく起こりうる故障・不良とそれらの対処法についてのアドバイスを見つけることができるはずです。たとえ問題を解決できなかった場合でも、説明書にはカスタマー・サービスセンター又は最寄りのサービスセンターへの問い合わせ先等、次の対処法についての指示があるはずです。