Design Guide

MIPI CSI-2 Products
Example of Sub-Link Usage

SC:ECopyright © 2022 THine Electronics, Inc. All Rights Reserved.

1

T h r o u g h G PIO / R e g i s te r GP IO

 Controlling and monitoring remote image sensors from a local SoC are actualized under THCV24xA's GPIO
and/or 2-wire serial interface control.
 Through GPIO
- Local GPIO input is continuously reflected to remote GPIO output.
Image Sensor

THCV241ARESET in

GPIO0PWDN in

GPIO1(output1)

GPIO2(output2)

GPIO3( Sub-Link )THCV242A

SoCGPIO0Upstream(Through GPIO)

GPIO1
GPIO2Downstream(Through GPIO)

GPIO3

2-wire serial (SDA/SCL)

2-wire serial (SDA/SCL) Register GPIO
- Remote GPIO input monitoring and output control are available under register control.
Image Sensor

THCV241ARESET in

GPIO0PWDN in

GPIO1(output1)

GPIO2(output2)

GPIO3

2-wire serial (SDA/SCL)

SC:ERegister( Sub-Link )Up &Downstream(Register GPIO)

THCV242A

SoC

Register2-wire serial (SDA/SCL)
Copyright © 2022 THine Electronics, Inc. All Rights Reserved.

2

1 - C a m era U p s t r ea m
Case.1 Through GPIO from GPIO0-1 of THCV242A to GPIO0-1 of THCV241A
Image Sensor

THCV241ARESET in

GPIO0PWDN in

GPIO1(*1) GPIO2(*1) GPIO3( Sub-Link Lane0 )Upstream(Through GPIO)

THCV242A (Sub-Link Master)

SoC
GPIO0
GPIO1

GPIO2 (*1)
GPIO3 (*1)

2-wire serial (SDA/SCL)GPIO4 (*1)
GPIO5 (*1)
GPIO6 (*1)
GPIO7 (*1)

2-wire serial (SDA/SCL)(*1) GPIO2-3 of THCV241A and GPIO2-7 of THCV242A can be used as Register GPIO

SC:E

Copyright © 2022 THine Electronics, Inc. All Rights Reserved.

3

1 - C a m era D ow n str eam
Case.2 Through GPIO from GPIO2-3 of THCV241A to GPIO2-3 of THCV242A
Image Sensor

THCV241A( Sub-Link Lane0 )THCV242A (Sub-Link Master)(*1) GPIO0(*1) GPIO1(output1)

GPIO2(output2)

GPIO3

SoC
GPIO0 (*1)
GPIO1 (*1)

Downstream(Through GPIO)
GPIO2

2-wire serial (SDA/SCL)

GPIO3

GPIO4 (*1)
GPIO5 (*1)
GPIO6 (*1)
GPIO7 (*1)

2-wire serial (SDA/SCL)(*1) GPIO2-3 of THCV241A and GPIO0-1,4-7 of THCV242A can be used as Register GPIO

SC:ECopyright © 2022 THine Electronics, Inc. All Rights Reserved.

41 - C a m era B i d i r e cti o na l Si g n a lCase.3 Combination of Case.1 and Case.2
Image Sensor

THCV241ARESET in

GPIO0PWDN in

GPIO1(output1)

GPIO2(output2)

GPIO3( Sub-Link Lane0 )Upstream(Through GPIO)

THCV242A (Sub-Link Master)

SoC
GPIO0
GPIO1

Downstream(Through GPIO)
GPIO2

2-wire serial (SDA/SCL)

GPIO3

GPIO4 (*1)
GPIO5 (*1)
GPIO6 (*1)
GPIO7 (*1)

2-wire serial (SDA/SCL)(*1) GPIO4-7 of THCV242A can be used as Register GPIO

SC:ECopyright © 2022 THine Electronics, Inc. All Rights Reserved.

5

1 - C a m era B i d i r e cti o na l S ig n a lCase.4 Register GPIO (All GPIOs could be both Input and Output)
Image Sensor

