7818| 5
|
OV7670的SCCB读写寄存器时,读寄存器可以实现,但是写寄存器无法实现 |
5金钱
最佳答案[mw_shl_code=c,true] uint8_t SCCB_WR_Reg(uint8_t reg,uint8_t data)
{
uint8_t res=0,num=0;
Rest:
SCCB_Start();
if(SCCB_WR_Byte(0x42))
{
SCCB_Stop();
Delay_us(20);
num ++;
if(num>20) return 0;
goto Rest;
}
//else res = 0;
Delay_us(100);
if(SCCB_WR_Byte(reg))
{
SCCB_Stop();
Delay_us(20);
goto Rest;
}
Delay_us(100);
if(SCCB_WR_Byt ...
| ||
| ||
| ||
| ||
站在巨人的肩膀上不断的前进。。。
|
||
| ||
| ||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-5-26 05:35
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网