IMX6DL SCCB group write

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX6DL SCCB group write

794件の閲覧回数
ifzhao
Contributor I

Dear all,

When I was trying to implement the AFC(auto focus control) , I'm really struck by the amount of registers to set, which reaches up to 4000. Then I set them one by one and it works. However the setting process will take about 2~3 seconds, that's not acceptable to the end users. Can anyone tell me how to implement the SCCB group write on IMX6DL platform?

Thanks!

ラベル(2)
タグ(2)
0 件の賞賛
返信
2 返答(返信)

687件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi If

OV datasheets in sect.SCCB interface describes group write as follows:

The SCCB will enter group write mode after writing to register 0x3212 with a
valid group ID. The subsequent registers will be held to the buffer specified by
the group_id instead of writing to the registers..Setting group_hold_end to 1
will exit the group write mode. After that, setting both group_launch and
group_launch_en to 1 will write the buffered values to the real registers.

One can check documentation for group write examples.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

687件の閲覧回数
ifzhao
Contributor I

Dear Igor,

It's very kind of you to give an advice. However, we both misunderstand the "group write". It means on the camera side, after it receive data through i2c port, it could decide to write to register immediately or do it soon later. The "group write" enable the camera MCU to buffer the data and just write them into registers in a frame boundary. This do not make much difference in time saving. Because, still, we need to transfer all the registers' values by i2c to camera, which is the mostly time-costly part in this process.

Finally, I decided to write the registers in the probing stage and it works.

Thanks!

0 件の賞賛
返信