Home

V – DU Development Kit

image

Contents

1. d C 000000 V DUO Development Kit User Manual REV 1 1 Page25 37 Copyright 2008 DENSITRON TECHNOLOGIES ple 5 3 Connectors pin out DENSITRON DISPLAYS 21 MICROSD This socket supports Micro SD cards with up to 2 Gb of memory SOCKET Pin Nr Signal name Pin Nr Signal name 1 DAT2 6 VSS 2 CD DAT3 7 DATO 3 CMD 8 DAT1 4 VDD 9 C DETECT 5 CLK 10 GND J2 VIDEO IN This is the composite video input connector Expected signal levels are 1Vp p Pin Nr Signal name Pin Nr Signal name 1 AIN 2 AGND J3 OLEDA This is the PM OLED interface compatible with the original USBO6 DUO kit Pin Nr Signal name Pin Nr Signal name 1 DO 11 CD 2 D1 12 CS 3 D2 13 GND 4 D3 14 GND 5 D4 15 VLED 6 D5 16 GND 7 D6 17 GND 8 D7 18 GND 9 RD 19 VCC 10 WR 20 VCC J4 OLED B This is the PM OLED interface compatible with the original USBO6 DUO kit Pin Nr Signal name Pin Nr Signal name 1 GIOO 11 VLED PWM 2 GIO1 12 SCL 3 GIO2 13 SDA 4 NC GIO3 14 RES 5 NC GIO4 15 HPD 6 NC GIO5 16 NC KEY 7 AC IN 17 GND 8 NC GIO7 18 GND 9 RD 19 VCC 10 VLED ENA
2. a Pipe function stored in b VDUO driver Main timed thread K A display specific dynamic S loaded libraries V DUO buttons A Video capture from i composite input I2C driver 4 3 Touch demo Touchscreen ge Display Power monitoring 34 uController SPI to display Power button l Power switches Power supplies and b Control power switches V DUO Development Kit User Manual REV 1 1 Pagell 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSITRON DISPLAYS 2 8 Demo script syntax For demonstrating the V DUOs features a simple demo script language was defined and is detailed below A file named demo script must be saved in the root of the SD card or as demo scr in NAND flash The demo script file on SD card will only be loaded if the SD card was in its socket during booting Command Parameter Description PLAY VIDEO Filename Plays an MP4 video file The next command will only be executed when the file ends SHOW JPEG Filename Shows a JPEG file CAPTURE START Starts capturing from the composite video input This command must be followed by a DELAY command to avoid the next command in the script being executed immediately If no composite video signal is detected or the format invalid video capture will not start CAPTURE STOP Stops composite video capture if running DE
3. 222 1 1 2 2 4 ease eese tasse ease e 3 3 1 CONTROLS 0 0 1 2 1 00000000000 stets ete ee terere tes serene seres eres set renes te eene 3 3 2 MEDIA CONTROL Trap 3 3 3 SLIDE SHOW TAB verreckten eaae RRs Sees 3 3 4 BOARD INFORMATION 3 3 5 SCRIPT EDITOR TAB assassins 3 3 6 ABOUT TAB 2 3 4 SCRIPT 002022220205200 3 4 1 CREATING A DEMO 5 2 02 2 0 0 00022 000000000 0000000 3 5 22 5 222 5 xen ee ee adeo ea evo sa eaa Cae res 3 5 1 POWER SUPPLY ARCHITECTURE 4000000 3 5 2 OUTLINE AND CONNECTOR PLACEMENT DRAWING nennen 3 5 3 CONNECTORS PIN OUT 3 5 4 CHARACTERISTICS ccccccccccesscccsscccssssceessccesscecsstsecsesccesseccsstsvecsseeessecssseestsecenas 3 6 25 2 EES 3 6 1 DESCRIPTION OF DISPLAYS CONFIG DAT ccc cccccccccccceeccccceeeesceceeeeseceeeesseceeeeseceees 3 6 2 FRAMEBUFFER 3 6 3 BOOTING WHILST MONITORING CONSOLE 3 6 4 MODIFYING AMOLED INITIALISATION SCRIPT 3 bI A 2 3 V DUO Development Kit User Manual REV 1 1 Basen 2 Copyright 2008 DENSITRON TECHNOLOGIES
4. Max Unit Input voltage from AC DC wall adapter V_ACIN 4 4 5 16 V Input voltage from USB slave port V USBIN 4 4 5 6 V VLED output for PMOLED displays VLED 5 27 V Maximum current from ACIN 2 Maximum current from USB slave power 500 mA Maximum current from battery B E 2 A Maximum current from DCIN BQ24030 2 A output Maximum current from OLED_VCC 600 mA Maximum current from DCIN by display a 1 7 A Sleep current without display TBD mA Current consumption without display TBD mA V DUO Development Kit User Manual REV 1 1 Page29 37 Copyright 2008 DENSITRON TECHNOLOGIES ple DENSITRON DISPLAYS Appendix 6 Appendix 6 1 Description of displays config dat This file contains the general description for different displays The file is made up of sections The syntax used to define and declare a section is as follows SECTION_NAME Y Sections contain several fields Field name Description NAME Display name max 32 char DISPLAY_TYPE AMOLED PMOLED or TFT DRIVER_TYPE Display driver part number max 32 char CONTROL_IF Control interface type comma separated words Supported types SPI8 SPI16 SPI17 PMOLED VPBE DATA IF Data interface type Supported types PMOLED VPBE EXT Display colour depth in bits per pixel COLOR DEPTH MIN VLED Minimum value of PWM which controls the VLED DCDC converter MAX VLE
5. Receive Bytes Transmit Bytes z BM Options Miscellaneous Options Select lower settings to comect response problems Serial Enumerator Serial Printer eg Cancel Power Off Timeouts Event On Surprise Removal Set RTS On Close Disable Modem Cid At Startup Latency Timer msec D Minimum Read Timeout msec Minimum Write Timeout msec The COM port can now be seen and selected in the drop down menu on the Controls tab Click the connect button When the device is connected the Connect button becomes the Disconnect button This is confirmation that you are connected to the V DUO Make sure that you click the Disconnect button on the Controls tab before unplugging the USB host cable r 2 V DUO PC Software e 1 Media Control Slide Show Board Information Script Editor COM11 Y Connect Brightness control OOOO OOOO eee ee eee Capture horizontal position Capture vertical position The application has the following tabs Controls Media control Slide show Board information Script Editor and About The following sub sections describe each of the tabs and their usage V DUO Development Kit User Manual REV 1 1 Pagel6 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSITRON DISPLAYS 3 1 Controls tab As well as connecting to the COM port the Controls tab allows display brightness adjustment in 64 steps and the ability to adj
6. 0x02 Vertical resolution in rows 0x03 Left margin in pixels 0x04 Right margin in pixels 0x05 Upper margin in rows 0x06 Lower margin in rows 0x07 Hsync length in pixels 0x08 Vsync length in rows 0x09 Frames per sec setting it is used for mode detection only if standard mode is used Ox0A Sync OxOB Standard mode flag 0 if non standard mode selected OxOC basepx OxOD basepy OxOE Virtual horizontal resolution OxOF Virtual vertical resolution Ox10 Bits per pixel 0 11 0 activate now 0x20 Offset of red bits 0x21 Length of red bits 0x22 0 if MSB of red bits left 0x30 Offset of green bits 0x31 Length of red bits 0x32 0 if MSB of green bits left 0x40 Offset of blue bits 0 41 Length of blue bits 0x42 if MSB of blue bits left 0x50 Offset of transp bits 0x51 Length of transp bits 0x52 0 if MSB of transp bits left V DUO Development Kit User Manual REV 1 1 Page31 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSITRON DISPLAYS 6 3 Booting whilst monitoring console messages First Place the SD card in the V DUO and also connect the UART to USB cable board between the USB port on the PC and J9 on the V DUO if you wish to monitor the messages generated To monitor the messages generated as well as the cable connection you will need to run the console application and configure it as follows gt Serial Enter correct COM port use device manager if required Set speed
7. DENSITRON DISPLAYS In the example on the previous page the Delay 0x01 command will insert a time delay between executing the SET_GIOO command after executing the CLR_GIOO command 2 V DUO PC Software Controls Media Control Slide Show Beard Information Script Editor 4 Commands 0xXX 0xXX pi d 7 7 DCIN VLED Ff DIS SV3 DCIN VLED Jf PWM OxXX l1 SET_ GIO0 GIO1 GIO2 CS RES CLR GIOO GIO1 GIO2 CS RES Set pin to SPI OxXX OxXX Send a SPI DELAY OxXX Wait XX ms BLANK Fill displ MEM OXxXXXXXXXX Write a lo Frame buffer settings FB DIS OxOX ENA 0x0X PAR OxXX OxXXXX SAVE note from these chars Save To File Load From File The BLANK command will turn the screen completely blank with black screen Basically it will clear the display buffers 2 V DUO PC Software Commands Oxxx OxXX Send data 1 Change PMC e Change PMO ENA_ 3V3 DCIN VLED Enable pow DIS_ 3V3 DCIN VLED Disable po Set VLED F SET GIOO GIO1 GIO2 CS RES Set Pin to CLR GIOO GIO1 GIO2 CS RES Set pin to SPI OxXX Send a SPI DELAY Wait XX ms BLANK Fill displ MEM OXXXXXXXXX OxOCOOOUOUCc Write a Lo Frame buffer settings FB DIS OxOX ENA OxOX PAR OxXX OxXXXX SAVE i
8. followed by USB then the internal NAND memory V DUO Development Kit User Manual REV 1 1 Pagel8 37 Copyright 2008 DENSITRON TECHNOLOGIES DENSITRON DISPLAYS 3 3 Slide show tab This tab is used for creating a slide show which can consist of a mixture of JPEG and MPEG4 files stored in the SD CARD or USB pen drive and NAND flash 2 V DUO PC Software Controls Media Control Slide Show Board Information Script Editor 4 np e Add Video File b21 ipa Add JPEG file Slide Show Speed MA EE Delete From List Save List To File Load List From File Save as demo Stop Slide Show Items Of Slide Show PLAY VIDEO v2 mp4 SH w JPEG b ipg SH w JPEG SH w JPEG b15 ipg SHOW JPEG b21 ipg Video and JPEG files are added to the list of files to be shown in the demo by selecting the desired file in the drop down menu and clicking on Add video file or Add JPEG file respectively Selecting a file and then clicking delete from list will remove that file from the list Lists can also be saved to and loaded from your PC as a demo list text file by clicking the Save list to file and Load list from file buttons respectively The Save as demo button is slightly different that it saves the list as demo script on the PC This file can then be moved to the SD card or USB device as a demo script which means the script can be used to re
9. 1 6 MPEG4 Transcoding The V DUO system supports MPEG4 Simple Profile levels 0 1 2 3 with I and P frames only The maximum supported resolution is HD 720p 1280x720 and SXVGA 1280x960 The system is capable of playing back video files which have been encoded for the TMS320DM355 The encoder used in the V DUO is the Texas Instrument TVP5146 Another option is to transcode video files with ArcSoft Media converter which can be downloaded from http www arcsoft com public software title asp ProductID 14 amp dyContentZLANG DOW NLOAD The screenshot below shows the default settings for transcoded video files ArcSoft MediaConverter Extras O Select Manufacturer Us nd audio files into file S EE ArcSoft Select Device Model User Defined 2 7 ArcSoft MediaConverter x Device model not listed Add File KHE adanwo Connected Device ie Video Audio Photo 1 not supp File Format Resolution E Video Encoding Audio Encoding Preview ArcSoft Enc Video Bitrate Audio Bitrate Audio Sample Rate saveas Save Cancel The settings above can be adjusted in order improve the quality of the transcoded video file V DUO Development Kit User Manual REV 1 1 Page23 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSITRON DISPLAYS 5 Hardware 5 1 Power supply architecture The system can be powered by DC IN USB or Li ion Battery with some displays typic
10. Connect the display to its corresponding TB card Handle the display with care and anti static precautions e Connect the transition board to the V DUO base board The transition board will only fit one way e Connect the mini USB cable between J11 on the V DUO and a PC USB port if you want to use PC software or if you like to charge the battery from USB e Connect the AC DC wall adapter to J12 on the V DUO if required e Insert the micro SD card into its socket if you like to use different demo or application other than those saved in the onboard NAND flash A USB pen drive may also be used in place of the micro SD card in this case connect the pen drive to J10 on the V DUO e Aconsole cable not included can be connected to J9 if message monitoring during boot up is required or you intend to use the console to access the operating system See section 6 3 for more information on booting whilst monitoring console messages e Keypads or Buttons can be connected to J14 on the V DUO if required V DUO Development Kit User Manual REV 1 1 Page6 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSITRON DISPLAYS 2 3 Booting e To boot the system depress the power button S1 See Photo below Il e During the booting process a RED LED D1 will be blinking on the underside of the main board The LED will remain permanently lit once the display has been initialized boot up time about 20 seconds e With factory
11. ple DENSITRON DISPLAYS REVISION RECORD Rev Date Page Chapt Comment ECR no 0 0 26 09 08 Initial draft for review 0 1 01 12 08 Updated after Mass production Updated after Product team 0 2 02 12 08 review Updated after Product team 0 IE review Released 1 1 04 12 08 Updated after SW team review V DUO Development Kit User Manual REV 1 1 Page3 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSITRON DISPLAYS 1 Introduction The V DUO development platform evolved from the DUO evaluation kit Composite video capabilities a touch screen interface and a Linux operating system have been added to facilitate amongst other things Displaying JPEG images Playing MPEG4 video files Mixed JPEG and MPEG4 slideshows with adjustable delay Adjust the display s brightness Capture video from the composite video input Adjust the capture position digital pan Touchscreen calibration and demo Direct access to display driver IC registers Developing application using shell script for Montavista Linux OS Support for keypads and buttons VVVVVVVV VV In addition there are unused GPIO tracked to an interface connector to help application development 1 1 Kit Contents The supplied system contains the following V DUO base board Transition board and display of choice Li ion Battery Micro SD card CD containing SW and user manual Mini USB cable
12. settings unchanged the default demo script saved in NAND will run on the display V DUO Development Kit User Manual REV 1 1 Page7 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSITRON DISPLAYS 2 4 Boot sequence The system will first boot from NAND as default and then try to mount the micro SD card connected Next it will look for and attempt to mount a USB pen drive If neither media is present then it will run the default demo from NAND POWER ON DATA SOURCES TMS320DM355 internal boot ROM NAND flash SD card Or UART NAND flash is the N U boot default device i Linux Kernel Linux filesystem E E V DUO Softvares loaded at runlevel 3 NAND flash SD card or USB drive Alternatively the system can boot from UART or SD card as long as it contains the Linux style file system EXT3 and the bootargs settings are modified to boot from SD card or UART Please note that we do not recommend this operation unless the user has adequate experience as the UBL and U boot could be damaged V DUO Development Kit User Manual REV 1 1 Page8 37 Copyright 2008 DENSITRON TECHNOLOGIES ple DENSITRON DISPLAYS 2 5 Demo Bash script operation As shown in the previous flowchart at the end of the boot up sequence the system loads the V DUO software This takes place at run level 3 in the Linux system If the user wants to use proprietary software or
13. structure and text format init file for easy adaptation for new displays or optimising existing displays All software upgradeable via SD card interface PC software for control V DUO operation via USB port Picture slide show Video MPEG4 SP playback Composite video capture control Touchscreen calibration and demo Video and JPEG Slideshow Brightness control System information Full access to display driver IC via proprietary command set V DUO Development Kit User Manual REV 1 1 Page5 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSITRON DISPLAYS 2 Setting up and booting the system 2 1 Precautions e Take care not to overload power supplies maximum current limits can be found in section 5 4 e The Micro SD card and USB Pen drive must be connected to the system before booting e Never remove SD card or USB pen drive with the V DUO Powered ON e Never remove the display or transition board with the system powered It can cause damage to the display e The V DUO board is sensitive to electro static discharge Observe anti static precautions to avoid damage to the system 2 2 Set up To set up the hardware take the following steps e Connect the battery to J13 connector if required the V DUO platform can operate without a battery and use other power sources USB or AC DC wall adapter The system will automatically charge the battery from whatever power source is connected e CAREFULLY
14. to 115200 bps Then click on open radio button Apply power plug in the power cable Don t remove the SD card without powering the system down depress S1 or unplugging the power cable The system will boot automatically and takes approximately 30 seconds to 1 minute 6 4 Modifying AMOLED initialisation script 3 5 amp 4 3 Below is an example showing various registers being change using the script editor tab 52 V DUO PC Software Send data Change PMC Change PMC ENA SV3 DCIN VLED Enable pow DIS SVS DCIN VLED Disable po PWM OxXX Set VLED FP SET GIOO GIO1 GIO2 CS RES Set Pin to CLR GIOO GIO1 GIO2 CS RES Set pin to SPI OxXX OxXX Send a SPI DELAY OxXX Wait XX ms BLANK Fill displ MEM OXXXXXXXXX OXXXXXXXXX Write a lo Frame buffer settings DIS 0x0X 0x0X PAR OxXX OxXXXX SAVE Zi note from these chars SPI Ox3A Oxs3F D Save To File Load From File V DUO Development Kit User Manual REV 1 1 Page32 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSIT RON DISPLAYS Referring to the image on the previous page the SPI command is followed by the register address and the value to be written to it both in hexadecimal When the RUN button is clicked register Ox3A is assigned the hex value 3F this is sent through the PIC microcontroller This command will increase the overall contrast of the display to its maximum
15. update the existing SW this is achieved as shown in the flowchart below The system will try to load a Bash shell script upload sh from the SD card or USB pen drive This script file needs to be a UNIX style text file and placed in the root directory of the removable media The following file systems are supported on removable media VFAT EXT3 If the system does not find this file then it continues loading the default demo software Linux RUN LEVEL 3 Load V DUO Kernel module driver from NAND flash Start demo Bash script from onboard NAND flash Is SD card present Mount SD card to Linux filesystem Is USB drive present Continue demo script from onboard NAND flash V DUO Development Kit User Manual REV 1 1 Page9 37 Copyright 2008 DENSITRON TECHNOLOGIES ple DENSITRON DISPLAYS 2 6 Software start up sequence The following flowchart shows the start up sequence of the V DUO software As shown in the flowchart the system retrieves the display type identifier stored in NVRAM on the transition board therefore it s important that the correct transition board is used The software is based on a dynamic modular structure for easy display adaptation and optimisation displays config dat contains the main parameters for all supported displays see appendix for more info this file selects the relevant initialisation script for the display and selects the dyn
16. 20 VCC V DUO Development Kit User Manual REV 1 1 Page26 37 Copyright 2008 DENSITRON TECHNOLOGIES ple DENSITRON DISPLAYS J5 AMOLED This is the AM OLED and TFT interface For AMOLEDs HSYNC VSYNC and CLK are not used Also note that for AMOLEDs display data is sent over the parallel RGB interface pins 1 to 25 whilst initialisation commands and control data is sent over the SPI bus pins 27 to 29 Pin Nr Signal name Pin Nr Signal name 1 R7 21 GND 2 R6 22 CLK 3 R5 23 GND 4 R4 24 GND 5 R3 25 OE 6 R2 26 NC 7 G7 27 SPI CS 8 G6 28 SPI CLK 9 G5 29 SPI DAT 10 G4 30 X 11 G3 31 CLK OUT 12 G2 32 Y 13 B7 33 CLK OUT2 14 B6 34 X 15 B5 35 CLK OUT3 16 B4 36 Y 17 B3 37 GND 18 B2 38 GND 19 HSYNC 39 DCIN SW 20 VSYNC 40 DCIN J6 EXTENSION This is an interface reserved for future development for example new displays Pin Nr Signal name Pin Nr Signal name 1 A13 21 D11 2 A12 22 D10 3 11 23 D9 4 A10 24 D8 5 A9 25 D7 6 A8 26 D6 7 A7 27 D5 8 A6 28 D4 9 A5 29 D3 10 4 30 D2 11 A3 31 D1 12 A2 32 DO 13 A1 33 CE1 14 AO 34 WE 15 BA1 35 OE 16 BAO 36 WAIT 17 D15 37 ADV 18 D14 38 INT 19 D13 39 CLK 20 D12 40 INT2 V DUO Development Kit User Manual REV 1 1 Page27 37 Copyright 2008 DENSITRON TECHNOLOGIES ple DENSITRON DISPL
17. AYS J7 PIC PGM This interface is used for re programming the PIC microcontroller if required The PIC decodes the touch screen and sends data to the display driver IC via SPI The microcontroller also carries out power management and passes all SPI commands to the display driver IC The PIC communicates with the TMS320DM355 using I2C See section 2 7 for more detail on the SW functionality of the PIC J8 ALTERA CPLD PGM An Altera EPM3032 CPLD is used for PMOLED and USB address decoding This interface is used for programming the CPLD Pin Nr Signal name Pin Nr Signal name 1 SCLK 4 PIC VCC 2 SDAT 5 GND 3 MCLR Pin Nr Signal name Pin Nr Signal name 1 TCK 4 TDI 2 TDO 5 GND 3 TMS 6 VCC J9 TTL UART This interface is used to connect the system to a PC A UART to USB connector board is required in addition to a console application i e HyperTerminal Pin Nr Signal name Pin Nr Signal name 1 RXD 3 GND 2 TXD 4 3 3V J10 USB This USB port is used for connecting a USB pen drive This media is an alternative to the Micro SD card To mount the USB pen drive on the video and run the demo the memory device pen drive should contain the entire contents of the Micro SD card as originally supplied On start up the system will first try to mount the Micro SD and then USB Pin Nr Signal name Pin Nr Signal name 1 V
18. BUS 3 D 2 D 4 GND J11 MINI USB This interface is for connecting the V DUO to a PC USB port in order to use the V DUO Windows application Pin Nr Signal name Pin Nr Signal name 1 VBUS 4 ID 2 D 5 GND 3 D V DUO Development Kit User Manual REV 1 1 Page28 37 Copyright 2008 DENSITRON TECHNOLOGIES ple DENSITRON DISPLAYS J12 DC IN 5V DC 2A centre positive power supply input Pin Nr Signal name Pin Nr Signal name 1 POWER 3 3 NC 2 POWER 213 BATTERY The battery interface is designed to support 3 6V Li ion Battery Pin Nr Signal name Pin Nr Signal name 1 BATT 4 BATT 2 BATT 5 5V 3 BATT 6 GND J14 KEYPAD BUTTON Interface This interface is group of 6 GPIOs dedicated to keypad or button connection The pins are normally pulled high They are controlled by the GPIO configuration registers in the TMS320DM355 processor Pin Nr Signal name Pin Nr Signal name 1 BUTTONO 5 BATT 2 BUTTON 6 5V 3 BUTTON2 7 GND 4 BUTTON3 8 GND J15 TOUCH Interface This interface gives access to the analogue touchscreen connections The part number for the mating connector is AMP 7 215083 4 Pin Nr Signal name Pin Nr Signal name 1 X 3 X 2 Y 4 Y 5 4 DC Characteristics Parameter Symbol Min
19. D Maximum value of PWM which controls the VLED DCDC converter X RES Horizontal resolution of display in pixels Y RES Vertical resolution of display in rows INIT FILE NAME Name of display init file with path max 256 char WRITE DLL Name of display access library file with path max 256 char DEFAULT DEMO Name of default demo script file with path max 256 char TOUCH Touch supported YES or NO CTRL INF Control information string for PC software max 256 char Sections are configured based on the display ID retrieved from the transition board NVRAM Example of a section definition DISPLAY ID 100 4 MIN VLED O VLED 256 X RES 480 Y RES 272 INIT FILE NAME configfiles P0430 ini WRITE DLL libs P0430 so DEFAULT DEMO demo scr TOUCH YES CTRL_INF ISPI Ox3E Oxhh f hc d 80 min 00 max FF x V DUO Development Kit User Manual REV 1 1 Page30 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSITRON DISPLAYS 6 2 Framebuffer parameters Each frame buffer parameter in the initialisation script has a unique hex number The following table details their assignment Additional information on the frame buffer parameters can be found at http focus ti com cn cn lit ug spruek9 spruek9 pdf Number Description 0x00 Video mode O non interlaced 1 interlaced 0x01 Horizontal resolution in pixels
20. DENSITRON DISPLAYS V DUO Development Kit User manual Revision 1 1 INTERNAL APPROVALS Product Mgr Doc Control Electr Eng Elijah Ebo Anthony Perkins Bazile Peter Date 04 12 08 Date 04 12 08 Date 04 12 08 Copyright 2008 DENSITRON TECHNOLOGIES plc All rights reserved Proprietary Data FORM No DT 029 DENSITRON DISPLAYS TABLE OF CONTENTS 1 2 2 2222111111 0 0 0 0 3 1 1 KIT CONTENTS 3 1 2 HARDWARE FEATURES er ense teens etes eres 3 1 3 GornwapgFEaTmupEe estes serere 3 2 SETTING UP AND BOOTING THE 5 3 2 1 PRECAUTIONS 0 eee ceeeeceesccccssccsessccesscccsscesssecesseecsssseecaceccesecessaaeecsesessecesaeestsecenas 3 22 SET IC 3 253 leie RE 3 2 4 BOOT epouENCE cece ccescccssccesssccceccccesscessssccesscecsssecsssscesssecssnsesetsecessecesnseeetseeenas 3 2 5 DEMO BASH SCRIPT OPERATION eene eterni 3 2 6 SOFTWARE START UP SEQUENCE eene 1100000 sentes erne serrer serere ene 3 2 7 SOFTWARE STRUCTURE enne 3 2 8 DEMO SCRIPT SNTAN nente 3 2 9 INITIALISATION SCRIPT SYNTAN eene 3 2 10 SYSTEM FILES AND DIRECTORIES eene nennen 3 V DUO PC SOFTWARE
21. LAY dddd Creates a delay of duration dddd Maximum 4 digit decimal value DELAY INF Infinite wait command TOUCH CALIBRATION Starts the touch calibration sequence TOUCH DRAW ENABLE Enables the touch draw demo After this command each touch input will be shown as a colour pixel on the display TOUCH DRAW DISABLE Disables the touch draw demo After these characters comments can be placed in the script PLAY_VIDEO and DELAY commands can be interrupted by a key press or touch screen input except when the touch draw demo is running in which case the command is only interrupted when a touch is detected in the upper left hand corner of the display The PC software can also interrupt the script Filename parameter is the name of media files with full path in V DUO linux file system space is not supported in filenames Mounted removable devices root directory named as mnt devices mounted to this directory of linux file system V DUO Development Kit User Manual REV 1 1 Pagel2 37 Copyright 2008 DENSITRON TECHNOLOGIES ple DENSITRON DISPLAYS 2 9 Initialisation script syntax The initialisation script can be executed in two ways e By default at start up The default initialisation script file name and location are defined in the displays config dat file e Via PC software in this case the script will start running as soon as the PC application starts running Using this script requires a cer
22. Power supply 1 2 Hardware Features Power can be provided from several sources USB Li ion battery AC adapter Onboard battery charger and monitor Small form factor 94 x 84 mm Supports PMOLED AMOLED and TFT Displays via Transition boards USBO6 DUO compatible PMOLED interface 23 amp J4 Supports resolutions up to 1366x768 18bpp static images Supports Video up to HD 720p 1280x720 and SXVGA 1280x960 24 bit colour depth Display dependant Communication interfaces RS232 USB host and slave 4 wire resistive touch screen support 6 input keypad interface for general use HW accelerated MPEG4 SP video playback and JPEG support V DUO Development Kit User Manual REV 1 1 Page4 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSITRON DISPLAYS Composite video input Extension port for future use for example special Display controllers Micro SD card support J ARM926EJ S CPU core 128Mbyte DDR2 memory 1GByte onboard NAND flash for storing OS demos and applications 1 3 Software Features Linux operating system with 2 6 18 kernel Montavista Standalone demo application stored in onboard NAND flash A simple demo script that runs from a micro SD card USB drive or NAND Automatic display identification and initialization Touch screen demo Picture slide show Video MPEG4 SP playback Video capture from composite video input Modular
23. Upon clicking the RUN button the contrast change is immediately observed on the display V DUO PC Software lejo 8 Controls Media Control Slide Show Board Information Script Editor 4 Commands OxXX OxXX Send data mp Change Change PMO DCIN VLED Enable pow DIS DCIN VLED Disable po PWM OxXX Set VLED FP SET GIOO GIO1 GIO2 Set Pin to CLR GIOO GIO1 GIO2 Set pin to SPI OxXX OxXX Send a 5 DELAY OxXX Wait XX ms BLANK Fill displ MEM OxXXXXXXXX Da Write a lo Frame buffer settings FB DIS 0 0 ENA OxO0X PAR OxXX OxXXXX SAVE note from these chars Save To File Load From File The DIS_3V3 command will disable the 3V3 power supply and the screen will turn blank white To re enable it simply type ENA_3V3 click Run V DUO Development Kit User Manual REV 1 1 Page33 37 Copyright 2008 DENSITRON TECHNOLOGIES plc 2 V DUO PC Software DENSITRON DISPLAYS Commands OxXX OxXX C D ENA DCIN VLED DIS SV3 DCIN VLED PWM OxXX SET GIOO0 GIO1 GIO2 CS RES CLR GIOO GIO1 GIO2 CS RES SPI OxXX OxXX DELAY BLANK MEM O0XxXXXXXXXXX Frame buffer settings DIS 0x0X ENA OxOX PAR OxXX OxXXXX SAVE note from these chars Co
24. ally 3 5 or larger the PC USB cannot support the V DUO s power requirements if the battery is completely discharged and the power supply is not connected If you experience difficulty in connecting to the kit DC IN power supply to power the V DUO system The system will automatically charge the battery from whatever power source is connected USB or DC The block diagram below shows the V DUO power supply architecture TPS65053 DCDC converter TMS320DM355 CH AC DC wall adapter 3 3V DMsoC al BQ24030 intelligent DCDC converter USB slave port gt power path and 1 8 V DDR2 Memory battery charger SI DCDC converter TVP5146 Li ION Battery Composite interface NAND flash PSTATUS VDCIN POWER ENA SD Card interface m gt uController 7K DCDC converter 5V Power switch OLED ENA VCC N Power switch Tz Display interface gt Power signals PWM DCDC converter VLED ENA 5 27 V USB host port Power button Control signals SS VACIN HPD V DUO Development Kit User Manual REV 1 1 Page24 37 Copyright 2008 DENSITRON TECHNOLOGIES ple DENSITRON DISPLAYS 5 2 Outline and Connector placement drawing
25. amic loaded library which contains display specific binary functions like the pipe function which copies display data from various buffers Load CMEM Kernel module driver Start V DUO software Load display type SOURCES displays config dat Load display file parameters Y Init script file selected by display config dat file Display specific dynamic l Load display loaded library i specificStart main timed thread Start main timed thread Load and run init script Is demo_script file present in the root directory of SD card or USB drive Load demo scr file fom onboard NAND flash like demo script Load demo_ script file from external device like demo script Demo script processing V DUO Development Kit User Manual REV 1 1 Pagel0 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSITRON DISPLAYS 2 7 Software structure As the following drawing shows the software can use several threads and drivers The default method is a Main timed thread running as defined in the demo script but this flow can be modified by touch screen inputs buttons presses the PC interface or power monitoring system SC Demo script 4 MPEG4 playback INPUTS processing PCUSBinterface JPEG displaying i
26. e 3 Reboot and the system will automatically continuously capture whatever is on the composite and this will be shown on the display Below is an example of a demo script file capturing video Example demo script for V DUO board CAPTURE START DELAY 180 3 minute delay CAPTURE STOP 4 1 4 File transfer Files can be transferred to the V DUO by USB pen drive or Micro SD card These are safe modes of operation as they can reduce the risk of the system files in the onboard NAND flash getting corrupted It is possible to transfer files from the Micro SD card to NAND flash via upload sh The script will need to be edited by adding a copy command For example if we want to copy sample mpeg to NAND flash we need to add the following line in upload sh using a text editor cp mnt sample mpeg opt vduo video 4 1 5 Register changes driver IC on display Any register settings can be changed by editing file P0403 in the folder configfile using the totaledit text editor or any Unix style text editor ALL register commands are sent over the SPI bus via the PIC microcontroller Simply type SPI 0x01 0x00 the first hex value to follow the command is taken as the register to be edited and the second hex value is the data to be written Below is an example of register being configured in P0403 V DUO Development Kit User Manual REV 1 1 Page22 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSITRON DISPLAYS 4
27. elected Picture Start Composite Capture Start Touch Demo Start Touch Calibration Stop Al Resume Onboard Demo Clicking the Start composite Capture button starts the capture of a valid composite video signal from the composite video input and displays it on the screen If no composite video signal is detected or the format invalid video capture will not start As explained in the previous section the Horizontal and Vertical position sliders in controls tab adjust the capture area to be displayed Clicking the Start touch calibration button initiates a 3 point touch screen calibration process Calibration starts with a white dot appearing in the top left hand corner Using an adequate stylus touch and maintain contact with the white dot until it moves to the bottom Right corner Touch the white dot again until it moves to the top right corner Touching the 3 dot completes the calibration process Start touch demo initiates a touch screen demo where the pixel directly underneath the touch stimulus is illuminated in yellow Before starting the touch demo a suitable image with a dark background should be selected from the drop down menu and displayed The Stop all button stops all activities features The Resume onboard demo button runs the Demo script in the SD CARD USB pen drive or NAND flash When an SD card is connected the demo script from the SD card will run as the SD card has boot priority
28. for V Duo TMS320DM355 Copy the video file to the folder video in the SD card a Open the demo_script file with the totaledit or any Unix style text editor b write in the demo_script PLAY_VIDEO mnt video video_name mpeg4 4 Save and close the demo_script file 5 Reboot as described above and the images and videos will be shown automatically in the default demo application 4 1 2 Adding a delay The list of files in demo_script can include a combination of video and image files and these will be played in the order listed To add a delay between the images add the text DELAY 10 for a 10s delay in the demo_script in between the two images where the delay is required Below is an example of a demo_script file Example demo script for V DUO board PLAY_VIDEO mnt video speedr mpeg4 SHOW_JPEG mnt jpeg b1 jpg DELAY 5 SHOW_JPEG mnt jpeg b5 jpg DELAY 5 SHOW_JPEG mnt jpeg b6 jpg DELAY 5 SHOW_JPEG mnt jpeg b7 jpg DELAY 5 V DUO Development Kit User Manual REV 1 1 Page21 37 Copyright 2008 DENSITRON TECHNOLOGIES ple DENSITRON DISPLAYS 4 1 3 Capturing video from the composite video input Note The list of files in demo_script must first be deleted in order to avoid the demo running pictures and video files 1 Add the following command to the demo_script CAPTURE_START Please note that the command is case sensitive CAPTURE STOP will stop the video capture 2 Save and close the fil
29. n P ind note from these chars MEM 0x20000020 0x00000010 m r Save To File Load From File The MEM command provides direct access to the V DUOs internal system memory NAND With this command any internal memory address in V DUO can be written to Misuse could overwrite or corrupt system files V DUO Development Kit User Manual REV 1 1 Page36 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSIT RON DISPLAYS V DUO PC Software lela x Controls Media Control Slide Show Board Information Script Editor SE OxXX OxXX Send data p Change PMO D Change PMC SV3 DCIN VLED Enable pow DIS DCIN VLED Disable por PWM Set VLED F SET GIOO 1 GIO2 Set Pin to CLR GIOO GIO1 GIO2 Set pin to SPI OxXX OxXX Send a SPI DELAY OxXX Wait XX ms Fill displ Write a lo Frame buffer settings E FB DIS 0 0 ENA 0 0 PAR OxXX OxXXXX SAVE note from these chars FB DIS 0x00 FB ENA 0X03 FB PAR 0 01 0 01 0 FB PAR Ox02 0X0110 FB SAVE 0x03 FB load 0c03 Save To File Load From File Framebuffer settings can be used to setup and select the following e Select interlace video mode e Set display resolution e Set margins e Set Length of h and v sync e Set base of window e Set virtual resolution e Set bpp mode e Set position of RED bits e Set
30. ntrols Media Control Slide Show Board Information Script Editor 4 i 1 11 i 7 7 Fill displ Write a lo D Save To File Load From File The DIS_VLED command will disable the VLED power supply external DC DC To re enable it simply type ENA_VLED and click Run 2 V DUO PC Software i OxXX OxXX Co D SV3 DCIN VLED DIS SV3 DCIN VLED SET GIOO GIO1 GIO2 CS RES CLR GIOO GIO1 GIO2 CS RES SPI OxXX OxXX DELAY OxXX BLANK MEM OxXXXXXXXX OC Frame buffer settings FB DIS OxOX ENA OxOX PAR OxXX OxXXXX SAVE ut die note from these chars PWM OxFF Controls Media Control Slide Show Board Information Script Editor 4 If 77 1 rid Fill displ Write a Lo Save To File Load From File As shown above the PWM command controls the output voltage of the external DC DC converter used for the High voltage supply OLED_VLED on the PMOLED display interface V DUO Development Kit User Manual REV 1 1 Copyright 2008 DENSITRON TECHNOLOGIES ple Page34 37 DENSITRON DISPLAYS The value can range from 0x00 to OxFF with 0x00 resulting in a DC DC output voltage of OV and therefore turning the display blank black The maximum value OxFF results in an outpu
31. place the default demo that starts on boot up The slide show is initiated by clicking Start slide show The button then becomes Stop slide show click this button to stop the slide show 3 4 Board information tab This window contains information on the Display connected and software versions V DUO Development Kit User Manual REV 1 1 Pagel9 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSIT RON DISPLAYS 3 5 Script editor tab This is an editor where the display registers can be accessed and modified This script editor uses the same structure of commands as the Initialisation script syntax please refer to section 2 9 9 V DUO PC Software Commands OxXX OxXX Send data Co Change PMC ep Change PMO ENA DCIN VLED Enable pow DIS VLED Disable po OxXX Set VLED F SET GIOO 1 GIO2 CS RES Set Pin to CLR GIOO GIO1 GIO2 CS RES Set pin to SPI OxXX Send a SPI DELAY OxXX Wait XX ms BLANK Fill displ MEM OXXXXXXXXX OOOO Write a lo Frame buffer settings FB DIS 0 0 OxOX PAR OxXX OxXXXX SAVE 7 note from these chars SPI Ox3A Ox3F D Save To File Load From File See section 6 4 for examples on modifying the initialisation script 3 5 4 3 AMOLEDs 3 6 About tab This tab holds information on the V DUO PC software
32. position of GREEN bits e Set position of BLUE bits e Set position of Transparency bits Writing command FB DISOxXX will disable framebuffer XX Writing command ENAOxXX will enable framebuffer XX Writing command FB PAR OxXX OxXX the first hexadecimal value represents the buffer address and the second hexadecimal parameter is the value to be assigned to that buffer address e g FB PAR 0x01 OxO1EO0 FB PAR 0x02 0x0110 will set the display resolution to 480x272 LOAD OxXX will load configuration file XX and SAVE OxXX will save the parameters to configuration file XX V DUO Development Kit User Manual REV 1 1 Page37 37 Copyright 2008 DENSITRON TECHNOLOGIES plc
33. s the value to be assigned to that frame buffer parameter LOAD 0x0X Load settings of frame buffer 0 3 SAVE 0x0X Save settings to frame buffer 0 3 After these characters comments can be placed in the script An example initialisation script is shown in section 3 1 5 V DUO Development Kit User Manual REV 1 1 Pagel3 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSITRON DISPLAYS 2 10System files and Directories Name of directory or file on V DUO file system Description mnt Directory where the removable media file system is mounted in the system opt vduo driver vduo ko The V DUO kernel driver opt demo This is a bash script which runs upload sh and demo software from SD card or USB device if connected If the console interface is required then file demo needs to be renamed or moved to another location opt vduo vduosw vduosw V DUO demo software opt vduo vduosw demo scr Onboard demo script for V DUO SW opt vduo vduosw configfiles displays config dat Display configuration file opt vduo vduosw configfiles initialisation script folder opt vduo vduosw libs Dynamic loaded libraries for displays folder opt vduo video opt vduo jpeg Video file directory onboard NAND flash JPEG file directory onboard NAND flash Name of files on removable media Description demo_script Demo
34. script for V DUO SW V DUO software loads this script if present instead of onboard version demo scr upload sh System runs this file if present at start up video This folder contains the MPEG4 videos Mpeg This folder contains the JPEG images V DUO Development Kit User Manual REV 1 1 Pagel4 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSITRON DISPLAYS 3 V DUO PC software The PC software supplied on the CD ROM includes the V DUO PC SOFTWARE application The tabs on the Graphical User Interface allow the following Displaying JPEG images Playing MPEG4 video files Mixed JPEG and MPEG4 slideshows with adjustable delay Adjust the display s brightness Capture video from the composite video input Adjust the capture position digital pan Touchscreen calibration and demo Direct access to display driver IC registers VVVVVVV WV The application is Windows Vista and XP 2000 98 compatible The application communicates with the V DUO system via a virtual serial COM port over USB The latest windows device driver can be downloaded from http www ftdichip com Drivers CDM CDM 202 04 06 20WHOL 20Certified zi The application communicates via a USB cable between the mini USB connector J11 on the V DUO and the USB port on the PC Installing the driver at the beginning of this chapter allows a virtual serial port to be created in device manager To use the application first ensure tha
35. t the V DUO is powered up and has fully booted Boot LED is not blinking but permanently ON Select the appropriate COM port Device manager in control panel can be used to identify which COM port the V DUO is connected to We suggest using a COM port lower than 15 If the default COM port assigned is higher than COM15 following the procedure below to change it Go to Control panel System Device manager Port COM amp LPT USB Serial Port VVVVV mey too Rl Nokia Windows Portable Device Driver Ports COM amp LPT RIM Virtual Serial Port v2 11 72 RIM Virtual Serial Port v2 COM12 o vc DI Processors 3 SD host adapters Right click USB serial port to access the properties Then go to the PORT SETTINGS tab Then in Advanced settings change the COM port assignment to a number less than COM15 preferably an unused port gt This completes the configuration change Unplug and re connect the USB host cable at least twice VV WM V DUO Development Kit User Manual REV 1 1 Pagel5 37 Copyright 2008 DENSITRON TECHNOLOGIES ple DENSITRON DISPLAYS 058 Serial Port COM29 Properties Le e General Port Settings Driver Details T ust Pow ine 9 Pow et Advanced Settings for 29 COM at Muneer USB Transfer Sizes Select lower settings to correct performance problems at low baud rates Select higher settings for faster performance
36. t voltage of 27V 52 V DUO PC Software Ss Send data Change PMO Change PMO ENA DCIN VLED Enable pow DIS DCIN VLED Disable po PWM OxXX Set VLED P SET GIOO GIO1 GIO2 CS RES Set Pin to CLR GIOO GIO1 GIO2 CS RES Set pin to SPI OxXX OxXX Send a SPI DELAY OxXX Wait XX ms BLANK Fill displ MEM OXxXXXXXXXKX Write a 10 Frame buffer settings FB DIS OxOX ENA Ox0X PAR OxXX OxXXXX SAVE sf note from these chars 0 CLR GIO m D Save To File Load From File SET_GIOO will set the GIOO This command can also be used to set the GIO1 2 CS and RES pins CLR_GIO1 will clear the GIO1 pin This command can also clear the GIOO GIO2 CS and RES pins 2 V DUO PC Software Commands OxXX OxXX c p ENA DCIN VLED DIS DCIN VLED SET 0 GIO1 GIO2 CS RES CLR GIOO0 GIO1 GIO2 CS RES SPI OxXX OxXX FF DELAY OxXX Wait XX ms BLANK Fill displ MEM OxXXXXXXXX Write lo Frame buffer settings FB DIS OxOX ENA 0 0 PAR OxXX OxXXXX SAVE kW Za note from these chars CLR_GIO1 Delay 0x01 SET 0 m r Save To File Load From File V DUO Development Kit User Manual REV 1 1 Page35 37 Copyright 2008 DENSITRON TECHNOLOGIES plc
37. tain level of knowledge and experience with this system and the display Misuse could potentially lead to device damage Command Description OxXX Sends two hexadecimal characters XX to the PMOLED interface as a byte C Change PMOLED interface to command mode D Change PMOLED interface to data mode ENA 3V3 DCIN VLED Enables selected supply voltage DIS 3V3 DCIN VLED Disables selected supply voltage PWM OxXX Sets PIC PWM output This output controls the VLED DC DC converter output voltage XX represents a two digit hexadecimal value SET GIOO GIO1 GIO2 CS RES Sets selected pin to Logic 1 CLR GIOO GIO1 GIO2 CS RES Sets selected pin to Logic 0 SPI OxXX OxXX Sends SPI command to the display via the on board PIC microcontroller Both parameters are hexadecimal digits the parameters are sent as separate bytes the first parameter to follow the command is sent first 16 and 17 bit format supported depending on display type The type is defined in the displays config dat file DELAY OxXX Waits XX ms XX is a two digit hexadecimal value BLANK Fills the display buffer with a blank image FB DIS 0x0X Disables the frame buffers 0 3 FB OxOX Enables the frame buffers 0 3 FB PAR OxXX OxXXXX Sets frame buffer parameters The first parameter to follow the command is taken as the unique ID number of the frame buffer parameter to be sent see table in appendix the second parameter i
38. ust the capture area or capture position of the composite capture feature on the media control tab 2 V DUO PC Software COM11 Y Connect Brightness control Capture horizontal position r T Gel ded Li El KI bal wl S Ti T ed ONE C Kl Del E OL el Ga KH Get kt el Tel Ce Kei Ten au Capture vertical position The capture port captures at a resolution of 632x512 some displays have a lower resolution than the capture port For example a 4 3 AMOLED display only has a resolution of 480x272 and hence only capable of showing 480x272 of the available 632x512 capture resolution The capture horizontal and vertical sliders allow panning of the capture buffer V DUO Development Kit User Manual REV 1 1 Pagel7 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSITRON DISPLAYS 3 2 Media Control tab This tab allows the playing of JPEG and MPEG 4 files stored in the JPEG and VIDEO folders respectively in the SD CARD or USB pen drive and NAND flash The default is NAND if the system is booted without an SD card or USB device connected on start up Simply select the desired file from the drop down menu and click on the show selected picture or play selected video file button V DUO PC Software Controls Media Control Slide Show Board Information Script Editor gt Available videos Play Selected Video File Available pictures alpha ipg e Show S
39. version and release date Note With some displays typically 3 5 or larger the PC USB cannot support the V DUO s power requirements if the battery is completely discharged and the power supply is not connected If you experience difficulty in connecting to the kit connect the DC IN power supply to power the V DUO system V DUO Development Kit User Manual REV 1 1 Page20 37 Copyright 2008 DENSITRON TECHNOLOGIES plc DENSITRON DISPLAYS 4 Script editing All V DUO scripts are simple text files but bash scripts need UNIX style end of line EOL characters which is different to those used with windows Therefore a text editor is required which can also support UNIX style text files Below is a link to a suitable editor http codertools fileburst com TotalEdit install 5 O 8 msi 4 1 Creating a demo script The default demo that runs on boot up can be modified by editing the demo script file saved in the root of the desired SD CARD or USB pen drive 4 1 1 Creating JPG and MPEG4 streams P and I only slideshows KA Insert the SD card into a PC SD card port or SD card reader 2 To add images Copy the required images to the folder jpeg in the SD card a Open the demo_script file with the totaledit or any Unix style text editor b Edit the demo_script i e by adding gt SHOW_JPEG mnt jpeg image_name jpg an example is shown at the end of the next section 3 To add Video files already encoded

Download Pdf Manuals

image

Related Search

Related Contents

CentroSolar P1 Indoor Installation Manual L00410289  Samsung MM-DG25T دليل المستخدم  Yamaha ACD1 Owner's Manual      LANKONATTE 580    Noisy Magazine n°149 - mai 2009 - Ville de Noisy-le  Manuel d`utilisation  

Copyright © All rights reserved.
Failed to retrieve file