Debugging Digital Cameras: Detecting Redundant Pixels

Similar documents
Agilent MSO and CEBus PL Communications Testing Application Note 1352

Agilent I 2 C Debugging

Agilent N9355/6 Power Limiters 0.01 to 18, 26.5 and 50 GHz

Agilent 11713A Attenuator/Switch Driver

Broadcast Television Measurements

Artisan Technology Group is your source for quality new and certified-used/pre-owned equipment

Agilent 87075C Multiport Test Set Product Overview

Agilent 81600B Tunable Laser Source Family

Agilent E5100A Network Analyzer

Agilent E4430B 1 GHz, E4431B 2 GHz, E4432B 3 GHz, E4433B 4 GHz Measuring Bit Error Rate Using the ESG-D Series RF Signal Generators, Option UN7

Agilent 86120B, 86120C, 86122A Multi-Wavelength Meters Technical Specifications

RS-232/UART Triggering and Hardware-Based Decode (N5457A) for Agilent InfiniiVision Oscilloscopes

Agilent 81600B Tunable Laser Source Family Technical Specifications August New model: nm, low SSE output!

Full-featured CW Microwave Counters for Field, Factory or Lab

Overview. Know Your Oscilloscope. Front Panel. Rear Panel. Sharing Agilent s Resources with Engineering Educators

Agilent E5500 Series Phase Noise Measurement Solutions Product Overview

Mixed Analog and Digital Signal Debug and Analysis Using a Mixed-Signal Oscilloscope Wireless LAN Example Application

Time-Saving Features in Economy Oscilloscopes Streamline Test

Agilent N5120A Baseband Studio for CPRI RE Test

Agilent PN Time-Capture Capabilities of the Agilent Series Vector Signal Analyzers Product Note

Oscilloscope Display Quality Impacts Ability to View Subtle Signal Details

Agilent Understanding the Agilent 34405A DMM Operation Application Note

CAN/LIN Measurements (Option AMS) for Agilent s InfiniiVision Series Oscilloscopes

Memory-Depth Requirements for Serial Data Analysis in a Real-Time Oscilloscope

Agilent Technologies N5454A Segmented Memory Acquisition for Agilent InfiniiVision Series Oscilloscopes

We bring quality to light. SNT 10 DC Power Supply

1 scope channel. 2 scope channels* 200 MSa/s 4 MB memory/ch. 200 MSa/s 2 MB memory/ch. 200 MSa/s 2 MB memory/ch

Agilent 83437A Broadband Light Source Agilent 83438A Erbium ASE Source

Debugging Embedded Mixed-Signal Designs Using Mixed Signal Oscilloscopes

Agilent CSA Spectrum Analyzer N1996A

CAN, LIN and FlexRay Protocol Triggering and Decode for Infiniium 9000A and 9000 H-Series Oscilloscopes

MSO-28 Oscilloscope, Logic Analyzer, Spectrum Analyzer

Keysight Technologies RS-232/UART Triggering and Hardware-Based Decode (N5457A) for InfiniiVision Oscilloscopes

FlexRay Physical Layer Eye-diagram Mask Testing

Agilent N7744A 4-Channel Optical Multiport Power Meter N7745A 8-Channel Optical Multiport Power Meter. Fully compliant to LXI Class C specification

Agilent 87075C 75 Ohm Multiport Test Sets for use with Agilent E5061A ENA-L Network Analyzers

Keysight Technologies Oscilloscope Display Quality Impacts Ability to View Subtle Signal Details. Application Note

Keysight Technologies Mixed Analog and Digital Signal Debug and Analysis Using a Mixed-Signal Oscilloscope

Portable Performance for Debug and Validation

Experiment # 4 Counters and Logic Analyzer

Logic Analyzer Triggering Techniques to Capture Elusive Problems

Solutions to Embedded System Design Challenges Part II

The Measurement Tools and What They Do

Low-speed serial buses are used in wide variety of electronics products. Various low-speed buses exist in different

DT3162. Ideal Applications Machine Vision Medical Imaging/Diagnostics Scientific Imaging

Microwave Counter, Power Meter and DVM in One Portable Package

Agilent N5183A MXG Microwave Signal Generator

Agilent Technologies Pulse Pattern and Data Generators Digital Stimulus Solutions

Oscilloscope Measurement Tools to Help Debug Automotive Serial Buses Faster

Logic Analysis Basics

Choosing an Oscilloscope

Logic Analysis Basics

Agilent E4887A HDMI TMDS Signal Generator Platform

What's the SPO technology?

GDB-03 Demo Module USER MANUAL GW INSTEK PART NO. 82DB-03000M01 ISO-9001 CERTIFIED MANUFACTURER

