📄 adv7183_init.c
字号:
#include <sys/exception.h>
#include "I2C.h"
#include "ADV7183.h"
void ADV7183_init(void);
void ADV7183_init(void)
{
extern volatile int SCCB_In_Progress;
short i = 0;
#if 0
I2C_wr(ADV7183WR, 0x00, 0x00); //(ADV7183WR, 0x00, 0x06)
while(SCCB_In_Progress){};
// COMB_FILTER_CONTROL_REGISTER - Chroma Comb mode 1H
// I2C_wr(ADV7183WR, COMB_FILTER_CONTROL_REGISTER, CCM_1H);
// while(SCCB_In_Progress){};
// MANUAL_CLOCK_CONTROL_1_REGISTER - O/P freq set at 27MHz
// I2C_wr(ADV7183WR, MANUAL_CLOCK_CONTROL_1_REGISTER, OUTPUT_27MHZ);
// while(SCCB_In_Progress){};
#endif
I2C_wr(ADV7183WR, 0x00,0x00);
while(SCCB_In_Progress){};
I2C_wr(ADV7183WR, 0x15,0x41);
while(SCCB_In_Progress){};
// I2C_wr(ADV7183WR, 0x31,0x02);
I2C_wr(ADV7183WR, 0x39,0x40);
while(SCCB_In_Progress){};
I2C_wr(ADV7183WR, 0x3a,0x16);
while(SCCB_In_Progress){};
// I2C_wr(ADV7183WR, 0x41,0x01);
I2C_wr(ADV7183WR, 0x4d,0xef);
while(SCCB_In_Progress){};
I2C_wr(ADV7183WR, 0xcd,0x00);
while(SCCB_In_Progress){};
I2C_wr(ADV7183WR, 0xce,0x01);
while(SCCB_In_Progress){};
I2C_wr(ADV7183WR, 0xdb,0xbb);
while(SCCB_In_Progress){};
I2C_wr(ADV7183WR, 0x0e,0x80);
while(SCCB_In_Progress){};
I2C_wr(ADV7183WR, 0xb4,0x13);
while(SCCB_In_Progress){};
I2C_wr(ADV7183WR, 0xb5,0x03);
while(SCCB_In_Progress){};
I2C_wr(ADV7183WR, 0xd0,0x4a);
while(SCCB_In_Progress){};
I2C_wr(ADV7183WR, 0xdc,0xef);
while(SCCB_In_Progress){};
I2C_wr(ADV7183WR, 0x0e,0x00);
while(SCCB_In_Progress){};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -