AnsweredAssumed Answered

TP2825 1080P25摄像头显示黑白

Question asked by Algo Yu on Nov 30, 2018

采用TP2825,外接1080p25摄像头,设备显示的颜色是黑白的,不是彩色的,请问一般是哪里设置不对?

全部寄存器配置如下:

tp2825_write_register(0x00, 0x11);
tp2825_write_register(0x01, 0x7E);
tp2825_write_register(0x02, 0xC8);
tp2825_write_register(0x03, 0x03);//TVI V2.0 - 0x0B, TVI V1.0 - 0x03
tp2825_write_register(0x04, 0x00);
tp2825_write_register(0x05, 0x00);
tp2825_write_register(0x06, 0x32);
tp2825_write_register(0x07, 0xC0);//----
tp2825_write_register(0x08, 0x00);
tp2825_write_register(0x09, 0x24);
tp2825_write_register(0x0A, 0x48);
tp2825_write_register(0x0B, 0xC0);
tp2825_write_register(0x0C, 0x53);
tp2825_write_register(0x0D, 0x11);
tp2825_write_register(0x0E, 0x00);
tp2825_write_register(0x0F, 0x00);

tp2825_write_register(0x10, 0xf0);
tp2825_write_register(0x11, 0x50);
tp2825_write_register(0x12, 0x60);
tp2825_write_register(0x13, 0x00);//STOP
tp2825_write_register(0x14, 0x08);
tp2825_write_register(0x15, 0x03);//
tp2825_write_register(0x16, 0xD3);
tp2825_write_register(0x17, 0x80);
tp2825_write_register(0x18, 0x29);
tp2825_write_register(0x19, 0x38);
tp2825_write_register(0x1A, 0x48);
tp2825_write_register(0x1B, 0x00);
tp2825_write_register(0x1C, 0x0A);
tp2825_write_register(0x1D, 0x50);
tp2825_write_register(0x1E, 0x80);
tp2825_write_register(0x1F, 0x80);

tp2825_write_register(0x20, 0xA0);
tp2825_write_register(0x21, 0x86);
tp2825_write_register(0x22, 0x38);
tp2825_write_register(0x23, 0x3C);
tp2825_write_register(0x24, 0x56);
tp2825_write_register(0x25, 0xFF);
tp2825_write_register(0x26, 0x02);
tp2825_write_register(0x27, 0x5a);
tp2825_write_register(0x28, 0x04);
tp2825_write_register(0x29, 0x48);
tp2825_write_register(0x2A, 0x30); //0x3C(内部测试模式)
tp2825_write_register(0x2B, 0x60);
tp2825_write_register(0x2C, 0x1A);
tp2825_write_register(0x2D, 0x30);
tp2825_write_register(0x2E, 0x70);
tp2825_write_register(0x2F, 0x00);

tp2825_write_register(0x30, 0x48);
tp2825_write_register(0x31, 0xbb);
tp2825_write_register(0x32, 0x2e);
tp2825_write_register(0x33, 0x90);
tp2825_write_register(0x34, 0x00);
tp2825_write_register(0x35, 0x05);//TVI V1 - 05, TVI V2 - 25
tp2825_write_register(0x36, 0xDC);
tp2825_write_register(0x37, 0x00);
tp2825_write_register(0x38, 0x40);
tp2825_write_register(0x39, 0x8C);//TVI V1 - 8c, TVI V2 - 88
tp2825_write_register(0x3A, 0x00);
tp2825_write_register(0x3B, 0x03);
tp2825_write_register(0x3C, 0x00);
tp2825_write_register(0x3D, 0x60);
tp2825_write_register(0x3E, 0x00);
tp2825_write_register(0x3F, 0x00);

tp2825_write_register(0x40, 0x00);
tp2825_write_register(0x41, 0x01); //选择tp2825的输入源通道
tp2825_write_register(0x42, 0x00);
tp2825_write_register(0x43, 0x12);
tp2825_write_register(0x44, 0x07);
tp2825_write_register(0x45, 0x49);
tp2825_write_register(0x46, 0x00);
tp2825_write_register(0x47, 0x00);
tp2825_write_register(0x48, 0x00);
tp2825_write_register(0x49, 0x00);
tp2825_write_register(0x4A, 0x00);
tp2825_write_register(0x4B, 0x00);
tp2825_write_register(0x4C, 0x00);
tp2825_write_register(0x4D, 0x03);
tp2825_write_register(0x4E, 0x01);
tp2825_write_register(0x4F, 0x00);

