VEYE IMAGING Forum
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    • Register
    • Login

    关于zynq开发imx296

    Scheduled Pinned Locked Moved CS MIPI camera
    16 Posts 2 Posters 4.7k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • veye_xummV Offline
      veye_xumm @wangdada
      last edited by

      @wangdada 你好,你不需要做任何初始化序列配置。我们的模组内部有主控芯片。

      Questions will be answered as soon as possible, please be patient.
      如果你使用中文,请直接用中文提问。
      May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

      W 1 Reply Last reply Reply Quote 0
      • W Offline
        wangdada @veye_xumm
        last edited by

        @veye_xumm 你好,我前段时间没有搞这个,刚看到你回复的消息,如果是这样的话,那我想启动摄像头工作的话,通电后,将使能端口使能完后,它就能工作了吗,不需要进行任何对寄存器的初始化的工作吗

        veye_xummV 1 Reply Last reply Reply Quote 0
        • veye_xummV Offline
          veye_xumm @wangdada
          last edited by

          @wangdada 是的。功能性的寄存器可以参考我们wiki的文档进行修改配置即可。

          Questions will be answered as soon as possible, please be patient.
          如果你使用中文,请直接用中文提问。
          May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

          W 1 Reply Last reply Reply Quote 0
          • W Offline
            wangdada @veye_xumm
            last edited by

            @veye_xumm 我接了一个dp接口用来显示,使能完后,不进行任何寄存器的初始化,它显示的画面应该是摄像头这边实时画面吗,因为我现在屏幕那边显示有信号,但是一直是黑屏,如果是显示摄像头的实时画面,那可能是我fpga的硬件搭建问题

            veye_xummV 1 Reply Last reply Reply Quote 0
            • veye_xummV Offline
              veye_xumm @wangdada
              last edited by

              @wangdada 有两个地方是需要做的。

              1. 硬件使能引脚
                https://wiki.veye.cc/index.php/MV-MIPI-IMX296M_Data_Sheet/zh
                pin7 要拉高。这个pin我们板子有内部上拉电阻,你悬空也是可以的。
              2. 寄存器写一个start
                https://wiki.veye.cc/index.php/MV_Series_MIPI_Camera_Register_Map/zh#.E5.9B.BE.E5.83.8F.E9.87.87.E9.9B.86
                0x400寄存器需要写一个开始输出。

              Questions will be answered as soon as possible, please be patient.
              如果你使用中文,请直接用中文提问。
              May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

              W 1 Reply Last reply Reply Quote 0
              • W Offline
                wangdada @veye_xumm
                last edited by

                @veye_xumm 好的,感谢

                1 Reply Last reply Reply Quote 0
                • W Offline
                  wangdada
                  last edited by

                  @veye_xumm 你好,我按照这个方法操作了一下,我用zynq写了0x01给0x0400这个寄存器,根据示波器观察这个数到这个数写进去了,写完器件地址和数据之后都有应答,写的话应该没问题吧,我看写1就行,最后结果没有出图像。
                  在读取的时候我也遇到了问题,因为0x0400是只写的,所以我读了其他几个寄存器,想看看里面的值,但是每次在写完读器件地址,sda和scl的电平就会同时拉低,一段时间后会出现几个字节的全高电平ff,这是什么原因呢,您遇到过吗,如下图所示。给的默认iic从机地址是0x3b,我写的时候是整体左移一位为7位的器件地址,最后一位为读写位,我看了读时序也是对的,先是写器件地址,然后是寄存器地址,最后是读器件地址,后面正常的话这应该是寄存器的值,但sda和scl都拉低了一段时间091402b5-5b18-44dd-9664-489aa25b21cf-5daaa29dc96ae29b7525f08612ab8f7.jpg

                  veye_xummV 1 Reply Last reply Reply Quote 0
                  • veye_xummV Offline
                    veye_xumm @wangdada
                    last edited by

                    @wangdada
                    i2c读取寄存器的时候,中间部分不要发停止位,重新发start信号即可。 另外请注意这个模组的reg addr是2字节的,reg data是4字节的。
                    8e35bbfd-f6e6-4628-9d50-7c04604409ee-image.png

                    Questions will be answered as soon as possible, please be patient.
                    如果你使用中文,请直接用中文提问。
                    May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      wangdada
                      last edited by

                      @veye_xumm 您好,又来麻烦您了,就是正常按照你上次说的那俩个条件,硬件使能引脚拉高为1(用表笔测了为3.3V),寄存器0X0400写一个start信号(我写了0x01,这个数没有问题吧),用示波器读取到了写入的数据,也有应答,这个启动条件是没有问题吧。因为显示屏一直不出图像,所以我观察了MIPI_L0_N,MIPI_L0_P和MIPI_CK_N这几个mipi引脚,波形信号都是这个,就最下面的频率有变化,这是什么原因呢,与示波器有关系吗?还是摄像头没有工作呢?
                      下图是MIPI_CK_N引脚的波形
                      1.jpg

                      veye_xummV 1 Reply Last reply Reply Quote 0
                      • veye_xummV Offline
                        veye_xumm @wangdada
                        last edited by veye_xumm

                        @wangdada 这感觉好像start写没成功,然后MIPI输出于复位状态呢。
                        建议你读取一下version,来确认i2c已经成功调通。
                        请注意这个模组的reg addr是2字节的,reg data是4字节的。

                        Questions will be answered as soon as possible, please be patient.
                        如果你使用中文,请直接用中文提问。
                        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                        W 1 Reply Last reply Reply Quote 0
                        • W Offline
                          wangdada @veye_xumm
                          last edited by

                          @veye_xumm 您好,我想问一下这的iic没有加上下拉电阻吧

                          veye_xummV 1 Reply Last reply Reply Quote 0
                          • veye_xummV Offline
                            veye_xumm @wangdada
                            last edited by

                            @wangdada 摄像机这端没有上拉电阻。应该是主控板上有上拉电阻才对。

                            Questions will be answered as soon as possible, please be patient.
                            如果你使用中文,请直接用中文提问。
                            May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                            W 2 Replies Last reply Reply Quote 0
                            • W Offline
                              wangdada @veye_xumm
                              last edited by

                              @veye_xumm 嗯嗯,是的,我怕这边也有,会产生影响

                              1 Reply Last reply Reply Quote 0
                              • W Offline
                                wangdada @veye_xumm
                                last edited by

                                @veye_xumm 您好,我想问一下mono10和raw10这俩个图像格式可以通用吗,我用的一个ip支持raw10,我看咱们imx296输出格式是mono10,这个有影响吗?

                                veye_xummV 1 Reply Last reply Reply Quote 0
                                • veye_xummV Offline
                                  veye_xumm @wangdada
                                  last edited by

                                  @wangdada 这两个是一样的,只是叫法不同而已。

                                  Questions will be answered as soon as possible, please be patient.
                                  如果你使用中文,请直接用中文提问。
                                  May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                                  1 Reply Last reply Reply Quote 0

                                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                  With your input, this post could be even better 💗

                                  Register Login
                                  • First post
                                    Last post