D8M resolution&frame rate setting

From Terasic Wiki

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
'''How to modify D8M resolution'''
'''How to modify D8M resolution'''
-
Modify camera registers:
 
-
In the demo, we use camera auto size figure  to easily modify the camera resolution: just modify 0x3808~0x380B four registers.
+
Modify camera registers:
 +
[[File:D8M_register_1.png]]
 +
In the demo, we use camera '''auto size''' figure  to easily modify the camera resolution: just modify 0x3808~0x380B four registers.
  //For example: 640x480
  //For example: 640x480
-
register
+
[[File:D8M_register_2.png]]
-
value
+
-
description
+
-
0x3808
+
-
0x02
+
-
X output size H
+
-
0x3809
+
-
0x80
+
-
X output size L
+
-
0x380a
+
-
0x01
+
-
Y output size H
+
-
0x380b
+
-
0xE0
+
-
Y output size L
+
-
'''How to modify D8M frame rate'''
 
 +
 +
'''How to modify D8M frame rate'''
 +
 +
[[File:D8M_frame_rate_1.png]]
In this demo we configure camera SCLK to 150MHz
In this demo we configure camera SCLK to 150MHz
Line 33: Line 23:
// 60 fps (combined with pll settings)
// 60 fps (combined with pll settings)
-
register
+
 
-
value
+
[[File:D8M_frame_rate_2.png]]
-
description
+
 
-
0x380c
+
-
0x12
+
-
HTS H
+
-
0x380d
+
-
0x00
+
-
HTS L
+
-
0x380e
+
-
0x02
+
-
VTS H
+
-
0x380f
+
-
0x1E
+
-
VTS L
+
fps = 150,000,000/0x1200/0x021E
fps = 150,000,000/0x1200/0x021E
       = 150,000,000/4608/542
       = 150,000,000/4608/542

Revision as of 17:46, 18 April 2017

How to modify D8M resolution

Modify camera registers: D8M register 1.png In the demo, we use camera auto size figure to easily modify the camera resolution: just modify 0x3808~0x380B four registers.

//For example: 640x480

D8M register 2.png



How to modify D8M frame rate

D8M frame rate 1.png In this demo we configure camera SCLK to 150MHz

HTS: Horizontal total size

VTS: Vertical total  size 
fps =  150M / HTS/VTS

Take setting 640x480@60fps as example:

// 60 fps (combined with pll settings)

D8M frame rate 2.png

fps = 150,000,000/0x1200/0x021E

     = 150,000,000/4608/542
     ≈  60

Note: Horizontal blanking = HTS - Horizontal output width

As the camera mipi lvds data is processed by MIPI parallel Bridge IC, it will be limited by mipi parallel internal Linebuffer length, then, customer can try to set HTS value as larger as possible ( on condition that VTS value is still meet your requirement) to make a longer H blanking to reduce peak bandwidth requirements.


back

Personal tools