Part Number Hot Search : 
ZPY47 STTH3012 18TRC9 PEMB13 FSMD160 XF0013B1 MA26V09 CD7738CP
Product Description
Full Text Search
 

To Download AN631 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  technical note stv5730 osd chip evaluation guide AN631/0694 summary page i overview of this document . ....................................... 1 ii summary of stv5730 functions . . . . . . . . ............................. 1 iii getting started . . . . . . .......................... ................... 2 iv pc software step by step stv5730 features demo . . . . . . . . . . . ....... 4 v extra modes/functions . . . . . ....................................... 5 vi register modification. .......................... ................... 5 vii register description . . . . . ......................................... 6 viii ram modification . . . . . . . . . . ......................................... 10 ix electrical schematic . . . . . . . . . . . . . . . . . ............................. 11 x appendix . . . . . . . . . . . ............................. ................... 12 i - overview of this document the objective of this evaluation guide is to provide a quick and easy instruction manual for displaying osd text with the stv5730 and its demonstration software. six basic demonstration pages of text have been created which are intended to show some of the main features of the stv5730. these pages (context files) can be used as a basis for further detailedevaluation of the device by entering the omodify ram registerso mode. ii - summary of stv5730 functions ? 11 rows consisting of 28 characters ; thus 308 characters per page maximum. ? 128 different user definable characters can be stored in rom. ? output signals : - composite video : video in+text(translucent)-all standards video in+text(opaque)-pal/ntsc - rgb+fb-corresponding to entire text page - co-digital output corresponding to text info ? csync- currently active sync(extracted from video in or internally generated) ? mute-monitors quality of video in sync signal ? character attributes - one of 8 colours - character border and backround - character blinking ? line (row) attributes - line horizontal offset - line vertical offset - line hide/show - background on/off - character border on/off - line zoom (x1, x2, x3, x4 for both x and y coordinates) 3 different zoom factors for lines 1, 2 to 10 and 11 ? page attributes - horizontal and vertical offsets - screen color background color character border color - clean color encoding (cce) - blinking frequency and duty cycle 1/13
? three basic operating modes - mixed mode : text page is displayed over the incoming video signal either in b/w or transpar- ently (some video in visible behind text). alter- natively, coloured osd is available from the rgb outputs for external insertion by the fast blanking signal. - full page mode : the stv5730 outputs an entire frame with internally generated verti- cal/horizontal synchronisation. in this mode, the cvbs outputs the screen, background and text in colour (pal or ntsc encoded). - video full page mode : color (cvbs) text is superimposed on unsynchronized video in background. this mode is useful for man- ual/automatic channel search functions. in both the above cases, character positions are referenced to an internal line blanking pulse. the stability of this pulse (and hence text stability) in mixed mode, is guaranteed by the use of a digitally controled line pll. iii - getting started for the osd demo/evaluation,the following equip- ment is required : - stv5730 evaluation board (supplied) - stv5730 pc control software diskette (supplied) - pc parallel port interface cable (male to female) - pc or compatible - television monitor (multistandard) - scart type connection to tv - video signal pattern generator or video source (vcr, sat receiver, etc...) - +5v power supply the connection diagram (see figure 1) shows how the evaluation board must be connected. please ensure that the evaluation board switches are set to the positions given in figure 2. ext osc. csync video in stv5730 video signal generator or video source pc or compatible dvdd dgnd bench power supply +5v 0v cvbs out pc interface tv scart tv monitor 5730-08.eps figure 1 : stv5730 evaluation connection diagram stv5730 - osd chip quick evaluation guide 2/13
5730-09.eps figure 2 : stv5730 evaluation board diagram stv5730 - osd chip quick evaluation guide 3/13
installing the software after all the interconnections have been made, the +5v to the pcb can be switched on, and all other equipment turned on. 1. insert the stv5730 demo program diskette, and using the dos command, set the pc to the relevant disk drive. eg. [b:] + rtn 2. type [cd stv5730] + rtn , then type [stv5730] + rtn this will locate the appropriate directory and load the stv5730 pc control executable file .exe. at this point, if any pc interface connection errors are encountered, (or the evaluation board supplies have not been set), the program will fail to load since a connection test is performed at the beginning of the program. if this occurs, please check the interface and retry. a main menu consisting of 10 different choices will be displayed on the pc monitor, and the program will prompt for a number (1 to 10) to be entered to perform one of the menu functions : see figure 3. 3. stv5730 initialization in order that the stv5730 registers be cleared and set to a given condition, an initialisation sequence is required. a specific context file has been written to perform this function, and is loaded as follows : a. type [5] + rtn . this resets registers to 0 b. type [3] + rtn . this enters the oload contexto function c. type [init.dat] + rtn . this loads the context file init.dat, and sets the stv5730 registers. now, the video in signal (from the pattern generator or video source) should be displayed on the tv monitor. we can now proceed with the demo, which summarizes most of the stv5730 features and operation modes combined in 6 pages of text. figure 3 : menu functions 1 : modify ram - to change character attributes or create text page 2 : modify registers - to change operation modes, page and row attributes, etc. 3 : load context - to display .dat text page files 4 : save context - to save modified .dat files (or new text pages) 5 : reset - to reset the stv5730 registers (see 3. stv5730 initialization) 6 : stop quartz - to stop on-board crystal oscillator (to reduce polution when osd is not displayed) 7 : setup - to select data entry possibilities (hex or binary), etc. 8 : application example - a simulation of a typical osd menu system controlled from a remote control 9 : mute test - to simulate the mute signal controlling the mode full page or mixed 10 : quit - to exit program. iv - pc software step by step stv5730 features demo 1. type [3] + rtn , then type [demo1.dat] + rtn this will display a demo title page in mixed-mode (i.e. superimposed on the video in signal). 2. type [3] + rtn , then type [demo2.dat] + rtn this will display a message showing the 128 different characters stored in the default character set - this time in full-page mode. 3. type [3] + rtn , then type [demo3.dat] + rtn this page shows the horizontal line offset capability of the stv5730 (this time in transparent mixed mode). 4. type [3] + rtn , then type [demo4.dat] + rtn this page shows the vertical line offset feature, and could be used to create a scrolling effect. this page is displayed in video full page mode, where the video in signal can be seen (unsynchronized) behind the text. 5. type [3] + rtn , then type [demo5.dat] + rtn this page shows the stv5730 zoom feature in full-page mode. the screen is now replaced by an uniform colour 6. type [3] + rtn , then type [demo6.dat] + rtn this page shows the use of character backround and oblinkingo characters. 7. type [3] + rtn , then type [cbar1.dat] + rtn this page shows a colour bar pattern generated by the stv5730 in cvbs. stv5730 - osd chip quick evaluation guide 4/13
v - modes/functions description 1. transparent mode operation (in mixed-mode only ) : this feature allows the viewer to display the text but with an amount of the video in signal slightly visible behind the text page. this feature apart from giving a pleasing visual effect, allows secam mode operation by providing the necessary chrominance reinsertion during the text periods (see figure 4). this feature is performed by connecting ratioed resistors between the two cvbs outputs as shown in figure 4. the resistor ratio can control the degree of transparency. text v out1 v out2 video in video out (video in+ transparent text) stv5730 r1 r2 5730-10.eps figure 4 this mode can be bus controlled simply by setting the vout2 pin to either olow zo for otransparento mode, or to ohigh zo for normal (black/white) mixed mode text. 2. rgb mode operation : so far, we have looked at only the cvbs output signals. now we can display the text full-page in rgb simply by switching the fb signal output of the stv5730 to the scart connector output (using switch 3). obviously, this feature will require a tv that has an external rgb input capability. in full-page mode, the page (screen) backround is provided by the cvbs output, and its colour is encoded in pal/ntsc. the rgb mode is performed on the evaluation board by replacing the switch 3 jumper to position 1, shown in figure 2. a further possibility can be viewed on the evaluation board, by replacing the switch 1 jumper to position 2. in this position, the co (character output) digital signal controls the text insertion (fast blanking signal). this gives a othree dimentionalo type display where each character has its information output in rgb, and simultaneously in cvbs, which has a delay assosiated with its encoding, and subsequent decoding in the tv receiver. this effect works best on expanded characters (particularly in the x direction) and could be useful for main title type text applications. to best view this effect, a dedicated text context file page has been created : type [3] + rtn , then type [3d.dat] + rtn remember : this effect can only be viewed if the tv receiver has an external rgb insertion capability. also, check that switch 3 is in position 2. 3. external character and background level control : in cvbs mode (i.e. switch 3 returned to position 3) the character and background levels can be controlled independantly by the two potentiometers. adjusting these potentiometers allow the text and text backgroundto be set from black through to white, allowing onegativeo text display if prefered. caution : extremes of potentiometers settings could cause problems with the tv receivers synchronization operation, since these levels can be reduced to less than black level. vi - register modification after a given context file page has been displayed, we can perform many modifications on the text display or system operation simply by entering the second menu item - modify registers : type [2] + rtn a sub-menu will now be displayed which allows the user to select the required ram register for modi- fication simply by entering the appropriate letter : eg. video register : type [v] + rtn the current data will now be displayed, and the program will prompt for new data (three digits in hexadecimal form) to be entered.after the required data has been input ; eg. [020] + rtn , the ram register is updated (in this case +6db output gain is selected). when this is complete, before new data can be written, the relevant register selection must be performed (even if writing to the same register). this part of the program may be exit (i.e. returned to main menu) simply by pressing rtn when asked to make a register selection. when returning to the main menu, it may be useful to save the modified text page. this can be per- formed by selecting the osave contexto func- tion as follows : type [4] + rtn *at this point, the program will prompt for a file name, date and comment (if required). when this is completed, the program will save the data in the allocated context file. stv5730 - osd chip quick evaluation guide 5/13
register menu the following registers can be modified using the stv5730 pc control program : 0 to 10 : row attributes z : zoom register c : color register r : raster (control) register p : position register m : mode register for easy register content modification, a description of the 12 bit word content for each register is given. vii - register description vii.1 - row attributes (rows 0 to 10) write to addresses : 0000 1100 0000 to 0000 1100 1010 for each respectively 111098 7654 3210 hpos offset re fbe vpos offset first hex digit second hex digit third hex digit vpos offset : the msb is the sign bit (0 : positive, 1 : negative). if the offset is positive (from 0 to +17), then the corresponding number of lines are added on top of the row (i.e. it moves downwards). these extra lines are colored according to the character background rules. if the offset is negative (from -1 to -17), then the corresponding number of lines are subtracted from the display of the row. fbe : fbe = 0 fbe = 1 : : the characters are displayed without border the characters are displayed with border re : re = 0 re = 1 : : the characters of the row are not displayed. they are replaced by the page background color. the characters of the row are displayed. hpos offset : the display of the row is shifted to the right by the corresponding number of pixels (from 0 to 15). example : please load demo1.dat ; enter menu item 2 (modify registers). to access the row to be modified, enter a digit 0 to 10. eg1.type [0] + rtn , the [080] + rtn this will set the fbe bit to 0 and the display will show the first line of text without border. eg2.type [10] + rtn , the [000] + rtn now the last line of text will disappear. eg3.type [0] + rtn , the [2f0] + rtn this time, the first line of text will move horizontally and vertically. *type rtn to exit to main menu stv5730 - osd chip quick evaluation guide 6/13
vii.2 - zoom register write to addresses : 0000 1100 1100 111098 7654 3210 vzb1 vzb0 hzb1 hzb0 vzm1 vzm0 hzm1 hzm0 vzt1 vzt0 hzt1 hzt0 first hex digit second hex digit third hex digit hzt[1:0] : top row horizontal zoom factor (ie row 0) hzt[1:0] = 00 01 10 11 : : : : 1 pixel per character dot 2 pixels per character dot 3 pixels per character dot 4 pixels per character dot vzt[1:0] : top row vertical zoom factor vzt[1:0] = 00 01 10 11 : : : : 1 pixel per character line 2 pixels per character line 3 pixels per character line 4 pixels per character line hzm[1:0] : same as hzt[1:0], for middle rows (ie rows 1 to 9) vzm[1:0] : same as vzt[1:0], for middle rows hzb[1:0] : same as hzt[1:0], for bottom row (ie row 10) vzb[1:0] : same as vzt[1:0], for bottom row this register is validated by the first line sync pulse immediately after it is written. example : please load demo5.dat ; enter menu item 2 (modify registers) eg.now press [z] + rtn , the [00f] + rtn the display will shows the top row of text expanded to the maximum (x4,y4) whilst the other two lines return to the minimum size. vii.3 - color register write to addresses : 0000 1100 1101 111098 7654 3210 r g b r g b // // // r g b first hex digit second hex digit third hex digit sbc : screen background color fbc : character border color bcc : character background color this register is validated by the first line sync pulse immediately after it is written. * note : the character foreground color is defined in the ram register. example : please load demo2.dat ; type [2] + rtn to acess the modify register program. eg.type [c] + rtn , the [601] + rtn the text color will remain unchanged, but the screen will now become green, and the character background will be blue. stv5730 - osd chip quick evaluation guide 7/13
vii.4 - control register (raster register) write to addresses : 0000 1100 1110 111098 7654 3210 c11 c10 c9 c8 c7 c6 c5 c4 c3 c2 c1 c0 first hex digit second hex digit third hex digit c0 : c0 = 0 : mixed mode c0 = 1 : full page mode c1 : c1 = 0 : the character background is controlled by be (see character word description) c1 = 1 : all displayed character backgrounds are disabled c2 : c2 = 0 : display off c2 = 1 : display on c3 : c3 = 0 : the characters are colored according to the character attribute and the color register values (i.e. cbackg and cbord) c3 = 1 : the character foreground, border and background colors are all set to the character attribute value (see paragraph 1.2). this option is mainly intended for full page mode, cvbs or y/c output (clean color encoding cce) c4 : c4 = 0 : 1.0 second blinking period c4 = 1 : 0.5 second blinking period c[6:5] : c[6:5] = 00 01 10 11 : : : : blinking off 0.75 blinking duty cycle 0.5 blinking duty cycle 0.25 blinking duty cycle c7 : c7 = 0 c7 = 1 an external input composite sync is taken from the csync pin the sync is extracted by the stv5730.the currently active sync is output on the csync pin c8 : c8 = 0 : the standard is ntsc, 60hz c8 = 1 : the standard is pal or secam with m6 = 0, 50hz c9 : c9 = 0 : character color encoding is disabled c9 = 1 : character color encoding is enabled c10 : c10 = 0 : the luminance levels are generated internally c10 = 1 : the luminance levels are provided by the lescreen and lechar input pins. c11 : c11 = 0 : video full page mode. a stable full page mode text is displayed while the screen background is the unlocked video input signal. c11 = 1 : normal full page mode is active. the output of this register is synchronized by the horizontal sync (except c7). the reset message clears this register. example : please load demo1.dat ; type [2] + rtn to modify registers eg1.type [r] + rtn , the [f85] + rtn the page will now be displayed in full page mode, and the ostv5730o will not blink. eg2.type [r] + rtn , the [ffd] + rtn now the display will have the clear color encoding (cce) function active, in which the character background and border become that of the programmed color of each character. this effectively limits the color transitions, to give a more pleasing cvbs picture. also, the blinking frequency is doubled, and the duty cycle inverted. eg3.type [r] + rtn , the [1a5] + rtn this time the text will be displayed in video full page mode, in which the screen background is replaced by an unsynchronized video in signal. also the character color encoding is disabled, and the internal levels (lechar/lescreen) are programmed (external potentiometers have no effect). stv5730 - osd chip quick evaluation guide 8/13
vii.5 - position register write to addresses : 0000 1100 1111 111098 7654 3210 vertcal position horizontal position first hex digit second hex digit third hex digit horizontal position any value from 6 to 63 vertical position any value from 1 to 63 this register is validated as it is written. example : please load demo3.dat ; type [2] + rtn to access the modify register menu eg1.type [p] + rtn , the [000] + rtn the text will be displayed at its normal position on the screen (no-offset). eg2.type [p] + rtn , the [fff] + rtn the text will now be displaced to the maximum position both horizontally and vertically. this register is used to optimize text position on the tv monitor. vii.6 - mode register write to addresses : 0000 1101 0000 111098 7654 3210 m11m10m9m8 m7m6m5m4 m3m2m1m0 first hex digit second hex digit third hex digit m0 : m0 = 0 m0 = 1 : : the bar pin is disabled the bar pin has an action on the line pll m1 : m1 = 0 m1 = 1 : : the missing sync pulses are not detected the missing sync pulses are detected m2 : m2 = 0 m2 = 1 : : the mute pin is forced to 0 the mute pin delivers the internal mute signal m3 : m3 = 0 m3 = 1 : : the mute time constant is 8 lines the mute time constant is 32 lines m4 : m4 = 0 m4 = 1 : : the sync is not re-inserted the sync is re-inserted for improved text stability m5 : m5 = 0 m5 = 1 : : the gain of pins video out1 & video out2 is 0db. the gain of pins video out1 & video out2 is 6db. m6 : m6 = 0 m6 = 1 : : the color encoder is enabled (pal or ntsc) the color encoder is disabled (b&w or secam) m7 : m7 = 0 m7 = 1 : : the video out2 pin outputs the video in signal the video out2 pin outputs the composite sync m8 : m8 = 0 m8 = 1 : : the video out2 pin is in high impedance state the video out2 pin is in low impedance state m9 : this mode bit has to be kept at a low level. m10 : m10 = 0 m10 = 1 : : no delay compensation it enables the delay compensation of the internal sync extractor. m11 : m11 = 0 m11 = 1 : : the mute signal output is synchronized on vertical sync in order to limit its transitions. the mute signal is not synchronized on vertical sync thus accelerating the video in presence detection (useful in full page mode). this register is validated as it is written. example : please load demo3.dat ; type [2] + rtn to display modify register menu eg.type [m] + rtn , then [180] + rtn now the text will change to b/w mixed mode with 0db gain. * note : a majority of the bit functions in this register are dedicated to the analog signal processing functions, such as sync extraction/reinsertion or omuteo output optimization. they can not be easily demonstrated, since they are intended to optimize the stv5730 performance in noisy environments (off-channel tunning) or vcr applications, for example. stv5730 - osd chip quick evaluation guide 9/13
viii - ram modification after a given context file page has been displayed, it is possible to modify the ram context by entering the second menu item - modify ram : type [1] + rtn . a submenu will be displayed allowing easy selection of the character requiring modification. firstly, the modify ram program will ask for the osd line number . this is the actual row 0 to 10 (11 rows per page !) that the character is to be displayed on : enter 0x0 to 0xa. then the program prompts for the horizontal number. this is the actual character position on a given line location from 0 to 27 (28 characters per row !) : enter 0 x 0 to 01b. following this data input, the current ram contents are displayed : - ram : xxx. this gives the write pointer data (see datasheet 2.2). - current value : xxx. this gives the current character attributes data. - enter new data : - the new data must be entered using three hex digits, conforming to : 111098 7654 3210 be r g b bk character code first hex digit second hex digit third hex digit character code : 1 character out of 128 from the character rom bk : bk=0 : character blink disabled bk=1 : character blink enabled r/g/b : character color : 000 001 010 011 100 101 110 111 black blue green cyan red magenta yellow white be : be=0 : be=1 : the character background is disabled the character background is enabled in the appendix there is the table of the standard rom characters with the character code value expressed in hexadecimal (see figure 6). stv5730 - osd chip quick evaluation guide 10/13
ix - electrical schematic 1 2 3 4 5 6 7 8 9 10 16 17 18 19 20 26 27 28 11 12 13 14 15 21 22 23 24 25 yout video in res ftr av dv csync dd dd xtal in xtal out mute data sck scn r g b fb co bar dgnd agnd lechar lescreen cout cin video out2 video out1 yin s t v 5 7 3 0 r32 6.8k w r33 3.3k w 1k w 12pf 470pf 27 m h 56pf 20 m h 7.5k w 2.5k w * optional luma filter * optional chroma filter c3 2.2 m f av dd c9 100nf 2k w r23 2k w r22 1k w av dd c8 100nf 2k w r21 2k w r20 1k w r30 5.6k w 1 2 3 sw3 av dd tr5 r5 68 w r19 1k w dv dd tr4 r4 r15 2k w 68 w r16 3k w r17 1k w dv dd tr3 r3 r12 2k w 68 w r13 3k w r14 1k w dv dd tr2 r2 r9 2k w 68 w r10 3k w r11 1k w dv dd tr1 r1 r6 2k w 68 w r7 3k w r8 1k w 5x 2n2222 20 18 16 14 12 10 8 6 4 2 1 3 5 7 9 11 13 15 17 19 21 tv scart con3 r29 75 w 1 2 sw1 r28 75 w video in j3 av dd c12 220nf dv dd c13 220nf c5 39pf c4 39pf 4fsc x1 csync j2 r31 22k w c1 68nf c2 220pf sw2 1 2 dv dd r26 1k w 12 13 f 7407 dv dd r25 1k w 10 11 e 7407 dv dd r13 4.7k w 8 9 d 7407 4 3 b 7407 1 2 a 7407 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 dconn 25 pins j1 ext osc 1 tp1 bar r test-intf data mp csn mp test-intf sck mp mute mp dgnd dgnd dgnd dd v c11 22 m f gnd * ic1 = 74hc07 av dd r18 100 w dv dd av dd r24 1k w 5730-11.eps figure 5 stv5730 - osd chip quick evaluation guide 11/13
00h 01h 02h 03h 04h 05h 06h 07h 08h 09h 0ah 0bh 0ch 0dh 0eh 0fh 10h 11h 12h 13h 14h 15h 16h 17h 18h 19h 1ah 1bh 1ch 1dh 1eh 1fh 20h 21h 22h 23h 24h 25h 26h 27h 28h 29h 2ah 2bh 2ch 2dh 2eh 2fh 30h 31h 32h 33h 34h 35h 36h 37h 38h 39h 3ah 3bh 3ch 3dh 3eh 3fh 5730-12.eps figure 6 x - appendix stv5730 - osd chip quick evaluation guide 12/13
information furnished is believed to be accurate and reliable. however, sgs-thomson microelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. no licence is granted by implication or otherwise under any patent or patent rights of sgs-thomson microelectronics. specifications mentioned in this publication are subject to change without noti ce. this publication supersedes and replaces all information previously supplied. sgs-thomson microelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of sgs-thomson microelectronics. ? 1994 sgs-thomson microelectronics - all rights reserved purchase of i 2 c components of sgs-thomson microelectronics, conveys a license under the philips i 2 c patent. rights to use these components in a i 2 c system, is granted provided that the system conforms to the i 2 c standard specifications as defined by philips. sgs-thomson microelectronics group of companies australia - brazil - china - france - germany - hong kong - italy - japan - korea - malaysia - malta - morocco the netherlands - singapore - spain - sweden - switzerland - taiwan - thailand - united kingdom - u.s.a. 40h 41h 42h 43h 44h 45h 46h 47h 48h 49h 4ah 4bh 4ch 4dh 4eh 4fh 50h 51h 52h 53h 54h 55h 56h 57h 58h 59h 5ah 5bh 5ch 5dh 5eh 5fh 60h 61h 62h 63h 64h 65h 66h 67h 68h 69h 6ah 6bh 6ch 6dh 6eh 6fh 70h 71h 72h 73h 74h 75h 76h 77h 78h 79h 7ah 7bh 7ch 7dh 7eh 7fh 5730-13.eps figure 6 (continued) stv5730 - osd chip quick evaluation guide 13/13


▲Up To Search▲   

 
Price & Availability of AN631

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X