BMP_to_GUI_Text_Overlay

所属分类:DSP编程
开发工具:C/C++
文件大小:2694KB
下载次数:43
上传日期:2006-02-10 22:11:50
上 传 者ccwwff
说明:   BlackFin DSP(ADSP) LCD 文字overlay 显示源码
(BlackFin DSP (ADSP) LCD display text overlay FOSS)

文件列表:
BMP_to_GUI_Text_Overlay\adsp-BF561_C.ldf (32044, 2005-10-26)
BMP_to_GUI_Text_Overlay\BMP_LCD.dpg (764, 2005-11-10)
BMP_to_GUI_Text_Overlay\BMP_LCD.dpj (4687, 2005-11-10)
BMP_to_GUI_Text_Overlay\BMP_LCD.mak (2223, 2006-01-19)
BMP_to_GUI_Text_Overlay\CoreA.dlb (39516, 2005-11-08)
BMP_to_GUI_Text_Overlay\CoreB.dlb (79320, 2005-11-10)
BMP_to_GUI_Text_Overlay\Core_A\CoreA.dpj (4623, 2005-11-10)
BMP_to_GUI_Text_Overlay\Core_A\CoreA.mak (4548, 2005-11-10)
BMP_to_GUI_Text_Overlay\Core_A\coreA_main.c (1442, 2005-10-21)
BMP_to_GUI_Text_Overlay\Core_A\Debug (0, 2006-01-19)
BMP_to_GUI_Text_Overlay\Core_A\ezkitutilities.c (27453, 2005-10-14)
BMP_to_GUI_Text_Overlay\Core_A\ezkitutilities.h (3393, 2005-09-01)
BMP_to_GUI_Text_Overlay\Core_A\main.h (819, 2005-10-18)
BMP_to_GUI_Text_Overlay\Core_A (0, 2006-01-19)
BMP_to_GUI_Text_Overlay\Core_B\config.h (89, 2005-10-19)
BMP_to_GUI_Text_Overlay\Core_B\CoreB.dpj (5863, 2005-11-10)
BMP_to_GUI_Text_Overlay\Core_B\CoreB.mak (6987, 2005-11-10)
BMP_to_GUI_Text_Overlay\Core_B\CoreB_main.c (14623, 2005-11-08)
BMP_to_GUI_Text_Overlay\Core_B\Create_Data.asm (5657, 2005-11-01)
BMP_to_GUI_Text_Overlay\Core_B\Debug (0, 2006-01-19)
BMP_to_GUI_Text_Overlay\Core_B\ezkitutilities.c (27453, 2005-10-14)
BMP_to_GUI_Text_Overlay\Core_B\ezkitutilities.h (3393, 2005-09-01)
BMP_to_GUI_Text_Overlay\Core_B\main.h (1363, 2005-11-01)
BMP_to_GUI_Text_Overlay\Core_B\Video_Overlay\adi_graph.h (1088, 2003-09-02)
BMP_to_GUI_Text_Overlay\Core_B\Video_Overlay\adi_graphd.dlb (81568, 2005-03-02)
BMP_to_GUI_Text_Overlay\Core_B\Video_Overlay\adi_graph_driver_EZ-KITd.dlb (12564, 2005-03-02)
BMP_to_GUI_Text_Overlay\Core_B\Video_Overlay\adi_graph_driver_generic.h (910, 2005-03-01)
BMP_to_GUI_Text_Overlay\Core_B\Video_Overlay\adi_graph_font.h (458, 2004-10-01)
BMP_to_GUI_Text_Overlay\Core_B\Video_Overlay\adi_graph_fonts.dlb (6055444, 2004-10-01)
BMP_to_GUI_Text_Overlay\Core_B\Video_Overlay\adi_graph_font_decls.h (8356, 2003-09-09)
BMP_to_GUI_Text_Overlay\Core_B\Video_Overlay\libsrgpd.dlb (331116, 2005-03-02)
BMP_to_GUI_Text_Overlay\Core_B\Video_Overlay\srgp.h (640, 2005-03-04)
BMP_to_GUI_Text_Overlay\Core_B\Video_Overlay\srgplocal.h (12373, 2004-03-23)
BMP_to_GUI_Text_Overlay\Core_B\Video_Overlay\srgppublic.h (10982, 2003-08-26)
BMP_to_GUI_Text_Overlay\Core_B\Video_Overlay\srgp_sphigs.h (1918, 1995-12-20)
BMP_to_GUI_Text_Overlay\Core_B\Video_Overlay\Text_Overlay.c (7200, 2005-11-08)
BMP_to_GUI_Text_Overlay\Core_B\Video_Overlay\Text_Overlay.h (1636, 2005-11-10)
BMP_to_GUI_Text_Overlay\Core_B\Video_Overlay (0, 2006-01-19)
BMP_to_GUI_Text_Overlay\Core_B (0, 2006-01-19)
BMP_to_GUI_Text_Overlay\Debug (0, 2006-01-19)
... ...

