SlideShare a Scribd company logo
IN5350 – CMOS Image Sensor Design
Lecture 11 – CIS communication interfaces
27-October-2020
Project schedule
Task/milestone Start Finish
Chose topic/scope 1-Sep 8-Sep
Create project plan (tasks, milestones, schedule) 8-Sep 15-Sep
MS1 – project plan approved by Johannes 15-Sep 22-Sep
Study literature on the topic 22-Sep 29-Sep
Design/simulation 29-Sep 13-Oct
Write up prelim report (inc references, design, results) 13-Oct 20-Oct
MS2 – submit preliminary report to Johannes 20-Oct 20-Oct
Design/simulation 20-Oct 27-Oct
Write up final report (incl references, design, results) 27-Oct 3-Nov
MS3 – presentation and discussion 3-Nov 3-Nov
MS4 – submit final report to Johannes 10-Nov 10-Nov
Exam 18-Nov 2020
01.11.2020 IN5350 2
✅
✅
✅
✅
✅
✅
✅
✅
Goal for this lecture
• Learn how the image sensor chip communciates
with host CPU using industry standard interfaces
• Learn how I2C is used to write commands to the
CMOS image sensor and to read register contents
• Learn about pros and cons of outputing pixel data
with parallel and serial interfaces
01/11/2020 3
Package types
01.11.2020 4
Ref: Harris et al, CMOS VLSI Design, 4th Ed.
Camera HW examples
01.11.2020 5
Sensor eval board
FPGA + USB board
DSLR camera
Sensor eval board example
01.11.2020 6
Example
CIS chip
Digital input pads
01.11.2020 7
Ref: Harris et al, CMOS VLSI Design, 4th Ed.
(next slide)
ESD protection
01.11.2020 8
Ref: Harris et al, CMOS VLSI Design, 4th Ed.
Bidirectional pads
01.11.2020 9
Ref: Harris et al, CMOS VLSI Design, 4th Ed.
VDDIO power dissipation
01.11.2020 10
Energy per transition (delivered by
VDDIO):
EIO = Cload x VDDIO
2
Power delivered to output clock pin:
PCLK = Cload x VDDIO
2 x fCLK
Power delivered to output pins:
PIOpin = Cload x VDDIO
2 x fCLK/2
Total power:
PIO = Cload x VDDIO
2 x fCLK x (1 +
NDVP/2)
Example: PIO=20pF (3.3V)2 100MHz
(1+12/2) = 152mW(!)
Noise concern when DVP data toggles
• Current in I/O pins during LOW to HIGH transition
– IVDDIO = Cload dVVDDIO/dT
– Typical pin load: Cload = 15pF
– HDTV (720p60) output clock frequency: fCLK =
74.25MHz (74.25Mpix/sec), i.e. Cycle time of 13.5ns
– Assume VDDIO=1.8V and rise time of ¼ cycle time
– IVDDIO = 15pF 1.8V/(13.5ns/4) = 8mA
– Assuming 0 to 1 transition on 12bit pixel value + clk
• 8mA/pin x (12+1)pins = 104mA (large current spikes on VDDIO!)
01.11.2020 11
Industry trend from parallel to serial output
• Driven by the megapixel raze
– E.g. 8MP 30fps => 240Mpix/sec
• CMOS DVP i/os limited to approx 100MHz
• Adding multiple DVPs could increase die size (cost)
• Driven by power and noise concerns
– Current spikes in I/Os inducing supply and gnd noise
• Driven by EMC requirements
– Reduced EM radiation from serial interfaces
w/differential signalling
01.11.2020 12
Example EMC test of digital VDD supply
01.11.2020 13
Example EMC test of digital VDD supply
01.11.2020 14
Low Voltage Differential Signaling
01.11.2020 15
Ref: National Semiconductor, LVDS owners manual.
LVDS remarks
• Data rate >5Gbps per lane (1Gbps is typical)
• Unaffected by common mode noise thanks to differential
signalling
• At 2.5V supply voltage the power to drive 3.5 mA becomes
8.75 mW per lane
• Variations of LVDS for reduced power
– sub-LVDS (introduced by Nokia in 2004) uses 0.9V typical common
mode voltage
– SLVS-400 specified in JEDEC where the power supply can be 800
mV and common mode voltage 400mV
– MIPI D-PHY uses 200mV differential signalling
01.11.2020 16
I2C Inter-Integrated Circuit
01.11.2020 17
VDDIO
• One device is Master, the others are Slaves (max 127)
• Only the Master drives the clock line (SCL)
• Pull-up resistors, Rp, typically 1.8kohms to 10kohms
• Speed grades: 100kHz, 400kHz, 1MHz, 3.3MHz
Master Slave Slave
Start and stop sequence and data
transmission
01.11.2020 18
Data transmission: 8b data followed by 1b acknowledge from
slave (i.e. SDA is pulled down by the slave device)
Addresssing an I2C device
01.11.2020 19
• 7-bit device address, i.e. max 127 devices can be connected to the
bus
• R/W bit informs slave that master wants to Read (‘1’) or Write (‘0’)
Write sequence
1. Send a start sequence
2. Send the I2C address of the slave with the R/W
bit low (even address)
3. Send the internal register number you want to
write to
4. Send the data byte
5. [Optionally, send any further data bytes]
6. Send the stop sequence.
01.11.2020 20
Read sequence
1. Send a start sequence
2. Send 0x<device address>
3. Send 0x<register address>
4. Send a start sequence again (repeated start)
5. Send 0x<device address>
6. Read data byte from device
7. Send the stop sequence
01.11.2020 21
Example read sequence
01.11.2020 22
NB. If slave is not ready for register read it can hold the SCL line low. This is
called clock stretching. The master issues the first clock pulse of the read by
making SCL high and then checks to see if it really has gone high. If its still low
then it waits until it goes high before continuing.
Example code: http://www.robot-electronics.co.uk/acatalog/I2C_Tutorial.html
Key takeaways
• Digital I/O pads with level shifting and ESD
protection
• Parallel outputs can be power hungry
– PIO = Cload x VDDIO
2 x fCLK x (1 + NDVP/2)
• Industry trend from parallel to serial output (e.g.
LVDS) due to higher datarates and lower EMC
• I2C: industry strandard protocol used to read/write
8b values to CMOS sensor (e.g. Integration time,
gain, etc)
01.11.2020 23
THANKS!
01.11.2020 24

More Related Content

PPTX
Peripherals and interfacing
PPT
Introduction to embedded systems
PPTX
Serial Busses.pptx
PPTX
NXP i.MX6 Multi Media Processor & Peripherals
PPTX
Interfacing
PPTX
Embedded systems and robotics by scmandota
PPT
I2C PRESENTATION.PPT
PPTX
serial_busses_i2c.pptx
Peripherals and interfacing
Introduction to embedded systems
Serial Busses.pptx
NXP i.MX6 Multi Media Processor & Peripherals
Interfacing
Embedded systems and robotics by scmandota
I2C PRESENTATION.PPT
serial_busses_i2c.pptx

Similar to CMOS Image Sensor Design_00h20_11_io.pdf (20)

PDF
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
PPT
Communication Interface of The Embedded Systems
PDF
ELC 2016 - I2C hacking demystified
PPTX
Slow peripheral interfaces (i2 c spi uart)
PPT
Serial-peripheral-imterface-protocol.ppt
PDF
PA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPU
PPTX
seial pheripheral interface and inter integrated circuitsi2c.pptx
PPTX
Usb protocol
PPTX
MicroProcessors and MicroControllersUnit3
PPTX
MarsBoard - NXP IMX6 Processor
PPTX
Output subsystem interfacing
PPTX
Part-2: Mastering microcontroller with embedded driver development
PDF
DESIGN AND IMPLEMENTATION OF I2C AND UART BLOCK IMPLEMENTATION FOR RISC-V SOC
PPTX
I2 c and mpu6050 basics
PPTX
Embedded networking
PDF
Embedded Networking - Serial Bus Communication Protocols – I2C Bus
PPTX
I2c buses
PPTX
I2C Protocol
PDF
Fpga implementation of multi protocol data
PPTX
Chapter 3 esy
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
Communication Interface of The Embedded Systems
ELC 2016 - I2C hacking demystified
Slow peripheral interfaces (i2 c spi uart)
Serial-peripheral-imterface-protocol.ppt
PA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPU
seial pheripheral interface and inter integrated circuitsi2c.pptx
Usb protocol
MicroProcessors and MicroControllersUnit3
MarsBoard - NXP IMX6 Processor
Output subsystem interfacing
Part-2: Mastering microcontroller with embedded driver development
DESIGN AND IMPLEMENTATION OF I2C AND UART BLOCK IMPLEMENTATION FOR RISC-V SOC
I2 c and mpu6050 basics
Embedded networking
Embedded Networking - Serial Bus Communication Protocols – I2C Bus
I2c buses
I2C Protocol
Fpga implementation of multi protocol data
Chapter 3 esy
Ad