THCV241ARESET in

GPIO0PWDN in

GPIO1(output1)

GPIO2(output2)

GPIO3( Sub-Link Lane0 )THCV242A (Sub-Link Master)
RegisterRegister

Up &Downstream(Register GPIO)SoC
GPIO0 (*1)
GPIO1 (*1)

GPIO2 (*1)
GPIO3 (*1)

2-wire serial (SDA/SCL)GPIO4 (*1)
GPIO5 (*1)
GPIO6 (*1)
GPIO7 (*1)

2-wire serial (SDA/SCL)(*1) GPIO0-7 of THCV242A can be used as Register GPIO

SC:ECopyright © 2022 THine Electronics, Inc. All Rights Reserved.

6

2 - C a m era U p s t r ea m
Case.5 Through GPIO from GPIO0-1 of THCV242A to GPIO0-1 of THCV241A (Collective Control)
Image Sensor

THCV241ARESET in

GPIO0PWDN in

GPIO1(*1) GPIO2(*1) GPIO3( Sub-Link Lane0 )Upstream(Through GPIO)

THCV241ARESET in

GPIO0PWDN in

GPIO1(*1) GPIO2(*1) GPIO3SoC
GPIO0
GPIO1

GPIO2 (*1)
GPIO3 (*1)

2-wire serial (SDA/SCL)

Image Sensor

THCV242A (Sub-Link Master)( Sub-Link Lane1 )Upstream(Through GPIO)

GPIO4 (*1)
GPIO5 (*1)
GPIO6 (*1)
GPIO7 (*1)

2-wire serial (SDA/SCL)

2-wire serial (SDA/SCL)(*1) GPIO2-3 of THCV241As and GPIO2-7 of THCV242A can be used as Register GPIO

SC:E

Copyright © 2022 THine Electronics, Inc. All Rights Reserved.

72 - C a m era U p s t r ea m
Case.6 Through GPIO from GPIO0-1 of THCV242A to GPIO0-1 of THCV241A (Individual Control)
Image Sensor

THCV241ARESET in

GPIO0PWDN in

GPIO1(*1) GPIO2(*1) GPIO3( Sub-Link Lane0 )Upstream(Through GPIO)

THCV242A (Sub-Link Master)

SoC
GPIO0
GPIO1

GPIO2
2-wire serial (SDA/SCL)

Image Sensor

GPIO3

THCV241ARESET in

GPIO0PWDN in

GPIO1(*1) GPIO2(*1) GPIO3( Sub-Link Lane1 )Upstream(Through GPIO)

GPIO4 (*1)
GPIO5 (*1)
GPIO6 (*1)
GPIO7 (*1)

2-wire serial (SDA/SCL)

2-wire serial (SDA/SCL)(*1) GPIO2-3 of THCV241As and GPIO2-7 of THCV242A can be used as Register GPIO

SC:ECopyright © 2022 THine Electronics, Inc. All Rights Reserved.

8

2 - C a m era D ow n str eam
Case.7 Through GPIO from GPIO2-3 of THCV241A to GPIO2-3 of THCV242A (Outputting Selected Signal)
Image Sensor

THCV241A( Sub-Link Lane0 )THCV242A (Sub-Link Master)(*1) GPIO0(*1) GPIO1(output1)

GPIO2(output2)

GPIO3SoCGPIO0 (*1)
GPIO1 (*1)

Downstream(Through GPIO)
GPIO2
Selector

2-wire serial (SDA/SCL)

Image Sensor

THCV241A( Sub-Link Lane1 )GPIO2(output2)

GPIO3Selector(GPIO3)(*1) GPIO0(*1) GPIO1(output1)(GPIO2)

GPIO3

Downstream(Through GPIO)

2-wire serial (SDA/SCL)GPIO4 (*1)
GPIO5 (*1)
GPIO6 (*1)
GPIO7 (*1)

2-wire serial (SDA/SCL)(*1) GPIO0-1 of THCV241As and GPIO0-1,4-7 of THCV242A can be used as Register GPIO

