Part Number Hot Search : 
8051F040 MTZ12 DG901 8HC90 KRC839U 1N5380 TPQ5551 IRF640R
Product Description
Full Text Search
 

To Download CY7C63101A-QXC Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  universal serial bus microcontroll er cy7c63001 a cy7c63101 a cypress semiconductor corporation ? 3901 north first street  san jose , ca 95134  408-943-2600 document #: 38-08026 rev. *a revised october 5, 2004 1.0 features ? low-cost solution for low-speed usb peripherals such as mouse, joystick, and gamepad  usb specification compliance ? conforms to usb 1.5-mbps specification, version 1.1 ? supports one device address and two endpoints (one control endpoint and one data endpoint)  8-bit risc microcontroller ? harvard architecture ? 6-mhz external ceramic resonator ? 12-mhz internal operation ? usb optimized instruction set  internal memory ? 128 bytes of ram ? 4 kbytes of eprom ? integrated usb transceiver ? up to 16 schmitt trigger i/o pins with internal pull-up ? up to eight i/o pins with led drive capability ? special purpose i/o mode supports optimization of photo transistor and led in mouse application ? maskable interrupts on all i/o pins  8-bit free-running timer  watchdog timer (wdt)  internal power-on reset (por)  instant-on now? for suspend and periodic wake-up modes  improved output drivers to reduce emi  operating voltage from 4.0v to 5.25 vdc  operating temperature from 0?70c  available in space saving and low-cost 20-pin pdip, 20-pin soic, and 24-pin qsop packages  industry-standard programmer support 8-bit timer logic block diagram usb d+,d? port p0.0?p0.7 interrupt controller 0 port p1.0?p1.7 1 8-bit risc osc ram 128-byte eprom 2/4 kbyte core power- on reset engine watch timer dog 6-mhz ceramic resonator instant-on now? r/c ext v cc /v ss
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 2 of 25 2.0 pin configurations 3.0 functional overview the cy7c630/101a is a family of 8-bit risc one time programmable (otp) microcontrollers with a built-in 1.5-mbps usb serial interface engine (sie). the microcontroller features 35 instructions that are optimized for usb applica- tions. in addition, the microcontroller features 128 bytes of internal ram and four kbytes of program memory space. the cypress usb controller accepts a 6-mhz ceramic resonator as its clock source. this clock signal is doubled within the chip to provide a 12- mhz clock for the microprocessor. the microcontroller features two ports of up to sixteen general purpose i/os (gpios). each gpio pin can be used to generate an interrupt to the microcontroller. additionally, all pins in port 1 are equipped with programmable drivers strong enough to drive leds. the gpio ports feature low emi emissions as a result of controlled rise and fall times and unique output driver circuits. the cypress microcontrollers have a range of gpios to fit various applications; the cy7c6300xa has twelve gpios and the cy7c6310xa has sixteen gpios. notice that each part has eight ?low-current? ports (port 0) with the remaining ports (port 1) being ?high- current? ports. the 12-gpio cy7c6300xa is available in 20-pin pdip (-pc) and 20-pin soic (-sc) packages. the 26-gpio cy7c6310xa is available in 24-pin qsop (-qc) package. 1 2 3 4 5 6 7 9 13 14 15 16 17 18 20 19 p0.0 p0.1 p0.2 p0.3 p1.0 p1.2 v ss cext p0.4 p1.1 p0.6 p0.7 d+ p1.3 d? v cc dip/soic 12 p0.5 8 v pp xtalin xtalout 10 11 1 2 3 4 5 6 9 11 15 16 17 18 19 20 22 21 p0.0 p0.1 p0.2 p0.3 p1.0 p1.2 v ss cext p0.6 p1.5 p1.1 p1.3 d+ p1.7 d? v cc 24-pin 14 p0.7 10 v pp xtalin xtalout 12 13 7 8 p1.4 p1.6 24 23 p0.4 p0.5 soic/qsop 20-pin cy7c63101a 8 5 6 7 die 4 3 2 1 24 23 22 21 17 20 19 18 13 14 15 16 9101112 (top view) 4.0 pin definitions name i/o 20-pin 24-pin die pad # description p0.0 i/o 1 1 1 port 0 bit 0 p0.1 i/o 2 2 2 port 0 bit 1 p0.2 i/o 3 3 3 port 0 bit 2 p0.3 i/o 4 4 4 port 0 bit 3 p0.4 i/o 20 24 24 port 0 bit 4 p0.5 i/o 19 23 23 port 0 bit 5 p0.6 i/o 18 22 22 port 0 bit 6 p0.7 i/o 17 21 21 port 0 bit 7 p1.0 i/o 5 5 5 port 1 bit 0 p1.1 i/o 16 20 20 port 1 bit 1 p1.2 i/o 6 6 6 port 1 bit 2 p1.3 i/o 15 19 19 port 1 bit 3 p1.4 i/o ? 7 7 port 1 bit 4 p1.5 i/o ? 18 18 port 1 bit 5 p1.6 i/o ? 8 8 port 1 bit 6 p1.7 i/o ? 17 17 port 1 bit 7 xtalin i 10 12 12 ceramic resonator in xtalout o 11 13 13 ceramic resonator out
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 3 of 25 6.0 functional description the cypress cy7c630/101a usb microcontrollers are optimized for human-interface computer peripherals such as a mouse, joystick, and gamepad. these usb microcontrollers conform to the low-speed (1.5 mbps) requirements of the usb specification version 1.1. each microcontroller is a self- contained unit with: a usb interface engine, usb transceivers, an 8-bit risc microcontroller, a clock oscillator, timers, and program memory. each microcontroller supports one usb device address and two endpoints. the 6-mhz clock is doubled to 12 mhz to drive the microcon- troller. a risc architecture with 35 instructions provides the best balance between performance and product cost. 6.1 memory organization the memory in the usb controller is organized into user program memory in eprom space and data memory in sram space. 6.1.1 program memory organization the cy7c63001a and cy7c63101a each offer 4 kbytes of eprom. the program memory space is divided into two functional groups: interrupt vectors and program code. the interrupt vectors occupy the first 16 bytes of the program space. each vector is 2 bytes long. after a reset, the program counter points to location zero of the program space. figure 6-1 shows the organization of the program memory space. 6.1.2 security fuse bit the cypress usb microcontroller includes a security fuse bit. when the security fuse is programmed, the eprom program memory outputs 0xff to the eprom programmer, thus protecting the user?s code. cext i/o 9 11 11 connects to external r/c timing circuit for optional ?suspend? wakeup d+ i/o 14 16 16 usb data+ d? i/o 13 15 15 usb data? v pp ? 8 10 10 programming voltage supply, tie to ground during normal operation v cc ? 12 14 14 voltage supply v ss ? 7 9 9 ground 4.0 pin definitions (continued) name i/o 20-pin 24-pin die pad # description 5.0 pin description name description v cc one pin. connects to the usb power source or to a nominal 5v power supply. actual v cc range can vary between 4.0v and 5.25v. v ss one pin. connects to ground. v pp one pin. used in programming the on-chip eprom. this pin should be tied to ground during normal opera- tions. xtalin one pin. input from an external ceramic resonator. xtalout one pin. return path for the ceramic resonator (leave unconnected if driving xtalin from an external oscillator). p0.0?p0.7, p1.0?p1.7 sixteen pins. p0.0?p0.7 are the 8 i/o lines in port 0. p1.0?p1.7 are the 8 i/o lines in port 1. p1.0?p1.3 are supported in the cy7c6300xa. all i/o pins include bit-programmable pull-up resistors. however, the sink current of each pin can be programmed to one of sixteen levels. besides functioning as gpio lines, each pin can be programmed as an interrupt input. the interrupt is edge-triggered, with programmable polarity. d+, d? two pins. bidirectional usb data lines. an external pull-up resistor must be connected between the d pin and v cc to select low-speed usb operation. cext one pin. open-drain output with schmitt trigger input. the input is connected to a rising edge-triggered interrupt. cext may be connected to an external rc to generate a wake-up from suspend mode. see section 6.4.
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 4 of 25 6.1.3 data memory organization the usb controller includes 128 bytes of data ram. the upper 16 bytes of the data memory are used as usb fifos for endpoint 0 and endpoint 1. each endpoint is associated with an 8-byte fifo. the usb controller includes two pointers into data ram, the program stack pointer (psp) and the data stack pointer (dsp). the value of psp after reset is 0x00. the psp incre- ments by two whenever a call instruction is executed and it decrements by two whenever a ret instruction is used. the dsp pre-decrements by one whenever a push instruction is executed and it increments by one after a pop instruction is used. the default value of the dsp after reset is 0x00, which would cause the first push to write into usb fifo space for endpoint 1. therefore, the dsp should be mapped to a location such as 0x70 before initiating any data stack operations. refer to the reset section for more infor- mation about dsp remapping after reset. figure 6-2 illustrates the data memory space. after reset address pc 0x0000 reset vector 0x0002 interrupt vector ? 128 s 0x0004 interrupt vector ? 1.024 ms 0x0006 interrupt vector ? usb endpoint 0 0x0008 interrupt vector ? usb endpoint 1 0x000a reserved 0x000c interrupt vector ? gpio 0x000e interrupt vector ? cext 0x0010 on-chip program memory 0x07ff 2k rom (cy7c63000a, cy7c63100a) 0x0fff 4k rom (cy7c63001a, cy7c63101a) figure 6-1. program memory space
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 5 of 25 6.2 i/o register summary i/o registers are accessed via the i/o read (iord) and i/o write (iowr, iowx) instructions. after reset address dsp psp 0x00 user firmware 0x02 0x04 dsp 0x70 usb fifo ? endpoint 0 0x77 0x78 usb fifo ? endpoint 1 0x7f figure 6-2. data memory space table 6-1. i/o register summary register name i/o address read/write function page p0 data 0x00 r/w general purpose i/o port (low current) figure 6-8 p1 data 0x01 r/w general purpose i/o port (high current) figure 6-9 p0 ie 0x04 w interrupt enable for port 0 pins figure 6-17 p1 ie 0x05 w interrupt enable for port 1 pins figure 6-18 p0 pull-up 0x08 w pull-up resistor control for port 0 pins figure 6-11 p1 pull-up 0x09 w pull-up resistor control for port 1 pins figure 6-12 ep0 tx config. 0x10 r/w usb endpoint 0 transmit configuration figure 6-22 ep1 tx config. 0x11 r/w usb endpoint 1 transmit configuration figure 6-23 usb da 0x12 r/w usb device address figure 6-20 usb scr 0x13 r/w usb status and control figure 6-24 ep0 rx status 0x14 r/w usb endpoint 0 receive status figure 6-21 gie 0x20 r/w global interrupt enable figure 6-15 wdt 0x21 w watchdog timer clear figure 6-4 cext 0x22 r/w external r-c timing circuit control figure 6-5 timer 0x23 r free-running timer figure 6-6 p0 isink 0x30-0x37 w input sink current control for port 0 pins. there is one isink register for each pin. address of the isink register for pin 0 is located at 0x30 and the register address for pin 7 is located at 0x37. figure 6-13
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 6 of 25 6.3 reset the usb controller supports three types of resets. all registers are restored to theirwatchdog default states during a reset. the usb device address is set to 0 and all interrupts are disabled. in addition, the program stack pointer (psp) is set to 0x00 and the data stack pointer (dsp) is set to 0x00. the user should set the dsp to a location such as 0x70 to reserve 16 bytes of usb fifo space. the assembly instruc- tions to do so are: mov a, 70h ; move 70 hex into accumulator, use 70 instead of 6f because the dsp is ; always decremented by 1 before the data transfer of the push instruction occurs swap a, dsp ; move accumulator value into dsp the three reset types are: 1. power-on reset (por) 2. watchdog reset (wdr) 3. usb reset the occurrence of a reset is recorded in the status and control register located at i/o address 0xff ( figure 6-3 ). reading and writing this register are supported by the iord and iowr instructions. bits 1, 2, and 7 are reserved and must be written as zeros during a write. during a read, reserved bit positions should be ignored. bits 4, 5, and 6 are used to record the occurrence of por, usb, and wdr reset respectively. the firmware can interrogate these bits to determine the cause of a reset. if a watchdog reset occurs, firmware must clear the wdr bit (bit 6) in the status and control register to re-enable the usb transmitter (please refer to the watchdog reset section for further details). bit 0, the ?run? control, is set to 1 at por. clearing this bit stops the microcontroller (firmware normally should not clear this bit). once this bit is set to low, only a reset can set this bit high. the microcontroller resumes execution from rom address 0x00 after a reset unless the suspend bit (bit 3) of the status and control register is set. setting the suspend bit stops the clock oscillator and the interrupt timers and powers down the microcontroller. the detection of any usb activity, the occur- rence of a gpio interrupt, or the occurrence of the cext interrupt terminates the suspend condition. 6.3.1 power-on reset power-on reset (por) occurs every time the power to the device is switched on. bit 4 of the status and control register is set to record this event (the register contents are set to 00011001 by the por). the usb controller is placed in suspended mode at the end of por to conserve power (the clock oscillator, the timers, and the interrupt logic are turned off in suspend mode). after por, only a non-idle usb bus state terminates the suspend mode. the microcontroller then begins execution from rom address 0x00. p1 isink 0x38-0x3f w input sink current control for port 1 pins. there is one isink register for each pin. address of the isink register for pin 0 is located at 0x38 and the register address for pin 7 is located at 0x3f. the number of port 1 pins depends on package type. figure 6-13 scr 0xff r/w processor status and control register figure 6-3 table 6-1. i/o register summary (continued) register name i/o address read/write function page b7 b6 b5 b4 b3 b2 b1 b0 reserved wdr usbr por suspend reserved reserved run r/w r/w r/w r/w r/w 00010001 figure 6-3. status and contro l register (scr ? address 0xff)
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 7 of 25 6.3.2 watchdog reset (wdr) the watchdog timer reset (wdr) occurs when the most significant bit of the 4-bit watchdog timer register transitions from low to high. writing any value to the write-only watchdog restart register at 0x21 clears the timer (firmware should periodically write to the watchdog restart register in the ?main loop? of firmware). the watchdog timer is clocked by a 1.024-ms clock from the free-running timer. if 8 clocks occur between writes to the timer, a wdr occurs and bit 6 of the status and control register is set to record the event. a watchdog timer reset lasts for 8.192 ms, at which time the microcontroller begins execution at rom address 0x00. the usb transmitter is disabled by a watchdog reset because the usb device address register is cleared (otherwise, the usb controller would respond to all address 0 transactions). the transmitter remains disabled until the wdr bit (bit 6) in the status and control register is reset to 0 by firmware. 6.3.3 usb bus reset the usb controller recognizes a usb reset when a single ended zero (se0) condition persists for at least 8?16 s (the reset may be recognized for an se0 as short as 8 s, but it is always recognized for an se0 longer than 16 s). se0 is the condition in which both the d+ line and the d? line are low. bit 5 of the status and control register is set to record this event. if the usb reset happens while the device is suspended, the suspend condition is cleared and the clock oscillator is restarted. however, the microcontroller is not released until the usb reset is removed. 6.4 instant-on feature (suspend mode) the usb controller can be placed in a low-power state by setting the suspend bit (bit 3) of the status and control register. all logic blocks in the device are turned off except the usb receiver, the gpio interrupt logic, and the cext interrupt logic. the clock oscillator and the free-running and watchdog timers are shut down. the suspend mode is terminated when one of the following three conditions occur: 1. usb activity 2. a gpio interrupt 3. cext interrupt the clock oscillator, gpio, and timers restart immediately upon exiting suspend mode. the usb engine and microcon- troller return to a fully functional state no more than 256 s later. before servicing any interrupt requests, the microcon- troller executes the instruction following the i/o write that placed the device into suspend mode. both the gpio interrupt and the cext interrupt allow the usb controller to wake-up periodically and poll potentiometers, optics, and other system components while maintaining a very low average power consumption. the cext interrupt is preferred for lowest power consumption. for cext to generate an ?instant-on? interrupt, the pin must be connected to ground with an external capacitor and connected to v cc with an external resistor. a ?0? is written to the cext register located at i/o address 0x22 to discharge the capacitor. then, a ?1? is written to disable the open-drain output driver. a schmitt trigger input circuit monitors the input and generates a wake-up interrupt when the input voltage rises above the input threshold. by changing the values of the external resistor and capacitor, the user can fine tune the charge rate of the r- c timing circuit. the format of the cext register is shown in figure 6-5 . reading the register returns the value of the cext pin. during a reset, the cext pin is high. last write to watchdog timer register no write to wdt register, so wdr goes high execution begins at reset vector 0x00 7.168 to 8.192 ms 8.192 ms figure 6-4. watchdog reset b7 b6 b5 b4 b3 b2 b1 b0 reserved reserved reserved reserv ed reserved reserved reserved cext r/w 00000001 figure 6-5. the cext register (address 0x22)
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 8 of 25 6.5 on-chip timer the usb controller is equipped with a free-running timer driven by a clock one-sixth the resonator frequency. bits 0 through 7 of the counter are readable from the read-only timer register located at i/o address 0x23. the timer register is cleared during a power-on reset and whenever suspend mode is entered. figure 6-6 illustrates the format of this register and figure 6-7 is its block diagram. with a 6 mhz resonator, the timer resolution is 1 s. the timer generates two interrupts: the 128- s interrupt and the 1.024-ms interrupt. 6.6 general purpose i/o ports interface with peripherals is conducted via as many as 16 gpio signals. these signals are divided into two ports: port 0 and port 1. port 0 contains eight lines (p0.0?p0.7) and port 1 contains up to eight lines (p1.0?p1.7). the number of external i/o pins depends on the package type. both ports can be accessed by the iord, iowr, and iowx instructions. the port 0 data register is located at i/o address 0x00 while the port 1 data register is located at i/o address 0x01. the contents of both registers are set high during a reset. refer to figures 6-8 and 6-9 for the formats of the data registers. in addition to supporting general input/output functions, each i/o line can trigger an interrupt to the microcontroller. please refer to the interrupt section for more details. figure 6-6. timer register (address 0x23) b7 b6 b5 b4 b3 b2 b1 b0 t. 7 t. 6 t. 5 t. 4 t. 3 t. 2 t. 1 t. 0 rrrrrrrr 00000000 figure 6-7. timer block diagram 9 7 8 5 6 4 3 2 1 0 resonator clock/6 1.024-ms interrupt 128- m s interrupt to timer register 8 b7 b6 b5 b4 b3 b2 b1 b0 p0.7 p0.6 p0.5 p0.4 p0.3 p0.2 p0.1 p0.0 r/w r/w r/w r/w r/w r/w r/w r/w 1 1 1 1 1 1 1 1 figure 6-8. port 0 data register (address 0x00) b7 b6 b5 b4 b3 b2 b1 b0 p1.7 p1.6 p1.5 p1.4 p1.3 p1.2 p1.1 p1.0 r/w r/w r/w r/w r/w r/w r/w r/w 1 1 1 1 1 1 1 1 figure 6-9. port 1 data register (address 0x01)
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 9 of 25 each gpio line includes an internal r up resistor. this resistor provides both the pull-up function and slew control. two factors govern the enabling and disabling of each resistor: the state of its associated port pull-up register bit and the state of the data register bit. note: the control bits in the port pull- up register are active low. a gpio line is high when a ?1? is written to the data register and a ?0? is written to the respective port pull-up register. writing a ?0? to the port data register disables the port?s pull- up resistor and outputs a low on the gpio line regardless of the setting in the port pull-up register. the output goes to a high-z state if the data register bit and the port pull-up register bit are both ?1?. figure 6-10 illustrates the block diagram of one i/o line. the port isink register is used to control the output current level and it is described later in this section. note: the isink logic block is turned off during suspend mode (please refer to the instant-on feature section for more details). therefore, to prevent higher i cc currents during usb suspend mode, firmware must set all port 0 and port 1 data register bits (which are not externally driven to a known state), including those that are not bonded out on a particular package , to ?1? and all port 0 and port 1 pull-up register data bits to ?0? to enable port pull-ups before setting the suspend bit (bit 3 of the status and control register). table 6-2 is the output control truth table. to configure a gpio pin as an input, a ?1? should be written to the port data register bit associated with that pin to disable the pull-down function of the isink dac (see figure 6- 10 ).when the port data register is read, the bit value is a ?1? if the voltage on the pin is greater than the schmitt trigger threshold, or ?0? if it is below the threshold. in applications where an internal pull-up is required, the r up pull-up resistor can be engaged by writing a ?0? to the appropriate bit in the port pull-up register. both port 0 and port 1 pull-up registers are write only (see figures 6-11 and 6-12 ). the port 0 pull-up register is located at i/o address 0x08 and port 1 pull-up register is mapped to address 0x09. the contents of the port pull-up registers are cleared during reset, allowing the outputs to be controlled by the state of the data registers. the port pull-up registers also select the polarity of transition that generates a gpio interrupt. a ?0? selects a high to low transition while a ?1? selects a low to high transition. figure 6-10. block diagram of an i/o line table 6-2. output control truth table data register port pull-up register output at i/o pin interrupt polarity 0 0 sink current (?0?) high to low 0 1 sink current (?0?) low to high 1 0 pull-up resistor (?1?) high to low 1 1 hi-z low to high gpio pin v cc isink dac port isink register port data register port pull-up register r up data bus schmitt trigger suspend bit disable b7 b6 b5 b4 b3 b2 b1 b0 pull0.7 pull0.6 pull0.5 pull0.4 pull0.3 pull0.2 pull0.1 pull0.0 wwwwwwww 00000000 figure 6-11. port 0 pull-up register (address 0x08)
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 10 of 25 writing a ?0? to the data register drives the output low. instead of providing a fixed output drive, the usb controller allows the user to select an output sink current level for each i/o pin. the sink current of each output is controlled by a dedicated port isink register. the lower four bits of this register contain a code selecting one of sixteen sink current levels. the upper four bits of the register are ignored. the format of the port isink register is shown in figure 6-13 . port 0 is a low-current port suitable for connecting photo transistors. port 1 is a high current port capable of driving leds. see section 8.0 for current ranges. 0000 is the lowest drive strength. 1111 is the highest. the write-only sink current control registers for port 0 outputs are assigned from i/o address 0x30 to 0x37 with the control bits for p00 starting at 0x30. port 1 sink current control registers are assigned from i/o address 0x38 to 0x3f with the control bits for p10 starting at 0x38. all sink current control registers are cleared during a reset, resulting in the minimum current sink setting. 6.7 xtalin/xtalout the xtalin and xtalout pins support connection of a 6- mhz ceramic resonator. the feedback capacitors and bias resistor are internal to the ic, as shown in figure 6-14 leave xtalout unconnected when driving xtalin from an external oscillator. 6.8 interrupts interrupts are generated by the general purpose i/o lines, the cext pin, the internal timer, and the usb engine. all interrupts are maskable by the global interrupt enable register. access to this register is accomplished via iord, iowr, and iowx instructions to address 0x20. writing a ?1? to a bit position enables the interrupt associated with that position. during a reset, the contents of the interrupt enable register are cleared, disabling all interrupts. figure 6-15 illustrates the format of the global interrupt enable register. the interrupt controller contains a separate latch for each interrupt. see figure 6-16 for the logic block diagram for the interrupt controller. when an interrupt is generated, it is latched as a pending interrupt. it stays as a pending interrupt until it is serviced or a reset occurs. a pending interrupt only generates an interrupt request if it is enabled in the global interrupt enable register. the highest priority interrupt request is serviced following the execution of the current instruction. b7 b6 b5 b4 b3 b2 b1 b0 pull1.7 pull1.6 pull1.5 pull1.4 pull1.3 pull1.2 pull1.1 pull1.0 wwwwwwww 0x0000000 figure 6-12. port 1 pull-up register (address 0x09) b7 b6 b5 b4 b3 b2 b1 b0 reserved reserved reserved unused isink3 isink2 isink1 isink0 wwwwwwww xxxxxxxx figure 6-13. port isink register for one gpio line xtalout xtalin clk2x 30 pf 30 pf clock doubler clk1x (to microcontroller) (to usb sie) figure 6-14. clock oscillator on-chip circuit b7 b6 b5 b4 b3 b2 b1 b0 cextie gpioie reserved ep1ie ep0ie 1024ie 128ie reserved r/w r/w r/w r/w r/w r/w 00000000 figure 6-15. global interrupt enable register (gier ? address 0x20)
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 11 of 25 when servicing an interrupt, the hardware first disables all interrupts by clearing the global interrupt enable register. next, the interrupt latch of the current interrupt is cleared. this is followed by a call instruction to the rom address associated with the interrupt being serviced (i.e., the interrupt vector). the instruction in the interrupt table is typically a jmp instruction to the address of the interrupt service routine (isr). the user can re-enable interrupts in the interrupt service routine by writing to the appropriate bits in the global interrupt enable register. interrupts can be nested to a level limited only by the available stack space. the program counter (pc) value and the carry and zero flags (cf, zf) are automatically stored onto the program stack by the call instruction as part of the interrupt acknowledge process. the user firmware is responsible for ensuring that the processor state is preserved and restored during an interrupt. for example the push a instruction should be used as the first command in the isr to save the accumulator value. and, the ipret instruction should be used to exit the isr with the accumulator value restored and interrupts enabled. the pc, cf, and zf are restored when the ipret or ret instructions are executed. the interrupt vectors supported by the usb controller are listed in table 6-3 . interrupt vector 0 (reset) has the highest priority, interrupt vector 7 has the lowest priority. because the jmp instruction is two bytes long, the interrupt vectors occupy two bytes. 6.8.1 interrupt latency interrupt latency can be calculated from the following equation: interrupt latency = (number of clock cycles remaining in the current instruction) + (10 clock cycles for the call instruction) + (5 clock cycles for the jmp instruction) for example, if a 5-clock-cycle instruction such as jc is being executed when an interrupt occurs, the first instruction of the interrupt service routine executes a minimum of 16 clock cycles (1+10+5) or a maximum of 20 clock cycles (5+10+5) after the interrupt is issued. therefore, the interrupt latency in this example will be = 20 clock periods = 20 / (12 mhz) = 1.667 s. the interrupt latches are sampled at the rising edge of the last clock cycle in the current instruction. clr global interrupt interrupt acknowledge irq 128- m s clr interrupt interrupt priority encoder enable [7:0] enable [1] dq logic 1 128- m s interrupt enable register clr clr enable [6] dq gpio interrupt 128- m s irq 1-ms clr 1-ms irq end p0 clr end p0 irq end p1 irq end p1 clr gpio clr gpio irq wake-up irq vector enable [7] cext clk clk logic 1 clr dq clk logic 1 wake-up clr figure 6-16. interrupt controller logic block diagram table 6-3. interrupt vector assignments interrupt priority rom address function 0 (highest) 0x00 reset 1 0x02 128- s timer interrupt 2 0x04 1.024-ms timer interrupt 3 0x06 usb endpoint 0 interrupt 4 0x08 usb endpoint 1 interrupt 5 0x0a reserved 6 0x0c gpio interrupt 7 (lowest) 0x0e wake-up interrupt
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 12 of 25 6.8.2 gpio interrupt the general purpose i/o interrupts are generated by signal transitions at the port 0 and port 1 i/o pins. gpio interrupts are edge sensitive with programmable interrupt polarities. setting a bit high in the port pull-up register (see figure 6- 11 and 6-12 ) selects a low to high interrupt trigger for the corresponding port pin. setting a bit low activates a high to low interrupt trigger. each gpio interrupt is maskable on a per-pin basis by a dedicated bit in the port interrupt enable register. writing a ?1? enables the interrupt. figure 6-17 and figure 6-18 illustrate the format of the port interrupt enable registers for port 0 and port 1 located at i/o address 0x04 and 0x05 respectively. these write only registers are cleared during reset, thus disabling all gpio interrupts. a block diagram of the gpio interrupt logic is shown in figure 6-19 . the bit setting in the port pull-up register selects the interrupt polarity. if the selected signal polarity is detected on the i/o pin, a high signal is generated. if the port interrupt enable bit for this pin is high and no other port pins are requesting interrupts, the or gate issues a low to high signal to clock the gpio interrupt flip-flop. the output of the flip-flop is further qualified by the global gpio interrupt enable bit before it is processed by the interrupt priority encoder. both the gpio interrupt flip-flop and the global gpio enable bit are cleared by on-chip hardware during gpio interrupt acknowledge. note . if one port pin triggers an interrupt, no other port pin can cause a gpio interrupt until the port pin that triggered the interrupt has returned to its inactive (non-trigger) state or until its corresponding port interrupt enable bit is cleared (these events ?reset? the clock of the gpio interrupt flip-flop, which must be ?reset? to ?0? before another gpio interrupt event can ?clock? the gpio interrupt flip-flop and produce an irq). note . if the port pin that triggered an interrupt is held in its active (trigger) state while its corresponding port interrupt enable bit is cleared and then set, a gpio interrupt event occurs as the gpio interrupt flip-flop clock transitions from ?1? to ?0? and then back to ?1? (please refer to figure 6-19 ). the usb controller does not assign interrupt priority to different port pins and the port interrupt enable registers are not cleared during the interrupt acknowledge process. when a gpio interrupt is serviced, the isr must poll the ports to determine which pin caused the interrupt. b7 b6 b5 b4 b3 b2 b1 b0 ie0.7 ie0.6 ie0.5 ie0.4 ie0.3 ie0.2 ie0.1 ie0.0 wwwwwwww 00000000 figure 6-17. port 0 interrupt enable register (p0 ie ? address 0x04) b7 b6 b5 b4 b3 b2 b1 b0 ie1.7 ie1.6 ie1.5 ie1.4 ie1.3 ie1.2 ie1.1 ie1.0 wwwwwwww 00000000 figure 6-18. port 1 interrupt enable register (p1 ie ? address 0x05) figure 6-19. gpio interrupt logic block diagram port pull-up register 1=l h 0=h ? l or gate gpio interrupt flip-flop clr gpio pin 1 = enable 0 = disable port interrupt enable register 1 = enable 0 = disable interrupt acknowledge interrupt priority encoder irq interrupt vector d q clr m u x i (1 input per gpio pin) global gpio interrupt enable (bit 6, register 0x20)
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 13 of 25 6.8.3 usb interrupt a usb endpoint 0 interrupt is generated after the host has written data to endpoint 0 or after the usb controller has transmitted a packet from endpoint 0 and receives an ack from the host. an out packet from the host which is naked by the usb controller does not generate an interrupt. this interrupt is masked by the usb ep0 interrupt enable bit (bit 3) of the global interrupt enable register. a usb endpoint 1 interrupt is generated after the usb controller has transmitted a packet from endpoint 1 and has received an ack from the host. this interrupt is masked by the usb ep1 interrupt enable bit (bit 4) of the global interrupt enable register. 6.8.4 timer interrupt there are two timer interrupts: the 128- s interrupt and the 1.024-ms interrupt. they are masked by bits 1 and 2 of the global interrupt enable register respectively. the user should disable both timer interrupts before going into the suspend mode to avoid possible conflicts from timer interrupts occurring just as suspend mode is entered. 6.8.5 wake-up interrupt a wake-up interrupt is generated when the cext pin goes high. this interrupt is latched in the interrupt controller. it can be masked by the wake-up interrupt enable bit (bit 7) of the global interrupt enable register. this interrupt can be used to perform periodic checks on attached peripherals when the usb controller is placed in the low-power suspend mode. see the instant-on feature section for more details. 6.9 usb engine the usb engine includes the serial interface engine (sie) and the low-speed usb i/o transceivers. the sie block performs most of the usb interface functions with only minimal support from the microcontroller core. two endpoints are supported. endpoint 0 is used to receive and transmit control (including setup) packets while endpoint 1 is only used to transmit data packets. the usb sie processes usb bus activity at the transaction level independently. it does all the nrzi encoding/decoding and bit stuffing/unstuffing. it also determines token type, checks address and endpoint values, generates and checks crc values, and controls the flow of data bytes between the bus and the endpoint fifos. note: the sie stalls the cpu for three cycles per byte when writing data to the endpoint fifos (or 3 * 1/12 mhz * 8 bytes = 2 s per 8-byte transfer). the firmware handles higher level and function-specific tasks. during control transfers the firmware must interpret device requests and respond correctly. it also must coordinate suspend/resume, verify and select data toggle values, and perform function specific tasks. the usb engine and the firmware communicate though the endpoint fifos, usb endpoint interrupts, and the usb registers described in the sections below. 6.9.1 usb enumeration process the usb controller provides a usb device address register at i/o location 0x12. reading and writing this register is achieved via the iord and iowr instructions. the register contents are cleared during a reset, setting the usb address of the usb controller to 0. figure 6-20 shows the format of the usb address register. typical enumeration steps: 1. the host computer sends a setup packet followed by a data packet to usb address 0 requesting the device descriptor. 2. the usb controller decodes the request and retrieves its device descriptor from the program memory space. 3. the host computer performs a control read sequence and the usb controller responds by sending the device descriptor over the usb bus. 4. after receiving the descriptor, the host computer sends a setup packet followed by a data packet to address 0 assigning a new usb address to the device. 5. the usb controller stores the new address in its usb device address register after the no-data control sequence completes. 6. the host sends a request for the device descriptor using the new usb address. 7. the usb controller decodes the request and retrieves the device descriptor from the program memory. 8. the host performs a control read sequence and the usb controller responds by sending its device descriptor over the usb bus. 9. the host generates control reads to the usb controller to request the configuration and report descriptors. 10.the usb controller retrieves the descriptors from its program space and returns the data to the host over the usb. 11.enumeration is complete after the host has received all the descriptors. b7 b6 b5 b4 b3 b2 b1 b0 reserved adr6 adr5 adr4 adr3 adr2 adr1 adr0 r/w r/w r/w r/w r/w r/w r/w 00000000 figure 6-20. usb device address register (usb da ? address 0x12)
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 14 of 25 6.9.2 endpoint 0 all usb devices are required to have an endpoint number 0 that is used to initialize and manipulate the device. endpoint 0 provides access to the device?s configuration information and allows generic usb status and control accesses. endpoint 0 can receive and transmit data. both receive and transmit data share the same 8-byte endpoint 0 fifo located at data memory space 0x70 to 0x77. received data may overwrite the data previously in the fifo. 6.9.2.1 endpoint 0 receive after receiving a packet and placing the data into the endpoint 0 fifo, the usb controller updates the usb endpoint 0 rx register to record the receive status and then generates a usb endpoint 0 interrupt. the format of the endpoint 0 rx register is shown in figure 6-21 . this is a read/write register located at i/o address 0x14. any write to this register clears all bits except bit 3 which remains unchanged. all bits are cleared during reset. bit 0 is set to 1 when a setup token for endpoint 0 is received. once set to a 1, this bit remains high until it is cleared by an i/o write or a reset. while the data following a setup is being received by the usb engine, this bit is not cleared by an i/o write. user firmware writes to the usb fifos are disabled when bit 0 is set. this prevents setup data from being overwritten. bits 1 and 2 are updated whenever a valid token is received on endpoint 0. bit 1 is set to 1 if an out token is received and cleared to 0 if any other token is received. bit 2 is set to 1 if an in token is received and cleared to 0 if any other token is received. bit 3 shows the data toggle status of data packets received on endpoint 0. this bit is updated for data following setup tokens and for data following out tokens if stall (bit 5 of 0x10) is not set and either enableouts or statusouts (bits 3 and 4 of 0x13) are set. bits 4 to 7 are the count of the number of bytes received in a data packet. the two crc bytes are included in the count, so the count value is two greater than the number of data bytes received. the count is always updated and the data is always stored in the fifo for data packets following a setup token. the count for data following an out token is updated if stall (bit 5 of 0x10) is 0 and either enableouts or statusouts (bits 3 and 4 of 0x13) are 1. the data following an out is written into the fifo if enableouts is set to 1 and stall and statusouts are 0. a maximum of eight bytes are written into the endpoint 0 fifo. if there are less than eight bytes of data the crc is written into the fifo. due to register space limitations, the receive data invalid bit is located in the usb endpoint 0 tx configuration register. refer to the endpoint 0 transmit section for details. this bit is set by the sie if an error is detected in a received data packet. table 6-4 summarizes the usb engine response to setup and out transactions on endpoint 0. in the data packet column ?error? represents a packet with a crc, pid or bit- stuffing error, or a packet with more than eight bytes of data. ?valid? is a packet without an error. ?status? is a packet that is a valid control read status stage, while ?n/status? is not a correct status stage (see section 6.9.4). the ?stall? bit is described in section 6.9.2.2. the ?statusouts? and ?enableouts? bits are described in section 6.9.4. b7 b6 b5 b4 b3 b2 b1 b0 count3 count2 count1 count0 toggle in out setup r/w r/w r/w r/w r r/w r/w r/w 00000000 figure 6-21. usb endpoint 0 rx register (address 0x14) table 6-4. usb engine response to setup and out transactions on endpoint 0 control bit settings received packets usb engine response stall status out enable out token type data packet fifo write toggle update count update interrupt reply ? ? ? setup valid yes yes yes yes ack ? ? ? setup error yes yes yes yes none 0 0 1 o ut valid yes yes yes yes ack 0 0 1 o ut error yes yes yes yes none 0 0 0outvalidnononononak 0 0 0outerrornononononone 1 0 0outvalidnonononostall 1 0 0outerrornononononone 0 1 0 out status no yes yes yes ack 0 1 0 out n/status no yes yes yes stall 0 1 0 out error no yes no no none
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 15 of 25 6.9.2.2 endpoint 0 transmit the usb endpoint 0 tx register located at i/o address 0x10 controls data transmission from endpoint 0 (see figure 6-22 ). this is a read/write register. all bits are cleared during reset. bits 0 to 3 indicate the numbers of data bytes to be transmitted during an in packet, valid values are 0 to 8 inclusive. bit 4 indicates that a received data packet error (crc, pid, or bitstuffing error) occurred during a setup or out data phase. setting the stall bit (bit 5) stalls in and out packets. this bit is cleared whenever a setup packet is received by endpoint 0. bit 6 (data 1/0) must be set to 0 or 1 to select the data packet?s toggle state (0 for data0, 1 for data1). after the transmit data has been loaded into the fifo, bit 6 should be set according to the data toggle state and bit 7 set to ?1?. this enables the usb controller to respond to an in packet. bit 7 is cleared and an endpoint 0 interrupt is generated by the sie once the host acknowledges the data transmission. bit 7 is also cleared when a setup token is received. the interrupt service routine can check bit 7 to confirm that the data transfer was successful. 6.9.3 endpoint 1 endpoint 1 is capable of transmit only. the data to be trans- mitted is stored in the 8-byte endpoint 1 fifo located at data memory space 0x78 to 0x7f. 6.9.3.1 endpoint 1 transmit transmission is controlled by the usb endpoint 1 tx register located at i/o address 0x11 (see figure 6-23 ). this is a read/write register. all bits are cleared during reset. bits 0 to 3 indicate the numbers of data bytes to be transmitted during an in packet, valid values are 0 to 8 inclusive. bit 4 must be set before endpoint 1 can be used. if this bit is cleared, the usb controller ignores all traffic to endpoint 1. setting the stall bit (bit 5) stalls in and out packets until this bit is cleared. bit 6 (data 1/0) must be set to either 0 or 1 depending on the data packet?s toggle state, 0 for data0, 1 for data1. after the transmit data has been loaded into the fifo, bit 6 should be set according to the data toggle state and bit 7 set to ?1?. this enables the usb controller to respond to an in packet. bit 7 is cleared and an endpoint 1 interrupt is generated by the sie once the host acknowledges the data transmission. 6.9.4 usb status and control usb status and control is regulated by usb status and control register located at i/o address 0x13 as shown in figure 6-24 . this is a read/write register. all reserved bits must be written to zero. all bits in the register are cleared during reset. bit 0 is set by the sie if any usb activity except idle (d+ low, d? high) is detected. the user program should check and clear this bit periodically to detect any loss of bus activity. writing a 0 to this bit clears it. writing a 1 does not change its value. bit 1 is used to force the on-chip usb transmitter to the k state which sends a resume signal to the host. bit 2 is used to force the transmitter to the j state. this bit should normally be set to zero. however, for resume signaling, force a j state for one instruction before forcing resume. bit 3 is used to automatically respond to the status stage out of a control read transfer on endpoint 0. a valid status stage out contains a data1 packet with 0 bytes of data. if the statu- souts bit is set, the usb engine responds to a valid status stage out with an ack, and any other out with a stall. b7 b6 b5 b4 b3 b2 b1 b0 inen data1/0 stall err count3 count2 count1 count0 r/w r/w r/w r/w r/w r/w r/w r/w 00000000 figure 6-22. usb endpoint 0 tx configuration register (address 0x10) b7 b6 b5 b4 b3 b2 b1 b0 inen data1/0 stall ep1en count3 count2 count1 count0 r/w r/w r/w r/w r/w r/w r/w r/w 00000000 figure 6-23. usb endpoint 1 tx configuration register (address 0x11) b7 b6 b5 b4 b3 b2 b1 b0 reserved reserved reserved enouts statouts forcej forcek busact r/w r/w r/w r/w 00000000 figure 6-24. usb status and control register (usb scr ? address 0x13)
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 16 of 25 the data is not written into the fifo when this bit is set. this bit is cleared when a setup token is received by endpoint 0. bit 4 is used to enable the receiving of endpoint 0 out packets. when this bit is set to 1, the data from an out trans- action is written into the endpoint 0 fifo. if this bit is 0, data is not written to the fifo and the sie responds with a nak. this bit is cleared following a setup or acked out trans- action. note . after firmware decodes a setup packet and prepares for a subsequent out transaction by setting bit 4, bit 4 is not cleared until the hand-shake phase of an acked out transaction (a naked out transaction does not clear this bit). 6.10 usb physical layer characteristics the following section describes the cy7c630/101a compliance to the chapter 7 electrical section of the usb specification, revision 1.1. the section contains all signaling, power distribution, and physical layer specifications necessary to describe a low- speed usb function. 6.10.1 low-speed driver characteristics the cy7c630/101a devices use a differential output driver to drive the low-speed usb data signal onto the usb cable, as shown in figure 6-25 . the output swings between the differ- ential high and low state are well balanced to minimize signal skew. slew rate control on the driver minimizes the radiated noise and cross talk on the usb cable. the driver?s outputs support three-state operation to achieve bidirectional half duplex operation. the cy7c630/101a driver tolerates a voltage on the signal pins of ?0.5v to 3.8v with respect to local ground reference without damage. the driver tolerates this voltage for 10.0 s while the driver is active and driving, and tolerates this condition indefinitely when the driver is in its high- impedance state. a low-speed usb connection is made through an unshielded, untwisted wire cable a maximum of three meters in length. the rise and fall time of the signals on this cable are well controlled to reduce rfi emissions while limiting delays, signaling skews and distortions. the cy7c630/101a driver reaches the specified static signal levels with smooth rise and fall times, resulting in minimal reflections and ringing when driving the usb cable. this cable and driver are intended to be used only on network segments between low-speed devices and the ports to which they are connected. 6.10.2 receiver characteristics the cy7c630/101a has a differential input receiver which is able to accept the usb data signal. the receiver features an input sensitivity of at least 200 mv when both differential data inputs are in the range of at least 0.8v to 2.5v with respect to its local ground reference. this is the common mode input voltage range. proper data reception is also guaranteed when the differential data lines are outside the common mode range, as shown in figure 6-26 . the receiver tolerates static input voltages between ?0.5v and 3.8v with respect to its local ground reference without damage. in addition to the differ- ential receiver, there is a single-ended receiver for each of the two data lines. the single-ended receivers have a switching threshold between 0.8v and 2.0v (ttl inputs). figure 6-25. low-speed driver signal waveforms vss signal pins pass output spec levels with minimal reflections and ringing one bit time (1.5mb/s) driver signal pins v se (max) v se (min)
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 17 of 25 6.11 external usb pull-up resistor the usb system specifies that a pull-up resistor be connected on the d? pin of low-speed peripherals as shown in figure 6- 27 . to meet the usb 1.1 spec (section 7.1.6), which states that the termination must charge the d? line from 0 to 2.0 v in 2.5 s, the total load capacitance on the d+/d? lines of the low-speed usb device (cypress device capacitance + pcb trace capacitance + integrated cable capacitance) must be less than 250 pf. as cypress d+/d? transceiver input capac- itance is 20pf max, up to 230 pf of capacitance is allowed for in the low speed device?s integrated cable and pcb. if the cable + pcb capacitance on the d+/d? lines will be greater than approximately 230 pf, an external 3.3v regulator must be used as shown in figure 6-28 . figure 6-26. differential input sensitivity over entire common mode range 0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 common mode input voltage (volts) minimum differential sensitivity (volts) 7.5kw 1% usb connector port0 port1 vss vpp xtalin port0 port1 d? d+ vcc xtalout cext 6-mhz switches, devices, etc. switches, devices, etc. for cext wake-up mode 0.1 f resonator 4.7 f +4.35v (min) figure 6-27. application showing 7.5kw 1% pull-up resistor 1.5 kw usb connector port0 port1 v ss v pp xtalin port0 port1 d? d+ v cc xtalout cext 6-mhz switches, devices, etc. switches, devices, etc. for cext wake-up mode 0.1 f resonator 4.7 f 3.3v reg +3.3v 0.1 f +4.35v (min.) figure 6-28. application showing 1.5-kw 5% pull-up resistor
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 18 of 25 6.12 instruction set summary table 6-5. instruction set map mnemonic operand opcode cycles mnemonic operand opcode cycles halt 00 7 nop 20 4 add a,expr data 01 4 inc a acc 21 4 add a,[expr] direct 02 6 inc x x 22 4 add a,[x+expr] index 03 7 inc [expr] direct 23 7 adc a,expr data 04 4 inc [x+expr] index 24 8 adc a,[expr] direct 05 6 dec a acc 25 4 adc a,[x+expr] index 06 7 dec x x 26 4 sub a,expr data 07 4 dec [expr] direct 27 7 sub a,[expr] direct 08 6 dec [x+expr] index 28 8 sub a,[x+expr] index 09 7 iord expr address 29 5 sbb a,expr data 0a 4 iowr expr address 2a 5 sbb a,[expr] direct 0b 6 pop a 2b 4 sbb a,[x+expr] index 0c 7 pop x 2c 4 or a,expr data 0d 4 push a 2d 5 or a,[expr] direct oe 6 push x 2e 5 or a,[x+expr] index 0f 7 swap a,x 2f 5 and a,expr data 10 4 swap a,dsp 30 5 and a,[expr] direct 11 6 mov [expr],a direct 31 5 and a,[x+expr] index 12 7 mov [x+expr],a index 32 6 xor a,expr data 13 4 or [expr],a direct 33 7 xor a,[expr] direct 14 6 or [x+expr],a index 34 8 xor a,[x+expr] index 15 7 and [expr],a direct 35 7 cmp a,expr data 16 5 and [x+expr],a index 36 8 cmp a,[expr] direct 17 7 xor [expr],a direct 37 7 cmp a,[x+expr] index 18 8 xor [x+expr],a index 38 8 mov a,expr data 19 4 iowx [x+expr] index 39 6 mov a,[expr] direct 1a 5 cpl 3a 4 mov a,[x+expr] index 1b 6 asl 3b 4 mov x,expr data 1c 4 asr 3c 4 mov x,[expr] direct 1d 5 rlc 3d 4 ipret addr 1e 13 rrc 3e 4 xpage 1f 4 ret 3f 8 jmp addr 8x 5 jc addr cx 5 call addr 9x 10 jnc addr dx 5 jz addr ax 5 jacc addr ex 7 jnz addr bx 5 index addr fx 14
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 19 of 25 7.0 absolute maximum ratings storage temperature ................................. ?65c to +150c ambient temperature with power applied ...... ?0c to +70c supply voltage on v cc relative to v ss ......... ?0.5v to +7.0v dc input voltage................................... ?0.5v to +v cc +0.5v dc voltage applied to outputs in high-z state ......................................... ?0.5v to +v cc +0.5v max. output current into port 1 pins .......................... 60 ma max. output current into non-port 1 pins.................. 10 ma power dissipation..................................................... 300 mw static discharge voltage .......................................... > 2000v latch-up current [1] ................................................ > 200 ma 8.0 electrical characteristics f osc = 6 mhz; operating temperature = 0 to 70c, v cc = 4.0 to 5.25v parameter description conditions min. max. unit general i cc v cc operating supply current 25 ma i sb1 supply current?suspend mode resonator off, d? > voh min [2] 20 a i sb2 supply current?start-up mode 4 ma v pp programming voltage (disabled) ?0.4 0.4 v t start resonator start-up interval ceramic resonator 256 s t watch watchdog timer period 7.168 8.192 ms power on reset t vccs v cc slew linear ramp on v cc pin to v cc [3, 4] 0.010 1000 ms usb interface v oh static output high 15k ? 5% to gnd [5,6] 2.8 3.6 v v ol static output low see notes 5 and 6 0.3 v v di differential input sensitivity |(d+)?(d?)|, and figure 6-26 0.2 v v cm differential input common mode range figure 6-26 0.8 2.5 v v se single ended receiver threshold 0.8 2.0 v c in transceiver input capacitance d+ to vss; d- to vss 20 pf i lo data line (d+, d?) leakage 0 v <(d+, d?)<3.3 v, hi-z state ?10 10 a r pu1 external bus pull-up resistance, d? pin 1.5 k ? 5% to 3.3v supply 1.425 1.575 k ? r pu2 external bus pull-up resistance, d? pin 7.5 k ? 1% to vcc [7] 7.425 7.575 k ? r pd external bus pull-down resistance 15 k ? 5% 14.25 15.75 k ? general purpose i/o interface r up pull-up resistance 8 24 k ? i sink0(0) port 0 sink current (0), lowest current vout = 2.0v dc, port 0 only [5] 0.1 0.3 ma i sink0(f) port 0 sink current (f), highest current vout = 2.0v dc, port 0 only [5] 0.5 1.5 ma i sink1(0) port 1 sink current (0), lowest current vout = 2.0v dc, port 1 only [5] 1.6 4.8 ma i sink1(f) port 1 sink current (f), highest current vout = 2.0v dc, port 1 only [5] vout = 0.4v dc, port 1 only [5] 8 5 24 ma ma i range sink current max./min. vout = 2.0v dc, port 0 or 1 [5, 8] 4.5 5.5 i lin differential nonlinearity port 0 or port 1 [11] 0.5 l sb t ratio tracking ratio port1 to port0 vout = 2.0v [12] 14.4 19.6 t sink current sink response time full scale transition 0.8 s i max port 1 max sink current summed over all port 1 bits 60 ma notes: 1. all pins specified for >200 ma positive and negative injection, except p1.0 is specified for >50 ma negative injection. 2. cext at v cc or gnd, port 0 and port1 at v cc . 3. part powers up in suspend mode, able to be reset by usb bus reset. 4. por may re-occur whenever v cc drops to approximately 2.5v. 5. level guaranteed for range of v cc = 4.35v to 5.25v. 6. with r pu1 of 1.5 kw 5% on d? to 3.3v regulator. 7. maximum matched capacitive loading allowed on d+ and d? (including usb cable and host/hub) is approximately 230 pf. 8. i range = i sink(f) /i sink(0 ) for each port 0 or 1 output.
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 20 of 25 notes: 9. c load of 200 (75 ns) to 600 pf (300 ns). 10. measured at crossover point of differential data signals. 11. measured as largest step size vs. nominal according to measured full scale and zero programmed values 12. t ratio = i sink1(n) /i sink0(n) for the same n. 13. low to high transition. 14. this parameter is guaranteed, but not tested. 15. with ports configured in hi-z mode. p max port 1 & cext sink mode dissipation per pin 25 mw v ith input threshold voltage all ports and cext [13] 45% 65% v cc v h input hysteresis voltage port 0 and port 1 [14] 6% 12% v cc v hcext input hysteresis voltage, cext cext pin only [14] 12% 30% v cc iin input leakage current, gpio pins port 0 and port 1, vout = 0 or v cc [15] ?1 1 a i incx input leakage current, cext pin v cext = 0 or v cc 50 na i cext sink current, cext pin v cext = v cc 618ma v ol1 output low voltage, cext pin v cc = min., i ol = 2 ma 0.4 v v ol2 output low voltage, cext pin v cc = min., i ol = 5 ma 2.0 v 9.0 switching characteristics parameter description conditions min. max. unit clock t cyc input clock cycle time 166.67 166.67 ns t ch clock high time 0.45 t cyc ns t cl clock low time 0.45 t cyc ns usb driver characteristics t r usb data transition rise time see notes 5, 6, and 9 75 300 ns t f usb data transition fall time see notes 5, 6, and 9 75 300 ns t rfm rise/fall time matching t r /t f 80 125 % v crs output signal crossover voltage see note 5 1.3 2.0 v usb data timing t drate low speed data rate ave. bit rate (1.5 mb/s 1.5%) 1.4775 1.5225 mb/s t djr1 receiver data jitter tolerance to next transition, figure 9-3 [10] ?75 75 ns t djr2 receiver data jitter tolerance for paired transitions, figure 9-3 [10] ?45 45 ns t deop differential to eop transition skew figure 9-4 [10] ?40 100 ns t eopr eop width at receiver accepts as eop [10] 670 ns t lst width of se0 interval during differential transition 210 ns t eopt source eop width 1.25 1.50 s t udj1 differential driver jitter to next transition, figure 9-5 ?95 95 ns t udj2 differential driver jitter to paired transition, figure 9-5 ?150 150 ns 8.0 electrical characteristics f osc = 6 mhz; operating temperature = 0 to 70c, v cc = 4.0 to 5.25v (continued) parameter description conditions min. max. unit
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 21 of 25 figure 9-1. clock timing figure 9-2. usb data signal timing and voltage levels figure 9-3. receiver jitter tolerance figure 9-4. differential to eop transition skew and eop width clock t cyc t cl t ch 90% 10% 90% 10% d ? d + t r t f v crs v oh v ol differential data lines paired transitions n * t period + t jr2 t period consecutive transitions n * t period + t jr1 t jr t jr1 t jr2 t period differential data lines crossover point crossover point extended source eop width: t eopt receiver eop width: t eopr1 , t eopr2 diff. data to se0 skew n * t period + t deop
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 22 of 25 figure 9-5. differential data jitter 10.0 ordering information ordering code eprom size number of gpio package name package type operating range cy7c63001a-pc 4kb 12 p5 20-pin (300-mil) pdip commercial cy7c63001a-pxc 4kb 12 p5 20-pin (300-mil) pdip lead-free commercial cy7c63001a-sc 4kb 12 s5 20-pin (300-mil) soic commercial cy7c63001a-sxc 4kb 12 s5 20-pin (300-mil) soic lead-free commercial cy7c63101a-qc 4kb 16 q13 24-pin (150-mil) qsop commercial CY7C63101A-QXC 4kb 16 q13 24-pin (150-mil) qsop lead-free commercial cy7c63001a-xc 4kb 16 ? die form commercial cy7c63001a-xwc 4kb 16 ? die form lead-free commercial 11.0 package diagrams t period differential data lines crossover points paired transitions n * t period + t xjr2 consecutive transitions n * t period + t xjr1 51-85011-*a 20-lead (300-mil) molded dip p5
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 23 of 25 11.0 package diagrams (continued) 24-lead quarter size outline q13 51-85055-*b 20-lead (300-mil) molded soic s5 51-85024-*b
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 24 of 25 ? cypress semiconductor corporation, 2004. the information contained herein is subject to change without notice. cypress semic onductor corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a cypress produ ct. nor does it convey or imply any license under patent or ot her rights. cypress products are not warranted nor intended to be used for medical, life support, life saving, critical control or safety applications, unless pursuant to an express written agr eement with cypress. furthermore, cypress does not authorize its products for use as critical components in life-support systems where a malfunction or failure may reasonably be expected to re sult in significant injury to the user. the inclusion of cypress products in life-support systems application implies that the manufacturer assumes a ll risk of such use and in doing so indemni f ies cypress against all charges. table 11-1 below shows the die pad coordinates for the cy7c63001a-xc and cy7c63001a-xwc. the center location of each bond pad is relative to the bottom left corner of the die which has coordinate (0,0). all product and company names mentioned in this document are the trademarks of their respective holders. 11.0 package diagrams (continued) 51-85025-*b 8 5 6 7 die form 4321 24 23 22 21 17 20 19 18 13 14 15 16 910 11 12 y x (0,0) table 11-1. cy7c63001a-xc probe pad coordi nates in microns ((0,0) to bond pad centers) pad # pin name x (microns) y (microns) pad # pin name x (microns) y (microns) 1 port00 676.00 2325.40 13 xtlout 794.85 121.80 2 port01 507.35 2325.40 14 vcc 1033.55 121.80 3 port02 338.70 2325.40 15 d- 1129.75 121.80 4 port03 170.05 2325.40 16 d+ 1451.70 121.80 5 port10 120.10 2132.30 17 port17 1446.10 1595.80 6 port12 120.10 1962.90 18 port15 1446.10 1765.20 7 port14 120.10 1765.20 19 port13 1446.10 1962.90 8 port16 120.10 1595.80 20 port11 1446.10 2132.30 9 vss 148.50 121.80 21 port07 1395.65 2325.40 10 vpp 278.30 121.80 22 port06 1227.00 2325.40 11 cext 414.25 121.80 23 port05 1058.35 2325.40 12 xtalin 653.45 121.80 24 port04 889.7 2325.40
cy7c63001 a cy7c63101 a document #: 38-08026 rev. *a page 25 of 25 document history page document title: cy7c63001a, cy7c63101a universal serial bus microcontroller document number: 38-08026 rev. ecn no. issue date orig. of change description of change ** 116223 06/12/02 dsg change from spec number: 38-00662 to 38-08026 *a 276070 see ecn bon added die form and bond pad information. added lead-free packages. removed obsolete packages and their references.


▲Up To Search▲   

 
Price & Availability of CY7C63101A-QXC

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X