C55XX CSL EXAMPLE
CSL USB EXAMPLE DOCUMENTATION

USB EXAMPLE1 - POLL MODE TEST

TEST DESCRIPTION:

This test is to verify the operation of the CSL USB module. This test runs in poll mode. In the poll mode interrupt registers are read continuously in a while loop. If there is any interrupt observed it will be served and test continues to poll for the next interrupts.

This USB test can be verified by a host USB tool(c5505usb_ep_diag.exe) which can send or receive 64 bytes of data to the USB device. This tool should be installed on the host PC. This tool requires Jungo USB driver which can be downloaded from the link www.jungo.com. inf file should be installed for the C5505/C5515 USB device using driver wizard of the windriver. This installation is required only when running this example for the first time.

NOTE: IN THE CURRENT CODE EP1 IS CONFIGURED FOR IN TRANSACTIONS(COMMNAD 4-->1, 0x81) AND EP2 IS CONFIGURED FOR OUT TRANSACTIONS(COMMAND 4-->2, 0x02). APPROPRIATE COMMANDS SHOULD BE SENT FROM THE HOST APPLICATION, OTHERWISE TEST WILL NOT WORK. STARTS THE DATA COMMANDS WITH DATA READ FOR PROPER SYNCHRONIZATION.

NOTE: THIS TEST HAS BEEN DEVELOPED TO WORK WITH CHIP VERSIONS C5505 AND C5515. MAKE SURE THAT PROPER CHIP VERSION MACRO IS DEFINED IN THE FILE c55xx_csl\inc\csl_general.h.

TEST PROCEDURE:

TEST RESULT:

============================================================================

USB EXAMPLE2 - INTERRUPT MODE TEST

TEST DESCRIPTION:

This test is to verify the operation of the CSL USB module.This test runs in interrupt mode. USB interrupts are configured and ISR is registered using CSL INTC module. After initializing and configuring the USB module test waits on a while loop. When there is any request from the USB host application USB ISR is triggered and the requested operation is performed inside the ISR.

This USB test can be verified by a host USB tool(c5505usb_ep_diag.exe) which can send or receive 64 bytes of data to the USB device. This tool should be installed on the host PC. This tool requires Jungo USB driver which can be downloaded from the link www.jungo.com. inf file should be installed for the C5505/C5515 USB device using driver wizard of the windriver. This installation is required only when running this example for the first time.

NOTE: IN THE CURRENT CODE EP1 IS CONFIGURED FOR IN TRANSACTIONS(COMMNAD 4-->1, 0x81) AND EP2 IS CONFIGURED FOR OUT TRANSACTIONS(COMMAND 4-->2, 0x02). APPROPRIATE COMMANDS SHOULD BE SENT FROM THE HOST APPLICATION, OTHERWISE TEST WILL NOT WORK. STARTS THE DATA COMMANDS WITH DATA READ FOR PROPER SYNCHRONIZATION.

NOTE: THIS TEST HAS BEEN DEVELOPED TO WORK WITH CHIP VERSIONS C5505 AND C5515. MAKE SURE THAT PROPER CHIP VERSION MACRO IS DEFINED IN THE FILE c55xx_csl\inc\csl_general.h.

TEST PROCEDURE:

TEST RESULT:

============================================================================

USB EXAMPLE3 - DMA MODE TEST

TEST DESCRIPTION:

This test is to verify the operation of the CSL USB module.This test runs in DMA mode. USB controller is having DMA module internal to it. This DMA can be used to exchange the data between USB FIFO and the CPU memory. USB interrupt are used to indicate the arrival of request from the host. USB interrupts are configured and ISR is registered using CSL INTC module. After initializing and configuring the USB module test waits on a while loop. When there is any request from the USB host application USB ISR is triggered and the requested operation is performed inside the ISR. Inside the ISR FIFO read and write operations are performed using CPPI DMA module.

This USB test can be verified by a host USB tool(c5505usb_ep_diag.exe) which can send or receive 64 bytes of data to the USB device. This tool should be installed on the host PC. This tool requires Jungo USB driver which can be downloaded from the link www.jungo.com. inf file should be installed for the C5505/C5515 USB device using driver wizard of the windriver. This installation is required only when running this example for the first time.

NOTE: IN THE CURRENT CODE EP1 IS CONFIGURED FOR IN TRANSACTIONS(COMMNAD 4-->1, 0x81) AND EP2 IS CONFIGURED FOR OUT TRANSACTIONS(COMMAND 4-->2, 0x02). APPROPRIATE COMMANDS SHOULD BE SENT FROM THE HOST APPLICATION, OTHERWISE TEST WILL NOT WORK. STARTS THE DATA COMMANDS WITH DATA READ FOR PROPER SYNCHRONIZATION.

NOTE: THIS TEST HAS BEEN DEVELOPED TO WORK WITH CHIP VERSIONS C5505 AND C5515. MAKE SURE THAT PROPER CHIP VERSION MACRO IS DEFINED IN THE FILE c55xx_csl\inc\csl_general.h.

TEST PROCEDURE:

TEST RESULT:

============================================================================

USB EXAMPLE6 - USB CDC TEST

TEST DESCRIPTION:

This test is to verify the operation of the CSL USB and CDC ACM module. This test runs in interrupt mode. USB interrupts are configured and ISR is registered using CSL INTC module. After initializing and configuring the USB module, the test program waits on a while loop. When there is any input from the USB host application USB ISR is triggered and the requested operation is performed inside the ISR.

This USB CDC test can be verified by any terminal program (such as HyperTerminal) which can send or receive data via the virtual COM port for the USB CDC. The attached INF file (C5515_CDC_ACM.inf) is required. The INF file only be installed for the C5515 USB CDC device for the first time, when the using driver wizard of the windriver. This installation is required only when running this example for the first time.

NOTE: IN THE CURRENT CODE EP1 IN IS CONFIGURED FOR COMMUNICATION CLASS INTERFACE EP2 OUT (BULK OUT) AND EP3 (BULK IN) IN ARE CONFIGURED FOR DATA CLASS INTERFACE THOSE CAN BE CHANGED IN CSL_CDC.H

NOTE: THIS TEST HAS BEEN DEVELOPED TO WORK WITH CHIP VERSIONS C5505 AND C5515. MAKE SURE THAT PROPER CHIP VERSION MACRO IS DEFINED IN THE FILE c55xx_csl\inc\csl_general.h.

TEST PROCEDURE:

TEST RESULT:

============================================================================