More from AhmedHamouda68 (11)

PDF
CMOS Image Sensor Design_h20_5_noise_sources.pdf
PDF
CMOS Image Sensor Design_h20_3_photodiode_pixels_1sep2020.pdf
PDF
CMOS Image Sensor Design_Course information slides.pdf
PDF
CMOS Image Sensor Design_00h20_9_isp.pdf
PDF
CMOS Image Sensor Design_h20_10_jpeg.pdf
PDF
CMOS Image Sensor Design_h20_7_high_dynamic_range.pdf
PDF
CMOS Image Sensor Design_h20_8_characterization2.pdf
PDF
CMOS Image Sensor Design_h20_6_snr_model.pdf
PPTX
binary analysis for botnet reverse engineering.pptx
PPT
Universal Armament Interface for the futuere.ppt
PPTX
EDEM2PSI welcome day-of economics.2021.pptx
CMOS Image Sensor Design_h20_5_noise_sources.pdf
CMOS Image Sensor Design_h20_3_photodiode_pixels_1sep2020.pdf
CMOS Image Sensor Design_Course information slides.pdf
CMOS Image Sensor Design_00h20_9_isp.pdf
CMOS Image Sensor Design_h20_10_jpeg.pdf
CMOS Image Sensor Design_h20_7_high_dynamic_range.pdf
CMOS Image Sensor Design_h20_8_characterization2.pdf
CMOS Image Sensor Design_h20_6_snr_model.pdf
binary analysis for botnet reverse engineering.pptx
Universal Armament Interface for the futuere.ppt
EDEM2PSI welcome day-of economics.2021.pptx
Ad

Recently uploaded (20)

PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Well-logging-methods_new................
PPTX
Construction Project Organization Group 2.pptx
PPT
Project quality management in manufacturing
PPTX
Current and future trends in Computer Vision.pptx
PDF
PPT on Performance Review to get promotions
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Artificial Intelligence
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
DOCX
573137875-Attendance-Management-System-original
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Geodesy 1.pptx...............................................
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Safety Seminar civil to be ensured for safe working.
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Well-logging-methods_new................
Construction Project Organization Group 2.pptx
Project quality management in manufacturing
Current and future trends in Computer Vision.pptx
PPT on Performance Review to get promotions
Foundation to blockchain - A guide to Blockchain Tech
Artificial Intelligence
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
573137875-Attendance-Management-System-original
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Geodesy 1.pptx...............................................
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Safety Seminar civil to be ensured for safe working.
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF

