Cypress EZ-USB CX3 Скачать руководство пользователя страница 29

 

Cypress EZ-USB CX3  

EZ-USB® CX3 Technical Reference Manual, Doc. No. 001-91492 Rev. *B 

29 

CX3_CSI_SENSOR_SIG_VAL 

register  in  its  default  state  (0x0000)  thereby  setting  the  MIPI  XRESET  and 

XSHUTDOWN signals as Drive 0. If either of these signals, needs to be in Drive 1 state for sensor operation, 
it  needs  to  be  explicitly  set  to  Drive  1  state  using 

CyU3PMipicsiSetSensorControl()

 

after  calling 

CyU3PMipicsiReset

(CY_U3P_CSI_HARD_RST)

.  

A Soft reset does not change the state of the XRESET and XSHUTDOWN signals. A soft reset sets the 

RESET

 

bit of th

CX3_SYSTEM_CTRL 

register to 1, waits for 5 timer ticks on the CX3 and then clears the 

RESET

 bit 

to 0 to resume normal operation. 

On successful execution this function returns CY_U3P_SUCCESS value to the calling function. 

1.11.4   

CyU3PCx3DeviceReset() 

 

void CyU3PCx3DeviceReset (CyBool_t isWarmReset,  

CyBool_t sensorResetHigh) 

This function is similar to the 

CyU3PDeviceReset ()

 API used for FX3/FX3S devices. It uses the 

isWarmReset

 

parameter to determine if the device is going in for a warm reset or a cold reset. 

In addition to resetting the CX3 device, this function also drives the MIPI XRESET signal to reset the Image 
Sensor before the CX3 device is reset, by internally calling 

CyU3PMipicsiSetSensorControl() 

and setting the 

CY_U3P_CSI_IO_XRES

 signal to high or low based on the value provided in 

sensorResetHigh

.  

This function does not return. 

1.11.5   

CyU3PMipicsiSleep() 

 

CyU3PReturnStatus_t CyU3PMipicsiSleep (void) 

This function is used to disable the PLL clocks on the MIPI CSI-2 block and place it in low-power sleep. No 
data transfers from the Image Sensor to the CX3 will occur while the block is in low power sleep mode.  

This API sets the 

SLEEP

 bit of the 

CX3_SYSTEM_CTRL 

register of the MIPI CSI-2 block to 1. 

On successfully placing the block to sleep this function returns CY_U3P_SUCCESS. 

1.11.6   

CyU3PMipicsiWakeup() 

 

CyU3PReturnStatus_t CyU3PMipicsiWakeup (void) 

This function is used enable the clocks on the MIPI CSI-2 block to take it from Low power sleep to Active. 

This API clears the 

SLEEP

 bit of th

CX3_SYSTEM_CTRL 

register of the MIPI CSI-2 block to 0. 

On successful execution this function returns CY_U3P_SUCCESS. 

1.11.7   

CyU3PMipicsiSetSensorControl() 

 

CyU3PReturnStatus_t CyU3PMipicsiSetSensorControl (CyU3PMipicsiSensorIo_t io,  

CyBool_t value) 

This function is used to drive the XRES and XSHUTDOWN signals from the CX3 to Image sensor. The function 
allows for the signals to be driven high or low.  

The  function  can  drive  either  one  of  the  two  signals  or  both  signals  (both  driven  to  the  same  value) 
simultaneously.  To  set  both  signals  to  the  same  value  use  the  mask 

(CY_U3P_CSI_IO_XRES  | 

CY_U3P_CSI_IO_XSHUTDOWN)

 as value for 

io

. To set the two signals to separate values multiple calls to 

this function are required (once for each signal).  

This API sets the appropriate bits of the 

CX3_CSI_SENSOR_SIG_VAL

 

to 1 or 0 to drive the corresponding 

MIPI signal to the sensor high or low.  

Содержание EZ-USB CX3

Страница 1: ...EZ USB CX3 Technical Reference Manual Supplement to the EZ USB FX3 Technical Reference Manual Doc No 001 91492 Rev B...

Страница 2: ...0 fps or 720p at 60 fps CX3 supports a wide variety of image formats including RAW8 10 12 14 YUV422 RGB888 666 565 and user defined 8 bit Figure 1 EZ USB CX3 Device Based on the proven EZ USB FX3 plat...

