出自flip the world

SCCB, Arducam/OVM7251:修訂間差異

Tommy​(留言 | 貢獻)
Refactor: add [[Category:Sensors and Modules ]]
Tommy​(留言 | 貢獻)
Add a lead sentence
 
第1行: 第1行:
Talking to an '''OVM7251''' camera over SCCB, Omnivision's I2C-like bus, on an Arducam module.
[[File:bp_rpi_ov7251.jpg|400px|bus priate hacking ovm7251]]
[[File:bp_rpi_ov7251.jpg|400px|bus priate hacking ovm7251]]



2026年8月23日 (日) 17:57的最新修訂

Talking to an OVM7251 camera over SCCB, Omnivision's I2C-like bus, on an Arducam module.

bus priate hacking ovm7251

I2C init cmd

HiZ>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. LCD
x. exit(without change)

(1)>4
Set speed:
 1. ~5KHz
 2. ~50KHz
 3. ~100KHz
 4. ~400KHz

(1)>4
Ready
I2C>P
Pull-up resistors ON
Warning: no voltage on Vpullup pin
I2C>W
POWER SUPPLIES ON
I2C>
HiZ>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. LCD
x. exit(without change)

(1)>4
Set speed:
 1. ~5KHz
 2. ~50KHz
 3. ~100KHz
 4. ~400KHz

(1)>4
Ready
I2C>P
Pull-up resistors ON
Warning: no voltage on Vpullup pin
I2C>W
POWER SUPPLIES ON
I2C>

SCCB Read/Write

I2C>[0xc0 0x35 0x02][0xc1 r]
I2C START BIT
WRITE: 0xC0 ACK 
WRITE: 0x35 ACK 
WRITE: 0x02 ACK 
I2C STOP BIT
I2C START BIT
WRITE: 0xC1 ACK 
READ: 0x80 
NACK
I2C STOP BIT

I2C>[0xc0 0x35 0x02 0xf0]
I2C START BIT
WRITE: 0xC0 ACK 
WRITE: 0x35 ACK 
WRITE: 0x02 ACK 
WRITE: 0xF0 ACK 
I2C STOP BIT

I2C>[0xc0 0x35 0x02][0xc1 r]
I2C START BIT
WRITE: 0xC0 ACK 
WRITE: 0x35 ACK 
WRITE: 0x02 ACK 
I2C STOP BIT
I2C START BIT
WRITE: 0xC1 ACK 
READ: 0xF0 
NACK
I2C STOP BIT


SCCB_write_01


SCCB_write_02