Agilent 6000 Series Oscilloscope Demo Guide

S op o e p C on o t n rol o s L arni n n i g n g O bj b e j ctiv i e v s

Debugging Embedded Mixed-Signal Designs Using Mixed Signal Oscilloscopes

WAVEJET 300 SERIES OSCILLOSCOPES. New Cover to Come. Unmatched Performance, Portability, and Value

Design and implementation (in VHDL) of a VGA Display and Light Sensor to run on the Nexys4DDR board Report and Signoff due Week 6 (October 4)

Selecting the Right Oscilloscope for Protocol Analysis Applications

Quick Signal Integrity Troubleshooting with Integrated Logic Analyzers & Oscilloscopes

Keysight Technologies Oscilloscope Memory Architectures Why All Acquisition Memory is Not Created Equal. Application Note

WAVEJET 300 SERIES OSCILLOSCOPES. Unmatched Performance, Portability, and Value

Agilent N4876A 28 Gb/s Multiplexer 2:1

Debugging a Mixed Signal Design with a Tektronix Mixed Signal Oscilloscope

Logic Analysis Fundamentals

SignalTap Plus System Analyzer

Evaluating Oscilloscopes to Debug Mixed-Signal Designs

Benefits of the R&S RTO Oscilloscope's Digital Trigger. <Application Note> Products: R&S RTO Digital Oscilloscope

Troubleshooting Analog to Digital Converter Offset using a Mixed Signal Oscilloscope APPLICATION NOTE

What to look for when choosing an oscilloscope

Digital Storage Oscilloscopes 2550 Series

AN-822 APPLICATION NOTE

CHAPTER1: Digital Logic Circuits

Agilent Technologies 54522A

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

Keysight Technologies Using Oscilloscope Segmented Memory for Serial Bus Applications. Application Note

You Can Make Better Profits In Computer Monitor Servicing!

Smart Night Light. Figure 1: The state diagram for the FSM of the ALS.

PCI Frame Grabber. Model 611 (Rev.D)

Evaluating Oscilloscopes for Best Signal Visibility

Agilent Agilent 86120B, 86120C, 86122A Multi-Wavelength Meters Data Sheet

DT3130 Series for Machine Vision

Laboratory 1 - Introduction to Digital Electronics and Lab Equipment (Logic Analyzers, Digital Oscilloscope, and FPGA-based Labkit)

Evaluating Oscilloscope Vertical Noise Characteristics

ECE532 Digital System Design Title: Stereoscopic Depth Detection Using Two Cameras. Final Design Report

In the development of electronic instruments or the analysis

Expect to Make Waves.

SignalTap Analysis in the Quartus II Software Version 2.0

Evaluating Oscilloscope Mask Testing for Six Sigma Quality Standards

How to Measure Digital Baseband and IF Signals Using Agilent Logic Analyzers with Vector Signal Analysis Software

Quick Reference Manual

Tutorial 11 ChipscopePro, ISE 10.1 and Xilinx Simulator on the Digilent Spartan-3E board

Troubleshooting Your Design with the TDS3000C Series Oscilloscopes

Quick Start. RSHS1000 Series Handheld Digital Oscilloscope

Agilent Technologies. N5106A PXB MIMO Receiver Tester. Error Messages. Agilent Technologies

Identifying Setup and Hold Violations with a Mixed Signal Oscilloscope APPLICATION NOTE

SHENZHEN H&Y TECHNOLOGY CO., LTD

Keysight Technologies Segmented Memory Acquisition for InfiniiVision Series Oscilloscopes. Data Sheet

Transcription:

Debugging Digital Cameras: Detecting Redundant Pixels Application Note Introduction Pixel problems and bit problems associated with their hardware and firmware designs can seriously challenge the designers of today s digital cameras. These challenges require new measurement tools and trouble shooting techniques to troubleshoot the problems that arise. This application note explains how a digital camera works and demonstrates some real-life techniques for debugging pixel problems digital camera design using an Agilent 6D mixed signal oscilloscope (MSO). Refer to figure 1. How a Digital Camera Works A frame of a digital photo consists of a fixed number of pixels. As the number of pixels in a frame increases, so does the photograph's resolution. In a black and white photo, one 8-bit binary number represents each pixel. This number defines the gray scale. For a color photo, three 8- bit binary numbers Y, U, and V represent each pixel. The Y number is the brightness level and the U and V numbers represent the color. When designing a digital camera, the challenge is to make sure there are no pixel problems within a frame, nor bit problems within a pixel. If there is a pixel problem within a picture, either missing pixels or redundant pixels, the picture will skew. If there is a bit problem (incorrect binary word) within a pixel, the image quality deteriorates. This application note concerns pixel problems.

