USB low-full-high speed peripherals Forum Discussions
I use the example code in FX3 SDK for Bulkloop_SDCC of FX2LP
I want to enable the external interrupts.
It works well for INT 1/2, but it doesn't work for INT 4/5/6.
It seems can't run into interrupt 10 / 11 / 12.
What's wrong here?
In the TD_Init()
//INT4#
INTSETUP &= ~0x02; // If INTSETUP.1=0,then INT4 is supplied by the pin.Else, the interrupt is supplied internally FIFO/GPIF sources.
//INT5# is a dedicated pin , available in the 100 amd 128 pin packages.
//INT6#
PORTECFG = 0x20; // PE5 is INT6
OEE &= ~0x20;
//Enable External Interrupts
EIE |= 0x1C; // Enable External Interrupts 4, 5 and 6
IE |= 0x05; // Enable External Interrupts 0 and 1
//Clear Flags
EXIF &= 0xBF; // Clear INT4 EXIF.6 Flag
EXIF &= 0x7F; // Clear INT5 EXIF.7 Flag
EICON &= 0xF7; // Clear INT6 EICON.3 Flag
EA = 1; // Enable Global Interrupt
// for interrupt function
void ISR_EXTR4(void) __interrupt 10
{
EXIF &= 0xBF; // Clear INT4 EXIF.6 Flag
IOB ^= 0x08; // Toggle pin 3 of PortB
}
void ISR_EXTR5(void) __interrupt 11
{
EXIF &= 0x7F; // Clear INT5 EXIF.7 Flag
IOB ^= 0x08; // Toggle pin 3 of PortB
}
void ISR_EXTR6(void) __interrupt 12
{
EICON &= 0xF7; // Clear INT6 EICON.3 Flag
IOB ^= 0x08; // Toggle pin 3 of PortB
}
//USB jump table
.area AUTOVECTOR (CODE,ABS)
.org 0x0043
ljmp _USB_Jump_Table ; Autovector will replace byte 45
.org 0x0053
;; USB_Int4AutoVector equ $ + 2
ljmp _USB_Jump_Table ; Autovector will replace byte 55
what do I miss something?
Show LessI am new to mcu FX2LP. in FX2LP sample project there are several handlers with same interrupt 0. Can all have same interrupt 0?.why?.
void ISR_Ures( void ) interrupt 0 void ISR_Susp( void ) interrupt 0 void ISR_Highspeed( void ) interrupt 0
Show Less
Hi Cypress Team,
in my project the following configuration is used:
- Hardware: i.MX6 processor is connected via USB interface with the cypress chip CY7C65215-32LTXI. At the cypress chip several GPIOs, the SPI and I2C bus are used. At the I2C bus the cypress chip is the master.
- Software: On th i.MX6 a linux operating system is running and we are using your USB-serial linux driver
Normally the communication is working fine. We have no problems communicating via SPI or controlling the GPIOs.
But sometimes it happen that the I2C bus get stucks, meaning that we get a CY_ERROR_I2C_DEVICE_BUSY back if we want to write or read on the I2C bus. I suppose that the reading or writing command before the bus get stucks is not finished correctly, resulting in a pulling the SDA line low by the master.
Question:
- Is it possible to reset the I2C bus for instance by using the CyI2cReset command?
Hi,
I was going to use the example https://community.cypress.com/t5/Knowledge-Base-Articles/USB2-0-Camera-Interface-Using-FX2LP-and-Lattice-CrossLink-FPGA/ta-p/248972 Shared by you earlier in different discussion thread.
Actually we are using intel micro-semi FPGA with FX2LP so need some information related to provided sample code.
I want to know what are the required specifications from FPGA side for communicating with this FX2LP sample code. Please help to find the followings:
1. Size of Slave FIFO
2. Address of FIFO (FIFOADDR[1:0]) which FD bus in connected.
3. Status of FLAGA and FLAGD.
4. Frequency of CLOCKOUT.
If there are any additional setting that we have to do for this sample code on FPGA please also help to share that.
Also I want to change my FPS to 60 with 640 * 480 resolution, please help to share how I can achieve this.
Show LessHi,
I need to go through the driver resell process for the CyUSB driver (32 and 64bit). Can you help me with this? I have the new, tested files attached.
Thanks,
Christopher Rhodes
Bibliotheca LLC
Show LessHi,
we are implementing a CY7C63823-SXC peripheral as USB to GPIO expander. We a jsut developing the necessary firmware to implement this function, but we need to know if is it possible that the CY7C63823-SXC has a custom factory-programmed FW, to reduce production time.
At the same time, can anyone confirm me if CY8CKIT-002 PSoC® MiniProg3 Program and Debug Kit is compatible with CY7C63823-SXC and CY7C63813-PXC?
Thanks in advance.
Show LessHi,
Can we implement hardcoded values for video streaming via UVC?
I have a use-case where we are to develop a PC app for video streaming via FX2LP(CY3689 DK). Can I get(or develop) an example code where we are sending hardcoded data as video data to display over any media player(like VLC player)?
Show LessMy goal is to install USB descriptors to allow WebUSB access as described here.
The Cypress USB-Serial Configuration Utility seems to allow only limited changes to the descriptors. Is there a lower-level mechanism I can access to add a Binary Object Store (BOS) descriptor?
Available resources on the web include examples of the hex values in the descriptor, I shouldn't need a GUI tool to do this, I'm good with a command line and some documentation.
Show LessAs we all know, the isochronous transmission of USB is an unreliable data transmission method. So is there any influencing factors for its unreliability, such as transmission distance? In other words, is there any way to reduce the number of data transmission errors? Or is this kind of unreliability unpredictable and not controlled by humans?
Show LessHi,
I want to use UVC on CY3689 DK along with a FPGA slave. Is there any step by step guide to create the firmware?
Also I want information regarding FPS with 640 * 480 resolution that CY3689 can support. Does USB HS and USB FS mean anything if we are using UVC? If so can we increase FPS speed by moving from USB FS to USB HS?
Show Less