Страница 3: ...S FS LS OTG Host SS Peripheral HS FS Peripheral Charger Detection EZ Dtect USB Interface ARM926EJ S JTAG System RAM I2 C_SDA I2 C_SCL D D SSTX SSTX SSRX SSRX OTG_ID FX3 BLOCK DIAGRAM Memory Controller...

Страница 4: ...PI Master Yes Yes UART Yes Yes I2 C Master Controller Yes Yes U Port Support USB 3 0 Peripheral Yes Yes USB 2 0 Peripheral Yes Yes 32 Physical endpoints Yes Yes Charger Detection 1 1 Support EZ Dtect...

Страница 5: ...1 Revision 0 04 April 2 2009 o Supports up to four data lanes each lane supports up to 1 Gbps o Camera Control Interface over I2 C support for image sensor configuration Supports the following video d...

Страница 6: ...2 C bus 2 The CX3 MIPI CSI 2 receiver block reads the data from the image sensor de serializes it merges lanes de packetizes it and then sends it as a parallel input to the fixed function GPIF II bloc...

Страница 7: ...CSI 2 block CyU3PMipicsiQueryIntfParams API to query settings from the MIPI CSI 2 block CyU3PMipicsiSleep API to place the MIPI CSI 2 block in the low power sleep mode CyU3PMipicsiWakeup API to wake t...

Страница 8: ...s up to 1 Gbps per lane The MIPI CSI 2 receiver is connected to a fixed function GPIF II controller via an 8 16 or 24 bit data bus which can be clocked up to 100 MHz The maximum bandwidth that can be...

Страница 9: ...2 b0 RAW 13 0 RGB888 CY_U3P_CSI_DF_RGB888 RGB 888 format 24 bits per pixel 0x24 24 bit R 7 0 G 7 0 B 7 0 RGB666 Mode 0 CY_U3P_CSI_DF_RGB666_0 RGB 666 format 24 bits per pixel 0x23 24 bit 2 b0 R 5 0 2...

Страница 10: ...ed is larger than the width of the output stream for example if a 24 bit GPIF II bus width is used for the CY_U3P_CSI_DF_YUV422_8_1 type the upper bits on the GPIF II are padded with 0s For stream for...

Страница 11: ...n the following sections 1 7 1 Reference Clock REFCLK This is the reference clock input provided to the MIPI CSI 2 block This input clock should be between 6 and 40 MHz 1 7 2 PLL Clock PLL_CLK The PLL...

Страница 12: ...enerated by dividing the PLL_CLK by a value of 2 4 or 8 The maximum value for this clock is 100 MHz This clock frequency is calculated automatically by the MIPI Receiver configuration tool 1 7 5 Image...

Страница 13: ...on the MIPI CSI 2 block are stopped and there will be no data transfer All register settings are retained in this state Soft Reset This state puts the MIPI CSI 2 block into reset mode where all clock...

Страница 14: ...ffer in thread 0 Intr CPU Frame end full buffer in thread 1 Intr CPU Frame end partial buffer in thread 0 Intr CPU Frame end partial buffer in thread 1 Intr CPU FV FV LV LV DATA Limit LV ADDR Limit LV...

Страница 15: ...Name Description 0x0002 CX3_SYSTEM_CTRL System Control Register 0x0004 CX3_CONFIG_CTRL Configuration Control Register 0x0006 CX3_FIFO_CTRL FIFO Control register 0x0008 CX3_DATA_FMT Data Format Control...

Страница 16: ...et APIs BIT 15 14 13 12 11 10 9 8 NAME RESERVED BIT 7 6 5 4 3 2 1 0 NAME RESERVED SLEEP RESET Register Field Bit Description RESERVED 15 2 RESERVED Firmware must preserve their settings by reading the...

Страница 17: ...DATA_FMT register The combination of DATA MODE and the DATA FORMAT is used to select the output stream as defined in Table 3 The DATA FORMAT setting determines the output data format while the DATA MO...

Страница 18: ...ransferring data to GPIF II interface This register is set by the CyU3PMipicsiSetIntfParams API and queried using the CyU3PMipicsiQueryIntfParams API BIT 15 14 13 12 11 10 9 8 NAME RESERVED FIFO LEVEL...