SC:E

Copyright © 2022 THine Electronics, Inc. All Rights Reserved.

92 - C a m era B i d i r e cti o na l Si g n a lCase.8 Combination of Case.5 and Case.7
Image Sensor

THCV241ARESET in

GPIO0PWDN in

GPIO1(output1)

GPIO2(output2)

GPIO3( Sub-Link Lane0 )THCV242A (Sub-Link Master)

SoC
GPIO0

Upstream(Through GPIO)

GPIO1

Downstream(Through GPIO)
GPIO2
Selector

2-wire serial (SDA/SCL)

Image Sensor

THCV241ARESET in

GPIO0PWDN in

GPIO1(output1)

GPIO2(output2)

GPIO3( Sub-Link Lane1 )(GPIO2)

GPIO3Selector(GPIO3)

Upstream(Through GPIO)

GPIO4 (*1)
GPIO5 (*1)

Downstream(Through GPIO)GPIO6 (*1)
GPIO7 (*1)

2-wire serial (SDA/SCL)

2-wire serial (SDA/SCL)(*1) GPIO4-7 of THCV242A can be used as Register GPIO

SC:ECopyright © 2022 THine Electronics, Inc. All Rights Reserved.

10

2 - C a m era B i d i r e cti o na l Si g n a lCase.9 Combination of Case.6 and Case.7 (Need Switching I/O of SoC)
Image Sensor

THCV241ARESET in

GPIO0PWDN in

GPIO1(output1)

GPIO2(output2)

GPIO3( Sub-Link Lane0 )THCV242A (Sub-Link Master)SoC
GPIO0Upstream(Through GPIO)

GPIO1

Downstream(Through GPIO)
GPIO2

THCV241ARESET in

GPIO0PWDN in

GPIO1(output1)

GPIO2(output2)

GPIO3( Sub-Link Lane1 )(GPIO2)

Selector(GPIO3)

Selector

Image Sensor

GPIO3 (*2)

Selector

2-wire serial (SDA/SCL)

Upstream(Through GPIO)

GPIO4 (*1)
GPIO5 (*1)

Downstream(Through GPIO)GPIO6 (*1)
GPIO7 (*1)

2-wire serial (SDA/SCL)

Needswitching I/O

2-wire serial (SDA/SCL)(*1) GPIO4-7 of THCV242A can be used as Register GPIO(*2) Downstream signal is outputted only from GPIO2 and GPIO3 so I/O should be switched.

SC:ECopyright © 2022 THine Electronics, Inc. All Rights Reserved.

11

2 - C a m era B i d i r e cti o na l Si g n a lCase.10 Combination Register GPIO for Upstream Signal and Through GPIO for Downstream Signal
Image Sensor

THCV241ARESET in

GPIO0PWDN in

GPIO1(output1)

GPIO2(output2)

GPIO3Register( Sub-Link Lane0 )Upstream(Register GPIO)

THCV242A (Sub-Link Master)SoC
GPIO0 (*1)
GPIO1 (*1)

RegisterDownstream(Through GPIO)
GPIO2
Selector

2-wire serial (SDA/SCL)

Image Sensor
RESET in

GPIO0PWDN in

GPIO1(output1)

GPIO2(output2)

GPIO3(GPIO2)

GPIO3Selector

THCV241A( Sub-Link Lane1 )RegisterUpstream(Register GPIO)

GPIO4 (*1)
GPIO5 (*1)

Downstream(Through GPIO)GPIO6 (*1)
GPIO7 (*1)

(GPIO3)

2-wire serial (SDA/SCL)

2-wire serial (SDA/SCL)(*1) GPIO0-1,4-7 of THCV242A can be used as Register GPIO

SC:E

Copyright © 2022 THine Electronics, Inc. All Rights Reserved.

122 - C a m era B i d i r e cti o na l Si g n a lCase.11 Register GPIO (All GPIOs could be both Input and Output)
Image Sensor

THCV241ARESET in

GPIO0PWDN in

GPIO1(output1)