tp2825_write_register(0x50, 0x00);
tp2825_write_register(0x51, 0x00);
tp2825_write_register(0x52, 0x00);
tp2825_write_register(0x53, 0x00);
tp2825_write_register(0x54, 0x00);
tp2825_write_register(0x55, 0x00);
tp2825_write_register(0x56, 0x00);
tp2825_write_register(0x57, 0x00);
tp2825_write_register(0x58, 0x00);
tp2825_write_register(0x59, 0x00);
tp2825_write_register(0x5A, 0x00);
tp2825_write_register(0x5B, 0x00);
tp2825_write_register(0x5C, 0x00);
tp2825_write_register(0x5D, 0x00);
tp2825_write_register(0x5E, 0x00);
tp2825_write_register(0x5F, 0x00);

tp2825_write_register(0x60, 0x00);
tp2825_write_register(0x61, 0x00);
tp2825_write_register(0x62, 0x00);
tp2825_write_register(0x63, 0x00);
tp2825_write_register(0x64, 0x00);
tp2825_write_register(0x65, 0x00);
tp2825_write_register(0x66, 0x00);
tp2825_write_register(0x67, 0x00);
tp2825_write_register(0x68, 0x00);
tp2825_write_register(0x69, 0x00);
tp2825_write_register(0x6A, 0x00);
tp2825_write_register(0x6B, 0x00);
tp2825_write_register(0x6C, 0x00);
tp2825_write_register(0x6D, 0x00);
tp2825_write_register(0x6E, 0x00);
tp2825_write_register(0x6F, 0x00);

tp2825_write_register(0x70, 0x00);
tp2825_write_register(0x71, 0x00);
tp2825_write_register(0x72, 0x00);
tp2825_write_register(0x73, 0x00);
tp2825_write_register(0x74, 0x00);
tp2825_write_register(0x75, 0x00);
tp2825_write_register(0x76, 0x00);
tp2825_write_register(0x77, 0x00);
tp2825_write_register(0x78, 0x00);
tp2825_write_register(0x79, 0x00);
tp2825_write_register(0x7A, 0x00);
tp2825_write_register(0x7B, 0x00);
tp2825_write_register(0x7C, 0x00);
tp2825_write_register(0x7D, 0x00);
tp2825_write_register(0x7E, 0x01);
tp2825_write_register(0x7F, 0x00);

tp2825_write_register(0x80, 0x00);
tp2825_write_register(0x81, 0x00);
tp2825_write_register(0x82, 0x00);
tp2825_write_register(0x83, 0x00);
tp2825_write_register(0x84, 0x00);
tp2825_write_register(0x85, 0x00);
tp2825_write_register(0x86, 0x00);
tp2825_write_register(0x87, 0x00);
tp2825_write_register(0x88, 0x00);
tp2825_write_register(0x89, 0x00);
tp2825_write_register(0x8A, 0x00);
tp2825_write_register(0x8B, 0xFF);
tp2825_write_register(0x8C, 0xFF);
tp2825_write_register(0x8D, 0xFF);
tp2825_write_register(0x8E, 0xFF);
tp2825_write_register(0x8F, 0xFF);

tp2825_write_register(0x90, 0xFF);
tp2825_write_register(0x91, 0xFF);
tp2825_write_register(0x92, 0xFF);
tp2825_write_register(0x93, 0xFF);
tp2825_write_register(0x94, 0xFF);
tp2825_write_register(0x95, 0x00);
tp2825_write_register(0x96, 0x00);
tp2825_write_register(0x97, 0x00);
tp2825_write_register(0x98, 0x00);
tp2825_write_register(0x99, 0x00);
tp2825_write_register(0x9A, 0x00);
tp2825_write_register(0x9B, 0x00);
tp2825_write_register(0x9C, 0x00);
tp2825_write_register(0x9D, 0x00);
tp2825_write_register(0x9E, 0x00);
tp2825_write_register(0x9F, 0x00);

