Cypress CY7C63413C, CY7C63613C Interrupt Vectors, Interrupt Vector Assignments, Interrupt Latency

Page 20

CY7C63413C

CY7C63513C

CY7C63613C

Interrupt Vectors

The Interrupt Vectors supported by the USB Controller are listed in Table 27. Although Reset is not an interrupt, per se, the first instruction executed after a reset is at PROM address

Table 27.Interrupt Vector Assignments

0x0000—which corresponds to the first entry in the Interrupt Vector Table. Because the JMP instruction is 2 bytes long, the interrupt vectors occupy 2 bytes.

Interrupt Vector Number

ROM Address

Function

 

 

 

not applicable

0x0000

Execution after Reset begins here

 

 

 

1

0x0002

USB Bus Reset interrupt

 

 

 

2

0x0004

128-s timer interrupt

 

 

 

3

0x0006

1.024-ms timer interrupt

 

 

 

4

0x0008

USB Address A Endpoint 0 interrupt

 

 

 

5

0x000A

USB Address A Endpoint 1 interrupt

 

 

 

6

0x000C

USB Address A Endpoint 2 interrupt

 

 

 

7

0x000E

Reserved

 

 

 

8

0x0010

Reserved

 

 

 

9

0x0012

Reserved

 

 

 

10

0x0014

DAC interrupt

 

 

 

11

0x0016

GPIO interrupt

 

 

 

12

0x0018

Reserved

 

 

 

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 will execute a min. of 16 clocks (1+10+5) or a max. of 20 clocks (5+10+5) after the interrupt is issued. Remember that the interrupt latches are sampled at the rising edge of the last clock cycle in the current instruction.

USB Bus Reset Interrupt

The USB Bus Reset interrupt is asserted when a USB bus reset condition is detected. A USB bus reset is indicated by a single ended zero (SE0) on the upstream port for more than 8 microseconds.

Timer Interrupt

There are two timer interrupts: the 128-s interrupt and the 1.024-ms interrupt. The user should disable both timer inter- rupts before going into the suspend mode to avoid possible conflicts between servicing the interrupts first or the suspend request first.

USB Endpoint Interrupts

There are three USB endpoint interrupts, one per endpoint. The USB endpoints interrupt after the either the USB host or the USB controller sends a packet to the USB.

DAC Interrupt

Each DAC I/O pin can generate an interrupt, if enabled.The interrupt polarity for each DAC I/O pin is programmable. A positive polarity is a rising edge input while a negative polarity is a falling edge input. All of the DAC pins share a single interrupt vector, which means the firmware will need to read the DAC port to determine which pin or pins caused an interrupt.

Please note that if one DAC pin triggered an interrupt, no other DAC pins can cause a DAC interrupt until that pin has returned to its inactive (non-trigger) state or the corresponding interrupt enable bit is cleared. The USB Controller does not assign interrupt priority to different DAC pins and the DAC Interrupt Enable Register is not cleared during the interrupt acknowledge process.

GPIO Interrupt

Each of the 32 GPIO pins can generate an interrupt, if enabled. The interrupt polarity can be programmed for each GPIO port as part of the GPIO configuration. All of the GPIO pins share a single interrupt vector, which means the firmware will need to read the GPIO ports with enabled interrupts to determine which pin or pins caused an interrupt.

Please note that if one port pin triggered an interrupt, no other port pins can cause a GPIO interrupt until that port pin has returned to its inactive (non-trigger) state or its corresponding port interrupt enable bit is cleared. 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.

Document #: 38-08027 Rev. *B

Page 20 of 32

[+] Feedback