------------------------------------------------------------------------------- Project Name: BMP_LCD_with_SRGP Project Type: ADSP-BF561 Date: Nov 03, 2005 Tools: VisualDSP++ 4.0 Hardware: ADSP-BF561 EZ-KIT LITE System Services Components Used: DMA Manager [X] Deferred Callback Manager [X] Interrupt Manager [X] Timer Module [X] Power Management Module [X] Flag Module [ ] External Bus Interface Unit Module [ ] Port Module [ ] ------------------------------------------------------------------------------- Example Overview: ------------------ This program displays alternating video frames on an LCD display. To do this, the device driver is configured for streaming operation. When streaming is enabled, the device driver operates at maximum speed, never halting the transmission or reception of data. To meet the system requirements of the streaming sub-mode, the application must ensure the following: - the device driver must be kept loaded with buffers to process and never starved for data. - when buffers are using callbacks, the callback for one buffer must be processed before another buffer, on that same device driver and on that same inbound or outbound direction, generates another callback. (When using "live" callbacks, the callback function must execute before another buffer generates a callback. When using "deferred" callbacks, the callback must only be posted to the deferred callback service, before another callback is generated.) The program creates two frames in memory (named PingFrame and PongFrame). PingFrame and PongFrame contain the same data (bitmap image). Two buffer chains are created that are used to send to the PPI driver; one chain points to the Ping Frame while the other points to the Pong frame. Only the last buffer in each chain is configured to generate a callback, no other callbacks are generated. This makes it easy to guarantee that the latter of the two streaming requirements are met. ------------------------------------------------------------------------------------------------- Source Files contained in this directory: ------------------------------------------ Core A: -------- CoreA_main.c Idle ezkitutilities.c Contains collection of functions that automate typical EZ-Kit functionality. Core B: -------- CoreB_main.c Calls initialization routines and uses system services and device drivers ezkitutilities.c Contains collection of functions that automate typical EZ-Kit functionality Text_Overlay.c Contains the SRGP initialization code and text overlay set Create_Data.asm Converts data to 16 bits (565 RGB format) adsp-BF561_C.ldf Linker description file BMP_LCD.dpg VisualDSP Group Project File ------------------------------------------------------------------------------------------------- Dependencies contained in VisualDSP++ include path: ezkitutilities.h Header file containing EZ-Kit utility routines. system.h Header file containing global varibles and preprocessor definitions. IMAGE.H Header file containing the data of the Bitmap image. ------------------------------------------------------------------------------------------------- This example is a dual-core application. Core B does the 16 bit conversion and send out the data via the PPI to the LCD display, while Core A controls the touch screen. When the program is loaded you will be presented with the "Load Multiprocessor Confirmation" dialog box which is populated with the correct executables for both cores. Once loaded, Debug->Multiprocessor->Run can be used to start the program. There is no need to halt Core B after that, and must be kept running as long as Core A is running. Should you wish to create a loader file, for downloading to Flash memory, only p0.dxe is required to be downloaded, as the conditions for Core B will be satisfied on board reset. System Configuration: ---------------------- - A/V jumper JP5.5/6 - A/V jumper JP8.3/5, JP8.4/6, JP8.7/8 - A/V jumper JP4.1/2 - A/V jumper JP2.1/2 - BF561 Ez-kit Dipswitch SW5: set #1,2,4 to "off", #3 to on - BF561 Ez-kit Dipswitch SW2: all to "off" - BF561 Ez-kit Dipswitch SW4: set #1,2,3,4 to "on", #5,6 to "off" - BF561 Ez-kit Dipswitch SW3: set #1,4 to "off", #2,3 to on External connections: ---------------------- 1) Connect the daughter card input to the expansion interface (90 pin connector). 2) Connect the daughter card output to the LCD display via the ribbon cable. Getting Started: ----------------- Without using the Visual Basic script (VBS): --------------------------------------------- 1) INCPRO.COM file and the 24 bit Bitmap image (with Resolution ***0 x 480) should be in the same directory. 2) Run the Bitmap_2_Header utility by doing the following: a. Click Start, Choose Run, and type cmd. This will bring up the command prompt. b. locate the directory that includes both the 24 bit bitmap image and the INCPRO.COM file (i.e cd INCPRO to locate C:\INCPRO ) c. Once the directory is located, type the following in the command prompt: INCPRO xxx.bmp Image.h Image_BMP /c where xxx is the name of the bitmap image. The name is limited to 8 characters. d. INCPRO will convert the bitmap image and outputs a header file called IMAGE.H 3) Move the output header file (IMAGE.H) to the ".\Shared Memory L3\" directory of your project 4) Load the Group Project file "BMP_LCD.dpg" 5) Build the Project by selecting "Rebuild Project" 6) Start both cores by selecting "Multiprocessor Run" icon or by pressing (Ctrl-F5) 7) Observe video output on the LCD display 8) Halt when ready Using the Visual Basic Script (VBS): ------------------------------------- 1) INCPRO.COM file and the 24 bit Bitmap image (with Resolution ***0 x 480) should be in the same directory. 2) Run the Visual Basic Script by double clicking on it: a. The user will be asked to point to the 24 bit Bitmap Image. click on xxx.bmp (located in the same directory as the VB script), where xxx is the name of the bitmap image. The name is limited to 8 characters b. INCPRO will convert the bitmap image and outputs a header file called IMAGE.H c. The user will then be asked to point to the project group (.dpg) file. In this case the group project file name is "BMP_LCD.dpg" 3) The script will automatically move the Header file generated (IMAGE.H) to its proper destination and opens the Group Project (BMP_LCD.dpg) in VisualDSP and builds the project. 4) Start both cores automatically by selecting Yes when "Run the Traget in the IDDE automatically" message box is presented. Click No to run manually or by pressing (CTRL-F5) 5) Observe video output on the LCD display. 6) Exit when done. ******************************************************************************* Analog Devices, Inc. DSP Division Three Technology Way Norwood, MA 02062 (c) 2005 Analog Devices, Inc. All rights reserved. *******************************************************************************

近期下载者

相关文件


收藏者