tp2825_write_register(0xA0, 0x00);
tp2825_write_register(0xA1, 0x00);
tp2825_write_register(0xA2, 0x00);
tp2825_write_register(0xA3, 0x00);
tp2825_write_register(0xA4, 0x00);
tp2825_write_register(0xA5, 0x00);
tp2825_write_register(0xA6, 0x00);
tp2825_write_register(0xA7, 0x00);
tp2825_write_register(0xA8, 0x00);
tp2825_write_register(0xA9, 0x00);
tp2825_write_register(0xAA, 0x00);
tp2825_write_register(0xAB, 0x00);
tp2825_write_register(0xAC, 0x00);
tp2825_write_register(0xAD, 0x00);
tp2825_write_register(0xAE, 0x00);
tp2825_write_register(0xAF, 0x00);

tp2825_write_register(0xB0, 0x00);
tp2825_write_register(0xB1, 0x00);
tp2825_write_register(0xB2, 0x00);
tp2825_write_register(0xB3, 0xFA);
tp2825_write_register(0xB4, 0x00);
tp2825_write_register(0xB5, 0x00);
tp2825_write_register(0xB6, 0x00);
tp2825_write_register(0xB7, 0x00);
tp2825_write_register(0xB8, 0x00);
tp2825_write_register(0xB9, 0x01);
tp2825_write_register(0xBA, 0x00);
tp2825_write_register(0xBB, 0x00);
tp2825_write_register(0xBC, 0x03);
tp2825_write_register(0xBD, 0x00);
tp2825_write_register(0xBE, 0x00);
tp2825_write_register(0xBF, 0x00);

/*tp2825_write_register(0xC0, 0x00);
tp2825_write_register(0xC1, 0x00);
tp2825_write_register(0xC2, 0x0B);
tp2825_write_register(0xC3, 0x0C);
tp2825_write_register(0xC4, 0x00);
tp2825_write_register(0xC5, 0x00);
tp2825_write_register(0xC6, 0x1F);
tp2825_write_register(0xC7, 0x78);
tp2825_write_register(0xC8, 0x21);
tp2825_write_register(0xC9, 0x00);
tp2825_write_register(0xCA, 0x00);
tp2825_write_register(0xCB, 0x07);
tp2825_write_register(0xCC, 0x08);
tp2825_write_register(0xCD, 0x00);
tp2825_write_register(0xCE, 0x00);
tp2825_write_register(0xCF, 0x04);

tp2825_write_register(0xD0, 0x00);
tp2825_write_register(0xD1, 0x00);
tp2825_write_register(0xD2, 0x60);
tp2825_write_register(0xD3, 0x10);
tp2825_write_register(0xD4, 0x06);
tp2825_write_register(0xD5, 0xBE);
tp2825_write_register(0xD6, 0x39);
tp2825_write_register(0xD7, 0x27);
tp2825_write_register(0xD8, 0x00);
tp2825_write_register(0xD9, 0x00);
tp2825_write_register(0xDA, 0x00);
tp2825_write_register(0xDB, 0x00);
tp2825_write_register(0xDC, 0x00);
tp2825_write_register(0xDD, 0x00);
tp2825_write_register(0xDE, 0x00);
tp2825_write_register(0xDF, 0x00);

tp2825_write_register(0xE0, 0x00);
tp2825_write_register(0xE1, 0x00);
tp2825_write_register(0xE2, 0x00);
tp2825_write_register(0xE3, 0x00);
tp2825_write_register(0xE4, 0x00);
tp2825_write_register(0xE5, 0x00);
tp2825_write_register(0xE6, 0x00);
tp2825_write_register(0xE7, 0x00);
tp2825_write_register(0xE8, 0x00);
tp2825_write_register(0xE9, 0x00);
tp2825_write_register(0xEA, 0x00);
tp2825_write_register(0xEB, 0x00);
tp2825_write_register(0xEC, 0x00);
tp2825_write_register(0xED, 0x00);
tp2825_write_register(0xEE, 0x00);
tp2825_write_register(0xEF, 0x00);*/