Image 20
Contents Cypress Semiconductor Corporation FeaturesFunctional Overview CY7C63413C CY7C63513C CY7C63613C Logic Block Diagram Pin Definitions Programming ModelBit Data Stack Pointer DSP Address ModesMOV A,DSPINIT Buttons EQU 10h MOV A,buttonsInstruction Set Summary Operand Opcode CyclesMemory Organization Program Memory OrganizationReserved Program Memory begins hereData Memory Organization Register Summary O Register SummaryRegister Name Address Read/Write Function USB Address A, Endpoint 0 counter registerReset ClockingGeneral Purpose I/O Ports PinAddr Port 1 Data Addr Port 2 DataPort 0 Interrupt Enable Gpio Interrupt Enable PortsGpio Configuration Port Addr Port 0 Interrupt Enable+ default Addr Gpio Configuration RegisterDAC Port Cmos OutputDAC Port Interrupt Enable Addr DAC Port Interrupt EnableDAC Port Interrupts DAC Isink RegistersUSB Serial Interface Engine SIE USB Device USB Device Counter Registers Addr 0x11, 0x13 USB Device Counter RegistersData 0/1 Byte countBit Free-running Timer Timer LSB Timer RegisterAddr Timer Register LSB Timer MSB Timer Register Addr Timer Register MSBGlobal Interrupt Enable Register Addr USB End Point Interrupt Enable Register AddrInterrupts Gpio DACInterrupt Vectors Interrupt Vector AssignmentsInterrupt Vector Number ROM Address Function Interrupt LatencyUSB Register Mode Encoding Truth TablesEncoding NAKWhat the SIE does to Mode bits PID Status bits Interrupt? EncodingSet End Point Mode Setup Packet if acceptingControl Write Control ReadOut endpoint Power-On Reset Absolute Maximum RatingsParameter Min Max Unit Conditions General USB InterfaceSwitching Characteristics Differential Data Lines Ordering Information Ordering CodePackage Package Type Operating Size RangeDie Pad Locations DIe Pad Locations in microns Pad # Pin NameLead 600-Mil Molded DIP P2 Package DiagramsLead Shrunk Small Outline Package SP48 Package Diagrams Lead 300-Mil Soic S24.3/SZ24.3 PIN 1 IDIssue Orig. Description of Change Date Document HistoryDSG TYJ

CY7C63613C, CY7C63413C, CY7C63513C specifications

The Cypress CY7C63513C, CY7C63413C, and CY7C63613C are versatile programmable logic devices that are part of the Cypress family of microcontrollers designed for diverse applications. These devices are particularly well-suited for embedded systems, consumer electronics, and industrial control systems due to their robust features and technologies.

One of the standout characteristics of these devices is their programmable architecture, which allows for flexible design implementations. The CY7C63513C features 32 programmable I/O pins and an 8-bit microcontroller core, which provides ample resource allocation for various input/output operations. The device supports various communication interfaces, including SPI and I2C, enabling seamless integration into different system configurations.

The CY7C63413C is a highly adaptable component, offering similar features but with an enhanced flexibility in its I/O configuration, making it ideal for applications that require quick prototyping and development cycles. Its extensive instruction set allows for more complex processing tasks, catering to advanced applications in automation and signal processing.

On the other hand, the CY7C63613C provides an advanced level of integration with built-in support for multiple power management modes. This feature is crucial in modern battery-operated devices where energy conservation is a primary concern. Its low-power operation enhances the usability in portable applications while still maintaining performance.

In terms of performance, all three devices boast high-speed operation, with clock frequencies reaching up to 24 MHz. This ensures that they can efficiently handle tasks that require real-time processing, such as sensor data management and control algorithms. The devices are also equipped with an on-chip EEPROM and RAM, allowing for data storage and quick retrieval.

In addition to their performance characteristics, the CY7C63513C, CY7C63413C, and CY7C63613C are designed with reliability in mind. They incorporate robust error detection and correction features, ensuring data integrity during operation. This reliability is essential for critical applications, such as automotive systems and industrial automation.

Overall, the Cypress CY7 series presents an appealing solution for developers looking for a blend of flexibility, performance, and reliability in their embedded designs. Their programmability and support for multiple communication protocols make them a formidable choice in today’s fast-paced technological landscape, paving the way for innovative applications across various industries.