To see the various componts and connections made within a digital camera, refer to figure. In a digital camera, the data from the charge coupled device (CCD) sensor is stored sequentially into static memory. This activity is governed by the timing relationship of the Horizontal Reference Signal (Href) and the Pixel Clock (Pclk). When Pclk goes high, the pixel data is ready and the static RAM stores the pixel data. The length of the Href signal defines the number of pixels in each horizontal line. A complete picture consists of hundreds of lines. The analog channels of the mixed signal scope digitize and display Pclk and Href. Refer to figure. Logic channels D0 through D7 display the 8-bit Y data (brightness control), while D1 shows CLOCK. This signal is the input to the address control circuitry and is actually Href ANDed with Pclk. Refer to figure for a complete block diagram of the digital camere circuitry. Figure. Viewing timing relationship of Href, Pclk, Clock, and Y-data Address Control Circuit Camera Module VSYNC HREF PCLK Image Capture/ Image Upload Multiplexer CAPTURE UPLOAD Image Capture and Upload Control Circuit PIC16C6 Data Bus Clock Reset 10 11 U1 9 CLK Q1 7 Q 6 RST Q Q Q Q6 Q7 1 Q8 1 Q9 1 Q10 1 Q11 1 Q1 7HC00 U 10 CLK 11 RST Q1 Q Q Q Q Q6 Q7 Q8 Q9 Q10 Q11 Q1 9 7 6 1 1 1 1 1 7HC00 1-Bit Binary Counter 1 11 10 9 8 7 6 7 6 8 1 U A0 A1 A A A A A6 A7 A8 A9 A10 A11 A1 A1 A1 A1 A16 I/00 I/01 I/0 I/0 I/0 I/0 I/06 I/07 VCC /CS1 CS /0E WE 1 1 1 17 18 19 0 1 0 9 1 16 NC VSS 6818 18K X 8 Static RAM Data Bus Data Bus PC Interface Figure. Digital camera block diagram

When the above problem is observed, the next step is to understand if it is a hardware problem or a firmware problem. To do that, we need to capture the Href and Pclk signals, and then count the number of Pclk pulses while Href is high. If the number is incorrect, then we must have a hardware problem. However, if the number is correct, then we probably have a firmware problem. Figure. Digital photo taken with prototype camera A Figure. Enlarged portion of the upper left-hand corner of figure, black squares are redundant pixels Detecting Redundant Pixels With prototype camera A, we observe a skewed digital photo and there is a black line cutting the picture in two. Refer to figure. We suspect that there is one redundant pixel at the end of each horizontal line. Therefore, the second line is offset by one pixel. The third line is offset by two pixels, and so forth. The nth line is offset by n-1 pixels. In the past, we could not analyze this problem because we didn't have the right tools. For example, in our case there are 60 pixels in each horizontal line. If we require better than 1 percent measurement accuracy within each Pclk period, we need at least 60 1 percent or 6 Kbytes of memory. Our old digitizing scope did not have sufficient memory to capture the whole waveform with the required resolution. We tried looking at this problem with an Agilent 6D mixed signal oscilloscope (MSO). This scope has MB and MB of memory per channel on analog and digital channels respectively. This was the first time we could really see the problem. After we captured the signal, the next challenge was to count the number of pulses. Keep in mind, there can be more than a thousand Pclk pulses during each Href signal. Unless you have a pair of very good eyes and a whole afternoon available, it may be impossible to count the pulses visually. We discovered some helpful tricks to solve this problem.

First, we captured the important signals with the mixed signal oscilloscope, and then imported the waveform data into a Microsoft Excel spreadsheet on our PC. The Agilent IntuiLink software made the data transfer process from the scope to the PC a simple task. We then sorted the data, grouped all the 1 s, and then added them together to get the total. The total should have been 60. However, the number of Pclk pulses we counted was 61. This confirmed that there was one redundant pixel within each horizontal line. Next, we zoomed in on the falling edge of the Href signal and discovered that the Href was so long that it allowed the 61th Pclk pulse to pass through. Refer to figure 6. During this period of time, Y0-Y7 (brightness control) were all low. This resulted in a black dot being latched into the memory, which gradually formed the black diagonal line. Refer to figure. We concluded that a timing problem existed in prototype A. The next step was to modify the circuit to correct the Href timing. As an alternative solution, we put a subroutine in the camera firmware to eliminate the last pixel from each horizontal line in order to produce a good photo. Refer to figure 7. Figure 6. Zooming in to see the unwanted Pclk pulse Figure 7. Software compensated digital photo taken with prototype camera A