tp2825_write_register(0xF0, 0x00);
tp2825_write_register(0xF1, 0x00);
tp2825_write_register(0xF2, 0x00);
tp2825_write_register(0xF3, 0x00);
tp2825_write_register(0xF4, 0x00);
tp2825_write_register(0xF5, 0x00);
tp2825_write_register(0xF6, 0x00);
tp2825_write_register(0xF7, 0x00);
tp2825_write_register(0xF8, 0x00);
tp2825_write_register(0xF9, 0x00);
tp2825_write_register(0xFA, 0x00);
tp2825_write_register(0xFB, 0x00);
tp2825_write_register(0xFC, 0xC0);
tp2825_write_register(0xFD, 0x00);
tp2825_write_register(0xFE, 0x28);

 

 

获取到寄存器状态如下:

# tp2825_read
00, 11
01, 6A
02, C8
03, 0B
04, 02
05, 00
06, 32
07, C0
08, 00
09, 24
0A, 48
0B, C0
0C, 53
0D, 11
0E, 00
0F, 00
10, F0
11, 50
12, 60
13, 00
14, 08
15, 03
16, D3
17, 80
18, 29
19, 38
1A, 48
1B, 00
1C, 0A
1D, 50
1E, 80
1F, 80
20, A0
21, 86
22, 38
23, 3C
24, 56
25, FF
26, 02
27, 5A
28, 04
29, 48
2A, 30
2B, 60
2C, 1A
2D, 30
2E, 70
2F, 00
30, 48
31, BB
32, 2E
33, 90
34, 00
35, 05
36, DC
37, 00
38, 40
39, 8C
3A, 00
3B, 03
3C, 00
3D, 60
3E, 00
3F, 00
40, 00
41, 01
42, 00
43, 12
44, 07
45, 49
46, 00
47, 00
48, 00
49, 00
4A, 00
4B, 00
4C, 00
4D, 03
4E, 01
4F, 00
50, 00
51, 00
52, 00
53, 00
54, 00
55, 00
56, 00
57, 00
58, 00
59, 00
5A, 00
5B, 00
5C, 00
5D, 00
5E, 00
5F, 00
60, 00
61, 00
62, 00
63, 00
64, 00
65, 00
66, 00
67, 00
68, 00
69, 00
6A, 00
6B, 00
6C, 00
6D, 00
6E, 00
6F, 00
70, 00
71, 00
72, 00
73, 00
74, 00
75, 00
76, 00
77, 00
78, 00
79, 00
7A, 00
7B, 00
7C, 00
7D, 00
7E, 01
7F, 00
80, 00
81, 00
82, 00
83, 00
84, 00
85, 00
86, 00
87, 00
88, 00
89, 00
8A, 00
8B, FF
8C, FF
8D, FF
8E, FF
8F, FF
90, FF
91, FF
92, FF
93, FF
94, FF
95, 00
96, 00
97, 00
98, 00
99, 00
9A, 00
9B, 00
9C, 00
9D, 00
9E, 00
9F, 00
A0, 00
A1, 00
A2, 00
A3, 00
A4, 00
A5, 00
A6, 00
A7, 00
A8, 00
A9, 00
AA, 00
AB, 00
AC, 00
AD, 00
AE, 00
AF, 00
B0, 00
B1, 00
B2, 00
B3, FA
B4, 00
B5, 00
B6, 00
B7, 00
B8, 00
B9, 01
BA, 00
BB, 00
BC, 03
BD, 00
BE, 00
BF, 00
C0, 00
C1, 00
C2, 0B
C3, 0C
C4, 00
C5, 00
C6, 1F
C7, 78
C8, 27
C9, 00
CA, 00
CB, 07
CC, 08
CD, 00
CE, 00
CF, 04
D0, 00
D1, 00
D2, 60
D3, 10
D4, 06
D5, BE
D6, 39
D7, 27
D8, 00
D9, 00
DA, 00
DB, 00
DC, 00
DD, 00
DE, 00
DF, 00
E0, 00
E1, 00
E2, 00
E3, 00
E4, 00
E5, 00
E6, 00
E7, 00
E8, 00
E9, 00
EA, 00
EB, 00
EC, 00
ED, 00
EE, 00
EF, 00
F0, 00
F1, 00
F2, 00
F3, 00
F4, 00
F5, 00
F6, 00
F7, 00
F8, 00
F9, 00
FA, 00
FB, 00
FC, C0
FD, 00
FE, 28

Outcomes