CMOS Image Sensor Design_00h20_11_io.pdf

  • 1. IN5350 – CMOS Image Sensor Design Lecture 11 – CIS communication interfaces 27-October-2020
  • 2. Project schedule Task/milestone Start Finish Chose topic/scope 1-Sep 8-Sep Create project plan (tasks, milestones, schedule) 8-Sep 15-Sep MS1 – project plan approved by Johannes 15-Sep 22-Sep Study literature on the topic 22-Sep 29-Sep Design/simulation 29-Sep 13-Oct Write up prelim report (inc references, design, results) 13-Oct 20-Oct MS2 – submit preliminary report to Johannes 20-Oct 20-Oct Design/simulation 20-Oct 27-Oct Write up final report (incl references, design, results) 27-Oct 3-Nov MS3 – presentation and discussion 3-Nov 3-Nov MS4 – submit final report to Johannes 10-Nov 10-Nov Exam 18-Nov 2020 01.11.2020 IN5350 2 ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
  • 3. Goal for this lecture • Learn how the image sensor chip communciates with host CPU using industry standard interfaces • Learn how I2C is used to write commands to the CMOS image sensor and to read register contents • Learn about pros and cons of outputing pixel data with parallel and serial interfaces 01/11/2020 3
  • 4. Package types 01.11.2020 4 Ref: Harris et al, CMOS VLSI Design, 4th Ed.
  • 5. Camera HW examples 01.11.2020 5 Sensor eval board FPGA + USB board DSLR camera
  • 6. Sensor eval board example 01.11.2020 6 Example CIS chip
  • 7. Digital input pads 01.11.2020 7 Ref: Harris et al, CMOS VLSI Design, 4th Ed. (next slide)
  • 8. ESD protection 01.11.2020 8 Ref: Harris et al, CMOS VLSI Design, 4th Ed.
  • 9. Bidirectional pads 01.11.2020 9 Ref: Harris et al, CMOS VLSI Design, 4th Ed.
  • 10. VDDIO power dissipation 01.11.2020 10 Energy per transition (delivered by VDDIO): EIO = Cload x VDDIO 2 Power delivered to output clock pin: PCLK = Cload x VDDIO 2 x fCLK Power delivered to output pins: PIOpin = Cload x VDDIO 2 x fCLK/2 Total power: PIO = Cload x VDDIO 2 x fCLK x (1 + NDVP/2) Example: PIO=20pF (3.3V)2 100MHz (1+12/2) = 152mW(!)
  • 11. Noise concern when DVP data toggles • Current in I/O pins during LOW to HIGH transition – IVDDIO = Cload dVVDDIO/dT – Typical pin load: Cload = 15pF – HDTV (720p60) output clock frequency: fCLK = 74.25MHz (74.25Mpix/sec), i.e. Cycle time of 13.5ns – Assume VDDIO=1.8V and rise time of ¼ cycle time – IVDDIO = 15pF 1.8V/(13.5ns/4) = 8mA – Assuming 0 to 1 transition on 12bit pixel value + clk • 8mA/pin x (12+1)pins = 104mA (large current spikes on VDDIO!) 01.11.2020 11
  • 12. Industry trend from parallel to serial output • Driven by the megapixel raze – E.g. 8MP 30fps => 240Mpix/sec • CMOS DVP i/os limited to approx 100MHz • Adding multiple DVPs could increase die size (cost) • Driven by power and noise concerns – Current spikes in I/Os inducing supply and gnd noise • Driven by EMC requirements – Reduced EM radiation from serial interfaces w/differential signalling 01.11.2020 12
  • 13. Example EMC test of digital VDD supply 01.11.2020 13
  • 14. Example EMC test of digital VDD supply 01.11.2020 14
  • 15. Low Voltage Differential Signaling 01.11.2020 15 Ref: National Semiconductor, LVDS owners manual.
  • 16. LVDS remarks • Data rate >5Gbps per lane (1Gbps is typical) • Unaffected by common mode noise thanks to differential signalling • At 2.5V supply voltage the power to drive 3.5 mA becomes 8.75 mW per lane • Variations of LVDS for reduced power – sub-LVDS (introduced by Nokia in 2004) uses 0.9V typical common mode voltage – SLVS-400 specified in JEDEC where the power supply can be 800 mV and common mode voltage 400mV – MIPI D-PHY uses 200mV differential signalling 01.11.2020 16
  • 17. I2C Inter-Integrated Circuit 01.11.2020 17 VDDIO • One device is Master, the others are Slaves (max 127) • Only the Master drives the clock line (SCL) • Pull-up resistors, Rp, typically 1.8kohms to 10kohms • Speed grades: 100kHz, 400kHz, 1MHz, 3.3MHz Master Slave Slave
  • 18. Start and stop sequence and data transmission 01.11.2020 18 Data transmission: 8b data followed by 1b acknowledge from slave (i.e. SDA is pulled down by the slave device)
  • 19. Addresssing an I2C device 01.11.2020 19 • 7-bit device address, i.e. max 127 devices can be connected to the bus • R/W bit informs slave that master wants to Read (‘1’) or Write (‘0’)
  • 20. Write sequence 1. Send a start sequence 2. Send the I2C address of the slave with the R/W bit low (even address) 3. Send the internal register number you want to write to 4. Send the data byte 5. [Optionally, send any further data bytes] 6. Send the stop sequence. 01.11.2020 20
  • 21. Read sequence 1. Send a start sequence 2. Send 0x<device address> 3. Send 0x<register address> 4. Send a start sequence again (repeated start) 5. Send 0x<device address> 6. Read data byte from device 7. Send the stop sequence 01.11.2020 21
  • 22. Example read sequence 01.11.2020 22 NB. If slave is not ready for register read it can hold the SCL line low. This is called clock stretching. The master issues the first clock pulse of the read by making SCL high and then checks to see if it really has gone high. If its still low then it waits until it goes high before continuing. Example code: http://www.robot-electronics.co.uk/acatalog/I2C_Tutorial.html
  • 23. Key takeaways • Digital I/O pads with level shifting and ESD protection • Parallel outputs can be power hungry – PIO = Cload x VDDIO 2 x fCLK x (1 + NDVP/2) • Industry trend from parallel to serial output (e.g. LVDS) due to higher datarates and lower EMC • I2C: industry strandard protocol used to read/write 8b values to CMOS sensor (e.g. Integration time, gain, etc) 01.11.2020 23