Model Number 61A 61D 6A 6D 6A 61A 61D 6A 6D Bandwidth 60 MHz 60 MHz 100 MHz 100 MHz 100 MHz 0 MHz 0 MHz 00 MHz 00 MHz Sample Rate 00 MSa/s 00 MSa/s 00 MSa/s 00 MSa/s 00 MSa/s GSa/s GSa/s GSa/s GSa/s Channel Count + 16 + 16 + 16 + 16 For more information visit the web site at: www.agilent.com/find/megazoom Memory Depth MB/ch MB/ch MB/ch MB/ch MB/ch MB/ch MB/ch MB/ch MB/ch Price $,801 $,01 $,0 $, $,07 $,716 $8,16 $7,81 $10,896 Agilent Reference Documents Publications Number 600-Series Application Notes: Agilent MSO and CEBus PL Communications 980-079EUS Testing Agilent I C Debugging 980-0796EUS Agilent Debugging Modern Power Electronics: 980-0797EUS Seeing the Whole Picture Verifying Bluetooth Baseband Signals 988-181EN Using Mixed-Signal Oscilloscopes 8 Hints for Debugging 980-09EN/EUS Microcontroller-based Designs Unique +16 channel mixed signal oscilloscope and or channel models all optimized for mixed analog and digital debug MB of MegaZoom deep memor on all channels New high-definition analoglike display system with levels of intensity Powerful triggering including edge, pulse width, pattern and new I C Standard RS- and parallel ports for PC and printer connectivity Built-in floppy for data, image and setup storage Measurements and math functions including FFTs standard Quick Help in 11 languages Optional GPIB interface module Optional integrated thermal printer 600-Series Product Literature: Agilent Technologies 600-Series Oscilloscopes Data Sheet Agilent Technologies 600-Series Oscilloscope,Probes and Accessories Data Sheet 968-81EUS 968-81EUS

www.agilent.com Agilent Technologies Test and Measurement Support, Services, and Assistance Agilent Technologies aims to maximize the value you receive, while minimizing your risk and problems. We strive to ensure that you get the test and measurement capabilities you paid for and obtain the support you need. Our extensive support resources and services can help you choose the right Agilent products for your applications and apply them successfully. Every instrument and system we sell has a global warranty. Support is available for at least five years beyond the production life of the product. Two concepts underlie Agilent's overall support policy: "Our Promise" and "Your Advantage." Our Promise Our Promise means your Agilent test and measurement equipment will meet its advertised performance and functionality. When you are choosing new equipment, we will help you with product information, including realistic performance specifications and practical recommendations from experienced test engineers. When you use Agilent equipment, we can verify that it works properly, help with product operation, and provide basic measurement assistance for the use of specified capabilities, at no extra cost upon request. Many self-help tools are available. Your Advantage Your Advantage means that Agilent offers a wide range of additional expert test and measurement services, which you can purchase according to your unique technical and business needs. Solve problems efficiently and gain a competitive edge by contracting with us for calibration, extra-cost upgrades, out-of-warranty repairs, and on-site education and training, as well as design, system integration, project management, and other professional engineering services. Experienced Agilent engineers and technicians worldwide can help you maximize your productivity, optimize the return on investment of your Agilent instruments and systems, and obtain dependable measurement accuracy for the life of those products. www.agilent.com/find/emailupdates Get the latest information on the products and applications you select. Agilent Direct www.agilent.com/find/agilentdirect Quickly choose and use your test equipment solutions with confidence. Agilent T&M Software and Connectivity Agilent's Test and Measurement software and connectivity products, solutions and developer network allows you to take time out of connecting your instruments to your computer with tools based on PC standards, so you can focus on your tasks, not on your connections. Visit www.agilent.com/find/connectivity for more information. By internet, phone, or fax, get assistance with all your test & measurement needs Online assistance: www.agilent.com/find/assist Phone or Fax United States: (tel) 800 89 Canada: (tel) 877 89 1 (fax) 90 8 69 China: (tel) 800 810 0189 (fax) 800 80 816 Europe: (tel) (1 0) 7 (fax) (1 0) 7 90 Japan: (tel) (81) 6 6 78 (fax) (81) 6 6 780 Korea: (tel) (8 ) 00 00 (fax) (8 ) 00 11 Latin America: (tel) (0) 69 700 (fax) (0) 69 799 Taiwan: (tel) 0800 07 866 (fax) 0800 86 1 Other Asia Pacific Countries: (tel) (6) 67 8100 (fax) (6) 686 0 Email: tm_asia@agilent.com Product specifications and descriptions in this document subject to change without notice. 00 Agilent Technologies, Inc. Printed in USA June 9, 00 988-8ENUS