Page 2
OPTi Inc. to notify any person of such revisions or changes. Trademarks OPTi and OPTi Inc. are registered trademarks of OPTi Inc. All other trademarks and copyrights are the property of their respective holders. OPTi Inc.
ChromaCast 82C205 ® Table of Contents INTRODUCTION ................................1 ..............................2 OMENCLATURE CHOOSING CHROMACAST 82C205 HARDWARE CONFIGURATION ..............3 CONFIGURING CHROMACAST 82C205 FOR A SPECIFIC PANEL ..............3 CRTC P ..........................4 ISPLAY ROGRAMMING Pixel Clock Frequency (in MHz): ........................4 Horizontal Sync Polarity: ..........................4 Horizontal Sync Width (in units of pixel clock)....................5 Horizontal Display Start (in units of pixel clock) ....................5...
Page 4
Programmer's Guide ChromaCast 82C205 ) ....................13 ERTICAL IDTH IN UNITS OF VIDEO LINES ) .....................14 ERTICAL ISPLAY TART IN UNITS OF VIDEO LINES ) ....................14 ERTICAL ISPLAY IN UNITS OF VIDEO LINES )......................14 ERTICAL OTAL IN UNITS OF VIDEO LINES CRTC ...............15...
Page 5
CCESS TO THE UFFER .................................42 NTERRUPTS Enabling an event to generate an interrupt ....................42 The interrupt/event status register.......................42 Clearing an interrupt/event ..........................43 POWER MANAGEMENT FOR CHROMACAST 82C205 ..................45 ..................................45 IMER Setting the timer interval..........................45 ® 915-2000-084 Revision 1.0 Page v...
Page 6
ANAGEMENT Notifying the CPU of the DPMS state......................46 Monitor is disconnected from the VGA controller ..................46 ChromaCast 82C205 Power Conservation Techniques................46 Example of Power Conservation Policy for DPMS..................47 APPENDIX A: EXAMPLE REGISTER INITIALIZATION VALUES.................49 APPENDIX B: COMMON VGA TIMING VALUES....................51 APPENDIX C: VCLK2 PLL M &...
® Introduction This is the programmer’s guide for the ChromaCast 82C205 LCD Monitor Controller. It is an application note for the ChromaCast 82C205 Databook that contains detailed register descriptions. This guide will walk the programmer through the various programming sequences necessary in order to build a customized LCD monitor control application.
DRAM to buffers for use by the ChromaCast 82C205. Testing This section indicates what sort of testing and debug options are available on the ChromaCast 82C205. TV Mode This section details how to operate the TV mode on the 82C205. The ChromaCast 82C205 interfaces with an NTSC/PAL decoder and accepts YUV 4:2:2 format.
® Choosing ChromaCast 82C205 Hardware Configuration ChromaCast 82C205 has a 24-bit digital interface that can be used with a PanelLink or LVDS receiver or external A/D converters. In addition to an external A/D converter, ChromaCast 82C205 supports external clock sources.
The following parameters for the Display CRTC timing, including pixel clock frequency, horizontal and vertical sync timings, timing for DE, and polarities of the horizontal and vertical syncs are determined by the specification for the panel that the ChromaCast 82C205 is controlling. Pixel Clock Frequency (in MHz): The panel is driven by a pixel clock, which is the same clock that drives the display subsystem of the ChromaCast 82C205.
Programmer's Guide ChromaCast 82C205 Note: Polarity can be defined as follows: If the sync is high while data is active, then it is an active low sync. If the sync is low while data is active, then is it an active high sync.
Programmer's Guide ChromaCast 82C205 Horizontal Total (in units of pixel clock) This is the period of Horizontal Sync. Horizontal Total Total Register 80h, 81h Vertical Sync Polarity This register sets the polarity of the vertical sync to the panel. It has no relationship to the polarity of the incoming sync from the VGA.
Programmer's Guide ChromaCast 82C205 Vertical Display End (in units of video lines) This is the time between the start of the vertical sync and the end of data valid. Vertical Display End Display End Register 90h, 91h Vertical Total (in units of video lines) This is the period of the vertical sync.
Programmer's Guide ChromaCast 82C205 Horizontal Timing for TFT Panel FPLINE DE (DRDY) … DATA Detail of Pixel Clock Timing DE (DRDY) FPSHIFT DATA * Polarity of FPFRAME, FPLINE, & FPSHIFT is programmable. * One and Two Pixels Per Clock are supported.
The VESA document VESA Monitor Timing Specifications discusses this in depth. ChromaCast 82C205 provides feedback to the 8051 micro-controller specifying the refresh rate and horizontal sync frequency of the VGA input. The 8051 micro-controller must then update the capture clock divider word (for the line-locked PLL), the capture CRTC registers, and the scaler ratio.
Programmer's Guide ChromaCast 82C205 Determining the Resolution of the Incoming VGA The resolution of the VGA can be determined by reading the resolution counter status register. This register gives the number of horizontal syncs between vertical syncs, i.e. the period of vsync in units of incoming video lines.
Programmer's Guide ChromaCast 82C205 Horizontal Sync Width (in units of VCLK1) This register defines the width of the active part of the sync (when data is not valid). This is for internal use, so it can be set to any value greater that 1. As a rule of thumb, set this to 10.
Programmer's Guide ChromaCast 82C205 and end value for the Capture CRTC, so in order to achieve a sync width of 1, the sync start should be programmed to be 1, and the sync end should be programmed to be 2.
Programmer's Guide ChromaCast 82C205 Vertical Total = Resolution Detection Register Value (Register 70h, 71h) Vertical Total V Total Register 50h, 51h Program the Capture CRTC to Synchronize to External Syncs The Capture CRTC can be programmed to synchronize to the incoming horizontal and vertical syncs, or it can free-run by generating its own syncs according to the values in the Capture Horizontal Total and Capture Vertical Total registers.
Register 3Ch, Bits[3:0] Scaling The ChromaCast 82C205 can scale an incoming video signal up to a larger panel resolution, or down to a smaller panel resolution. The programmer has to specify the incoming resolution, the outgoing resolution, and the scaling ratios in order for scaling to occur.
Programmer's Guide ChromaCast 82C205 VGA Example: Assuming a 640 x 480 VGA signal, the Xsize = 640 and the Ysize = 480. When scaling down, add 2Bh to Input Y size (Register 50h, 57h). Assuming a 1280x1024 VGA signal ouptus to a 1024x768 panel, the Xsize=1280 and the Ysize=1024 + 2Bh.
Register 66h, 67h Down Random DDA Init Using the Anti-Alias Filter ChromaCast 82C205 has an anti-alias filter that is used only for scale-down. If the 82C205 needs to scale down, enable this filter. Antialias Filter Enable AntiAlias Enable Register 6Eh ®...
Programmer's Guide ChromaCast 82C205 ® “Centering” Up to this point only scaling to the full panel resolution has been discussed. The 82C205 also offers a “centering” option which allows an image that is of lower resolution than the panel to be displayed in the center of the panel, surrounded by a black border that makes up the difference between the image resolution and the panel resolution.
Programmer's Guide ChromaCast 82C205 ® Contrast and Brightness Adjustment There are two ways to change the contrast of the image. The first is through the analog gain adjustment on the external A/D converters. Usually this is adjusted once and then left alone. When the user adjusts the contrast and brightness through the user interface, the user will adjust the digital contrast and brightness levels.
Register 2Ah, 2Bh Vertical Register 2Eh, 2Fh Selecting OSD Attributes ChromaCast 82C205 is full of useful attributes for the OSD, such as: • transparent pixels – opt for a non-rectangular OSD shape • blinking pixels - the 82C205 can blink to the underlying video, or to the color value in Index 0 of the register CLUT.
Alpha Blend Operation The alpha blend value in ChromaCast 82C205 is 5-bits wide. When the alpha blend value is set to 10h, the OSD overlay completely obscures the underlying video (this is full scale). When the alpha blend value is set to 00h, the OSD pixel is transparent.
Memory Configuration and Allocation The ChromaCast 82C205 uses a 4 Mbyte DRAM buffer for a FRC (Frame Rate Conversion) frame buffer, as well as a buffer for the OSD bitmap. Frame Rate Conversion means that the 82C205 can accept video arriving at different refresh rates than the panel supports.
DRAM, burst type, and burst length. Programming the refresh rate The refresh rate for DRAM is controlled by a counter inside of ChromaCast 82C205. The counter can be programmed and is clocked by a 14.318 MHz reference clock. Whenever the counter reaches the programmed terminal count, a refresh request will be generated.
Programmer's Guide ChromaCast 82C205 Now the DRAM interface is configured, and the next step is to allocate the DRAM address space to the various buffers. DRAM Buffer Allocation The frame buffer is used to capture data, and then display it. When the 82C205 is in bypass mode, the frame buffer is not used.
Programmer's Guide ChromaCast 82C205 which is the number of pixels per lines to be accessed multiplied by the bits per pixel and divided by the word size which is 64*8 for the DRAM configuration. VGA Frame Buffer Calculating the pitch of the frame buffer...
Programmer's Guide ChromaCast 82C205 OSD Buffer Calculating the OSD Pitch The pitch of the OSD buffer can be calculated as follows: OSD Pitch (in bytes) = [(OSD Horizontal Size x 4)+((64*8)-1)] / 8 Calculating the size of the OSD DRAM buffer The pitch of the OSD determines the size of the OSD buffer required.
Programmer's Guide ChromaCast 82C205 Display FIFO Word Count This value indicates how many DRAM read accesses that the FIFO will perform in one line. Use the following formula: Display FIFO Word Count = [(Display Panel Horizontal Size * Primary Bits...
The major subsystems of ChromaCast 82C205 are controlled by separate software resets. Various hardware internals of ChromaCast 82C205 can be powered down by software for testing purposes. The video input subsystem can be disabled (stopping the capture), as can the video output subsystem (stopping the display).
Programmer's Guide ChromaCast 82C205 Revision Number The Revision number of ChromaCast 82C205 is in a read-only register. Revision Number Revision Register 00h FIFO Status The internal FIFOs within the 82C205 have flags that will trigger for overflow and underflow conditions. In order to clear these flags, the program must write a “1”...
Programmer's Guide ChromaCast 82C205 Memory Subsystem Status The internal blocks of the memory subsystem have status registers that can be used to observe the state machines of the memory arbiter and sequencer. These registers can be used to detect a lock-up of the memory system.
Required Synchronization signals from the TV decoder ChromaCast 82C205 requires an odd/even flag from the TV decoder instead of a vertical sync. The polarity for this flag is programmable, and will switch which field is considered odd and which is even, but this is not really a necessary distinction.
See the section on Scaling. The scalers will have to be updated when TV mode is entered. IP Conversion In order to convert the television signal from interlaced mode to progressive scan mode, IP conversion is necessary. Three types are implemented on ChromaCast 82C205: 1-Field Bob Mode, 2-Field Bob Mode, and Weave Mode. Bob Mode ChromaCast 82C205’s 2-Field Bob Mode is the recommended interlaced-to-progressive method.
Page 47
Programmer's Guide ChromaCast 82C205 field is then captured into those ”skipped” lines. This method results in motion artifacts from the temporal inconsistencies. 1. Set the Display Field 2 Start = Display Field 1 Start. 2. Make sure the Capture Field 2 Buffer does not collide with the Capture Field 1 Buffer. Capture Field 1 must now hold 480 lines, and Field 2 should have 0.
Managing the DDC Transfer The ChromaCast 82C205 can ask for service from the CPU by means of an active low interrupt line. This is how the 82C205 communicates events such as a change of resolution on the incoming video, a DDC service request, and a power management service request.
Bank Register (Index 1Ch) DRAM Address[21:14] Another bit in the ChromaCast 82C205 will disable the memory accesses (reads and writes), so the 82C205 will ignore any memory reads and writes. For normal operation, this bit should be set to 0h.
Programmer's Guide ChromaCast 82C205 Interrupt Status Status Register B5h Clearing an interrupt/event Write a “1” to the bit in the Interrupt Clear Register that corresponds to that event. Interrupt Clear Clear Register B5h ® 915-2000-084 Revision 1.0 Page 43...
Power Management for the system. Timer ChromaCast 82C205 has a general purpose on-chip timer that can be used by the CPU to control power sequencing and power management time intervals. The timer is a 19-bit countdown timer that can count from 5 seconds down to 0 in 10 µs intervals.
Operating without External Syncs Free Run Register 52h, Bits[1:0] Capture CRTC ChromaCast 82C205 Power Conservation Techniques The ChromaCast 82C205 can disable its on-chip PLLs and it can power down the panel backlight and panel power. Hardware Enables Enables Register C9h ®...
Programmer's Guide ChromaCast 82C205 Example of Power Conservation Policy for DPMS There are 4 states in the DPMS Power Management system. Below are these states are indicated, along with a possible power conservation policy. This is only one of many possible implementations.
Page 56
Programmer's Guide ChromaCast 82C205 Suspend Now it is time to shut down most of the system. Power off the A/Ds and the backlight. The PLLs and the panel will still have power. Wait for 5 s (using the timer). Check the status of the Sync Lost Bits. If horizontal and vertical sync are now present, power the A/Ds and backlight back on, and return to the on state.
The following table shows initialization values for ChromaCast 82C205 registers for a 1024x768, 60 Hz TFT panel accepting 1024x768, 70 Hz VGA input. The ChromaCast 82C205 is using the DRAM frame buffer and an external line-locked PLL in this example.
Programmer's Guide ChromaCast 82C205 ® Appendix B: Common VGA Timing Values The following values are extracted from the VESA Computer Monitor Timing Standard. These are the values that a programmer may choose to include in a look-up table in order to properly program the Capture CRTC to accept different resolutions and refresh rates.
Programmer's Guide ChromaCast 82C205 ® Appendix C: VCLK2 PLL M & N Values This table indicates the M and N values for the Display PLL (VCLK2). These values can also be used for programming the memory clock (MCLK) PLL. N Frequency(MHz) 25.056815...
Programmer's Guide ChromaCast 82C205 ® Appendix D: ChromaCast OSD (On-Screen Display) User's Guide The ChromaCast On-Screen Display (or OSD) allows the user to alter the screen image appearance to suit their individual preferences Enabling OSD The end user can enable OSD on the screen by pressing either the “Select” or the “Adjust” button on the front panel of the LCD.
Programmer's Guide ChromaCast 82C205 Mode Button: This button is used to select one of the four input modes. Pressing the button once will initially display the current display mode. Pressing the button again will allow the user to toggle between the following four input modes: 1.
Programmer's Guide ChromaCast 82C205 Recall Icon: Use Select button to choose either “USER Recall” mode or “Factory Recall, then use Adjust button to excute it (Your choice will be updated only when you executed Exit command). USER Recall mode Allows you to reinstate all of ChromaCast Registers setting from previous value saved by user.
Page 68
Programmer's Guide ChromaCast 82C205 Manufacture debugging mode This mode is provided for debugging only. Only engineers thoroughly familiar with the ChromaCast registers should ever attempt to use this mode. Press both Adjust buttons (“+” and “-“) at the same time, then enter a ChromaCast Register number and its contents will be displayed on the OSD window.
Need help?
Do you have a question about the ChromaCast 82C205 and is the answer not in the manual?
Questions and answers