GPIO2(output2)

GPIO3( Sub-Link Lane0 )Register
Register

Up &Downstream(Register GPIO)

THCV241ARESET in

GPIO0PWDN in

GPIO1(output1)

GPIO2(output2)

GPIO3

SoC
GPIO0 (*1)
GPIO1 (*1)

GPIO2 (*1)
GPIO3 (*1)

2-wire serial (SDA/SCL)

Image Sensor

THCV242A (Sub-Link Master)

Register( Sub-Link Lane1 )Up &Downstream(Register GPIO)

2-wire serial (SDA/SCL)GPIO4 (*1)
GPIO5 (*1)
GPIO6 (*1)
GPIO7 (*1)

2-wire serial (SDA/SCL)(*1) GPIO0-7 of THCV242A can be used as Register GPIO

SC:E

Copyright © 2022 THine Electronics, Inc. All Rights Reserved.

13

2 - C a m era B i d i r e cti o na l Si g n a lCase.12 Synchronizing 2 Cameras by using EXTSYNC signal from SoC
Image Sensor

THCV241AVSYNC_in

GPIO0

RESET in

GPIO1(output1)

GPIO2(output2)

GPIO3( Sub-Link Lane0 )THCV242A (Sub-Link Master)

EXTSYNC

SoC

GPIO0Upstream(Through GPIO)

GPIO1

Downstream(Through GPIO)
GPIO2
Selector

2-wire serial (SDA/SCL)

Image Sensor

THCV241AVSYNC_in

GPIO0

RESET in

GPIO1

(output1)

GPIO2(output2)

GPIO3( Sub-Link Lane1 )(GPIO2)

GPIO3
Selector(GPIO3)

Upstream(Through GPIO)

GPIO4 (*1)
GPIO5 (*1)

Downstream(Through GPIO)GPIO6 (*1)
GPIO7 (*1)

2-wire serial (SDA/SCL)

2-wire serial (SDA/SCL)(*1) GPIO4-7 of THCV242A can be used as Register GPIO

SC:E

Copyright © 2022 THine Electronics, Inc. All Rights Reserved.

14

2 - C a m era B i d i r e cti o na l Si g n a lCase.13 Synchronizing 2 Cameras and SoC by Using EXTSYNC Signal Generated in THCV242A
Image Sensor

THCV241AVSYNC_in

GPIO0

RESET in

GPIO1(output1)

GPIO2(output2)

GPIO3( Sub-Link Lane0 )THCV242A (Sub-Link Master)

EXTSYNC

SoC

GPIO0

Upstream(Through GPIO)

GPIO1

Downstream(Through GPIO)
GPIO2Image Sensor

THCV241AVSYNC_in

GPIO0

RESET in

GPIO1(output1)

GPIO2(output2)

GPIO3( Sub-Link Lane1 )Sync
Generator

2-wire serial (SDA/SCL)

SelectorRegister(GPIO2)

GPIO3
Selector(GPIO3)

Upstream(Through GPIO)

GPIO4 (*1)
GPIO5 (*1)

Downstream(Through GPIO)GPIO6 (*1)
GPIO7 (*1)

2-wire serial (SDA/SCL)

2-wire serial (SDA/SCL)(*1) GPIO4-7 of THCV242A can be used as Register GPIO

SC:E

Copyright © 2022 THine Electronics, Inc. All Rights Reserved.

15

D is c l a im er

 The product specifications described in this material are subject to change without prior notice.
 The circuit diagrams described in this material are examples of the application which may not always apply
to the customer's design. THine Electronics, Inc. (“THine”) is not responsible for possible errors and omissions
in this material. Please note even if errors or omissions should be found in this material, THine may not beable to correct them immediately.
 This document only shows some of typical cases of the related products’ data sheets and application notes.
If any discrepancies occur between the related products’ datasheets / register maps / application notes andthis document, such datasheets / register maps / application notes shall supersede and show the right
direction.

SC:ECopyright © 2022 THine Electronics, Inc. All Rights Reserved.

16