Страница 19: ...Selection Selects the output data format 4 b0000 RAW8 4 b0001 RAW10 4 b0010 RAW12 4 b0011 RGB888 4 b0100 RGB666 4 b0101 RGB565 4 b0110 YUV422 8 bit 4 b0111 RESERVED 4 b1000 RAW14 4 b1001 YUV422 10 bi...

Страница 20: ...s register is set by the CyU3PMipicsiSetIntfParams API and queried using the CyU3PMipicsiQueryIntfParams API BIT 15 14 13 12 11 10 9 8 NAME MCLK HIGH BIT 7 6 5 4 3 2 1 0 NAME MCLK LOW Register field B...

Страница 21: ...rve their settings by reading them changing non reserved bits and re writing them XSHUTDOWN ENABLE 2 Enable MIPI CSI 2 XSHUTDOWN Signal 0 Enables the output for the MIPI CSI 2 XSHUTDOWN signal 1 Disab...

Страница 22: ...ter Field Bit Description RESERVED 15 3 RESERVED Firmware must preserve their settings by reading them changing non reserved bits and re writing them XSHUTDOWN OUTPUT 2 Drive MIPI CSI 2 XSHUTDOWN Sign...

Страница 23: ...is set by the CyU3PMipicsiSetIntfParams API and queried using the CyU3PMipicsiQueryIntfParams API BIT 15 14 13 12 11 10 9 8 NAME PLL PRD RESERVED PLL FBD 8 BIT 7 6 5 4 3 2 1 0 NAME PLL FBD 7 0 Registe...

Страница 24: ...ust preserve their settings by reading them changing non reserved bits and re writing them PLL FRS 11 10 Frequency Range Selection Determines the PLL frequency range See Section 1 7 2 for details on t...

Страница 25: ...Divider for CSI RX LP HS Transition Clock Divides down from the PLL clock to generate this clock See Section 1 7 3 for details 2 b00 PLL CLOCK 8 2 b01 PLL CLOCK 4 2 b10 PLL CLOCK 2 2 b00 RESERVED This...

Страница 26: ...fParams API BIT 15 14 13 12 11 10 9 8 NAME BYTE COUNT 15 8 TYPE R W BIT 7 6 5 4 3 2 1 0 NAME BYTE COUNT 7 0 TYPE R W Register Field Bit Description BYTE COUNT 15 0 Total number of bytes per Line Numbe...

Страница 27: ...C TERM RESERVED BIT 7 6 5 4 3 2 1 0 NAME TD TERM THS SETTLE Register Field Bit Description TC TERM 15 TC TERM Selection Set to 1 for normal operation 0 is not supported RESERVED 14 8 RESERVED Firmware...

Страница 28: ...egister in its default state 0x0000 thereby setting the MIPI XRESET and XSHUTDOWN signals to Drive LOW If either of these signals needs to be in Drive HIGH state for sensor operation it needs to be ex...

Страница 29: ...tion does not return 1 11 5 CyU3PMipicsiSleep CyU3PReturnStatus_t CyU3PMipicsiSleep void This function is used to disable the PLL clocks on the MIPI CSI 2 block and place it in low power sleep No data...

Страница 30: ...is function sets the following MIPI CSI 2 block registers with values from the CyU3PMipicsiCfg_t structure passed to it as shown in Table 6 Table 6 Parameters Used for Configuring MIPI CSI 2 Block Reg...

Страница 31: ...should be initialized prior to being passed to this function 1 11 12 CyU3PMipicsiGpifLoad CyU3PReturnStatus_t CyU3PMipicsiGpifLoad CyU3PMipicsiBusWidth_t busWidth uint32 t bufferSize As described in S...

Страница 32: ...3 including Datasheets Application notes and the EZ USB FX3 Technical Reference Manual TRM can be found at http www cypress com fx3 The EZ USB FX3 SDK software download and documentation provided as p...

Страница 33: ...tion 1 9 of this TRM supplement More details can be found in the General Programmable Interface II GPIF II chapter of the EZ USB FX3 TRM I2 C The I2 C bus protocol created by Philips Semiconductor sta...

Страница 34: ...nt to be changed by the user When writing to a register with RESERVED bits you should ensure that the values are not changed during a Write preferably by doing a Read before the Write and maintaining...

Страница 35: ...NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE No computing device can be absolutely secure Therefore despite security measures implemented in Cypress h...

Отзывы: