Home

Project - Pantech Solutions

image

Contents

1. A Project Output Window ELI Ready A Start li e a amp W document Microsoft Word IE mm Devices Visual FFA08002 NOP FFA0s004 NOP FFAO08006 NOP FFAO08008 NOP FFAO0800A NOP FFAO0B800C NOP FFAO0800E NOP FFA08010 NOP FFAO08012 NOP FFAO08014 NOP FFAO08016 NOP nf FFA08018 NOP FFA0801A NOP FFA0801C NOP FFAO0801E NOP FFAO08020 NOP FFA08022 NOP FFA08024 NOP FFAO08026 NOP FFA08028 NOP FFA0802A NOP FFA0802C NOP FFAO0802E NOP void meint Init _Flags Init_Interrupts whiletci Halted Line 55 col 1 VBScript GENEPENM qu NUM i EE S D cH 2 43 4m Loader file will be generated in the folder mentioned in the project options Join the Technical Community Today http www pantechsolutions net This loader can be loaded in the flash memory by using Blackfin flash programmer which is explained in chapter5 6 Programming FLASH Using Flash Programmer 6 1 Booting modes of BLACKFIN The ADSP BF531 ADSP BF532 ADSP BF533 processor has two mechanisms listed in Table for automatically loading internal L1 instruction memory after a reset A third mode is provided to execute from external memory bypassing the boot sequence Jumper dampers Mode Execute from 16 bit EN Boot from 8bit 16 bit Boot from serial master Boot from serial slave EEPROM flash 8 16 or 24 bit address range Join the Technical C
2. Flash PROM UAAT C SPI C Twi C SPI Slave 16 bit C Include C Binary H A Generated Files E A MedianFilter EE adii bs Wait state Baud rate Hold time Programmable flag FFA0800E NOP mE mediantite c Pip z z fo z CO LinkerFiles i FFA08010 NOP be v Use default start address Start address 0x0 FFA08012 NOP s LQ Generated Files IV Verbose FFA08014 NOP FFA08016 NOP FFA08018 NOP FFA0801A NOP FFA0801C NOP amp lp Filtering B Source Files P Initialization file Use default decompression INIT file E CADocuments and Settings Administrator D esktop bf532 exampl Output file FFA0801E NOP I Ra Options TM a A x FFA08020 NOP H Generated Files qeu PN C Documents and Settingss amp dministratorD esktop XQ32 ex FF 08022 NOP ly Kernel Additional options FFA08024 NOP i ee of FFA08026 NOP K 1 FFA08028 NOP Ji Project x P 1 3 6 9 7 E 516 Breakpoint Hit at lt ffa09330 gt 5 Mu iz gt gt ETT ETE consote Baia Le 7 Ready Halted Line 224 Col 1 VBScript NUM Join the Technical Community Today http www pantechsolutions net B File Edit Session View Project Register Memory Debug Settings Tools Window Help Dgs Be AAeRSZOOOD BY anada x a h HOB S QGP Em i OP Ove Ba Project Filtering dpj x Project Options for Filtering 2
3. MATLAB E nm File Edit View Web Window Help Dg X e ce Current Directory CiDocuments and SettingstAdministratarIDesktop BF532 Examples v War kespace EJ E3 Command Window a x co Bd Ey s FIR Filter iC filter demo m lena pra Flag Input Cingerprint png peppers2ese png Image Addition flinstonezs pnq sharpen demo fig LED gui BE53z asw sharpen demo m Median Filtering gui Brise fig sinewave Mew Text Document txt qui Bf53z m te mat PUM Timers qui add asw wart Sharpening Filter gqui_add fig utility harhara png gui add m barco pny gui addl fig gt gt qui bf 532 Warning Figure file created with a newer version 7 0 0 of MATLAB gt In DL MATLABSp5 toolboxmatlabsiofunMhgload m at line 65 In C MMATLABS6p5 VtoolboxMmatlab graphics oopenfig m at line 383 In C MATLARSpS toolbox matlab yuitools qui mainfcn m local openfig at line 154 In C MATLABRSpS toolbox matlab uitools gui mainfcn m at line Ge In C Documents and Settings Administrator Desktop BFose Examples gui B 532 m at lin Warning Unrecognized abject type uitools uiburtongroup gt In D MMATLABSp5 toolboxmatlabMiofunMhgload m at line 114 In C MATLABB56p5 VtnoolboxMmatlab graphics onpenfig m at line 59 In L MATLAB6pS5 toolbox matlabNuitools gui mainfcn m local openfig at line l84 In C MATLAB6p5 MtoolboxMmatlabsuitools sqgui mainfcn m at line 82 In C Documents and Settings MAdministrator nDesktopMBF53zZ Examples gui B 53Z m at lin
4. Bl Standard application FFA0801A NOP SB Library FFAOS01C NOP F3 Multithreaded application using YDK FFA0801E NOP FFAOQS020 NOP FFA08022 NOP FFA08024 NOP FFA08026 NOP FFA08028 NOP FFAO802A NOP FFA0802C NOP FFA0802E NOP FFA08030 NOP z gt Pe TCP IP Stack application using LwiP and YDK x lt Back Next gt Finish Cancel 2 E 2 I Ld zd gt Ready Halted IvBScript NUM start e a isl document Microsoft Word janatog Devices Visual R3 cpm QUEE 2 34AM In the Name field type any name Click the browse button to the right of the Directory field to open the Browse For Folder dialog box Click Next to bring up the Output Type page Join the Technical Community Today http www pantechsolutions net gt Analog Devices VisualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator 2 File Edit Session View Project Register Memory Debug Settings Tools Window Help D ck C Gs x P e E E E K g p m D W Se G E zy a 3 8l ti Project Window m x Project Group 0 project Project Information Choose the project s target processor and output Eype FFA08000 NOP gt FFA08002 NOP FFA08004 NOP FFA08008 NOP Processor types FFA08004 NOP FFA0800C NOP Processo Description FFA0800E NOP 8 ADSP 21367 SIMD SHARC P
5. FFA08010 NOP FFA08012 NOP FFA08014 NOP FFA08016 NOP FFA08018 NOP FFA0801A NOP FFA0801C NOP FFA0801E NOP FFA08020 NOP FFA08022 NOP FFA08024 NOP FFA08026 NOP FFA08028 NOP FFA0802A NOP FFA0802C NOP FFA0802E NOP v void main i Init Flagss Init Interrupts while 1 Lx ix Loading S aaaa dxe Load complete Breakpoint Hit at lt ffa08870 gt o E 9 Selects project options Halted Line 55 Col 1 VBScript NUM df start leme il document Microsoft Word Ig Analog Devices Visual t QI 294m From the Project menu click the Project Options command to display the Project Options dialog box Or Press Alt F7 Join the Technical Community Today http www pantechsolutions net gt Analog Devices isualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator 2 Project aaaa aaaa B File Edit Session View Project Register Memory Debug Settings Tools Window Help m lej xj Osbha is 8 Bl Ls 4A A o S5 D D D D were E Im m cf E HOB 5 4S 4e P5 El p 0 oe Ba Project aaaa dpj 1 Project Group 1 project El Ub aaaa Source Files its Project E Target Processor aps P BF532 Revision Automatic m Type Executable file Em Executable file Library file gt B aaaac E Linker Files C He
6. FFA0887E FFA08882 FFA08884 FFA08886 FFA08888 FFA08884 FFA0888C FFA0888E FFA08890 FFA08892 FFA08894 FFA08898 FFA08898 FFA08894A FFA0889C FFA08870 CAE Init Flag main LINK xc CALL Init Inte JUMP S 0 0 F JUMP S 2 xF PO FP Ox UNLINE JUMP PO enable int Ri 1 R1 lt lt RO CLI RO R0 R1 RO STI RO RTS disable int Ri 1 Ri lt lt RO RO R1 CLI R1 RO RO amp R1 STI RO RTS _register_hand y gt Halted line55 Coli vBScript NUM Ep 2 38am Join the Technical Community Today http www pantechsolutions net Changing the Project Options gt Analog Devices VisualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator 2 Project aaaa aaaa 8 x File Edit Session View Project Register Memory Debug Settings Tools Window Help 81 x DHSS BBE oe MACHT ST OCOOD w Y mm uc ax Fa Bl e ies e 2S o EE J Gag fet O BE amp Project Options alt FD P 4 er Ea 8 Gl Project aaaa dpj x Disassembly x 4 Unmask the PF3 in Interrupt A p Project Group 1 project pFIO INEN 0x08 zl m gr cr Gms a e le m es xpFIO BOTH 0x00 FF 08000 aaaac FFA08002 NOP I Linker Files FFA08004 NOP FFA08006 NOP FFA08008 NOP FFA0800A NOP FFA0800C NOP FFA0800E NOP
7. w Join the Technical Community Today http www pantechsolutions net Select Image addition and click run to open the GUI ET AR Image Processing Applications select Project Image Adctian Aun Click connect to connect the serial port to the PC ensure you have exit the Blackfin flash programmer Join the Technical Community Today http www pantechsolutions net gui addi f inl x Serial Port s CONNECT 8500 zl Input BROWSE SEND Output Select Method Min RECEIVE Port is connected with baud rate 9600 will be displayed in the message window gui addi EM l iani x Serial Port 2 CONNECT 3600 x Input Output Select Method Mir RECEIVE Join the Technical Community Today http www pantechsolutions net Click browse button to load the Image Pick an Image ES xl Look in C b 532 examples j c E La Image Analysis quart B Fingerprint convolution LED C utility Ei flinstones FIR Filter C J Median Filtering E barbara If house Flag Input La PwM Timers If barco lena hist eq C Sharpening Filter E boat ER mri L Image Addition 0 sinewave e ct If peppers 5 Iri File name ct Open Files of wpe brop joo jpeg tiff pna Cancel Click Send To Transmit The Image Through Uart gui_addi E D x EUNTEM ici x Serial Port CONNECT S600 Input BROWSE SENMO Output Select
8. FFA0800C NOP My Computer FFA0800E NOP SE My Network Places FFA08010 NOP L bf532 examples FFA08012 NOP CI moha FFA08014 NOP FJ utility FFA08016 NOP BB tty code FFA08018 NOP FFA 0801A NOP FFA0801C NOP FFAOSO1E NOP FFA 08020 NOP FFA 08022 NOP FFA 08024 NOP FFA08026 NOP FFA08028 NOP FFA0802A NOP Cancel FFA0802C NOP FFA0802E NOP FFA08030 NOP ag Input 4 5 pSIC_IMASK x 00080000 History Desktop File name fo Files of type All Source Files c cpp cxx asm s L Project aaaa ME Output Window 14 axi M Console Ready Halted Line 62 Col 1 VBScript NUM Start e a 1 document Microsoft Word ganatoo Devices Visual t grs QE 2 36AM To display the files that you added in step 4 open the Source Files folder in the Project window gt Analog Devices isualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator 2 Project aaaa aaaal za j xj File Edit Session View Project Register Memory Debug Settings Tools Window Help 18 xj ee eae E EM GMT TM D DD N E m ec had aaaa Debug ir De Irs ee PECEL 0 or Gl GJ amp Disassembly EST xpSIC IMASK x 00080000 i void Init Flagzs void 1 FFA08002 NOP FFA08004 NOP Ca y Files 44 Contigure PF2 as Output an
9. MT48LC8M16A2 SDRAM Expansion Header RS 232 Port Serial Port 27 MHz Oscillator SPI FLASH 2048 Kilobits Flash1 MB 512K x 16 AT25F2048 Blackfin BF532 8051 SPI PROGRAMMER Optional 3 3V Regulator 1 2V Regulator 5 VDC 2A Supply 100 240V AC Input 50 60 Hz AC Wall Adapter Included Figure 1 1 Blackfin Evaluation Board Block Diagram Join the Technical Community Today http www pantechsolutions net 3 component locations BLACKFIN EVALUATION BOARD Figure 2 1 Blackfin evaluation Board Components placement 4 INSTALLATION AND SESSION STARTUP 1 Plug the provided power supply into the Evaluation board Visually verify that the green power LED D1 is on Join the Technical Community Today http www pantechsolutions net 2 Connect one end of the UART cable to an available COM port on your PC and the Other end to the DB9 Connector Step 1 Start VisualDSP To start VisualDSP and creating a session 1 Click the Windows Start button and select Programs Analog Devices VisualDSP 4 5 and VisualDSP Environment If you are running VisualDSP for the first time you will not be connected to a debug target In VisualDSP 4 5 it is possible to edit and build your code without being connection to a debug target through a debug session When you are ready to run and debug your program you can quickly connect to a target and disconnect when you are finished Doing so eliminates the ove
10. Paint E BFS32 Examples 238 BG s 25em Change the current directory for BF532 Examples folder MATLAB Sele File Edit View Web Window Help D BBP Curent Directory cxdocuments and Settngs AatnnistratorDesktoplBFsa2exemples Y L Workspace A x Command window EJIES Using Toolbox Path Cache Type help toolbox path cache for more info To get started select MATLAB Help from the Help menu gt gt cd Ci3 Documents and SettingsMAdministratorMDesktopMBF53z Examples PF Join the Technical Community Today http www pantechsolutions net Type Is in the command prompt to view the files MATLAB SEE File Edit View Web Window Help Current Directory CiDocuments and SettingsiAdministrator Desktop BF 532 Examples wt Command Window n Using Toolbox Path Cache Type help toolbox path cache for more info To get started select MATLAB Help from the Help menu C Documents and SettingssAdministratorMyDesktopMBF532 Examples hoat png gui addl m convolution hist eq filter demo fig house png FIR Filter iC filter demo m lena pny Flag Input fingerprint pmngq pepperzszb55 pnq Image Addition flinstonez pnq sharpen demo fig LED gui B 53z aswv sharpen demo m Median Filtering gui B 53z fiqg Sinewave New Text Document txt cqui Bf53z m te nat PUM Timers gui add asw uart Sharpening Filter qui_add fig utility barbara png gui add m harco png gui addl ficg gt gt Type gui_bf532 to open the GUI
11. Project aaaa dpj aE Project Group 1 project Disassembly EST zu m D aaaa EX INTERRUPT HANDLER Flag ISR FF 08000 E 3 Source Files 1 FFA08002 NOP B aaaac unsigned long i FFA08004 NOP C Linker Files 4 confirm interrupt handling FFA08006 NOP C Header Files PFIO FLAG 5 x 002 FFA08008 NOP r i i xffffff por i i i 0 i lt 0x i FFAOSO0A NOP pFIO_ FLAG C 00002 LFFADBODC NOP pFIO FLAG C 0x0008 ESPRUGOIDI NOE FFA08012 NOP FFA08014 NOP FFA08016 NOP FFA08018 NOP m FFA0801A NOP rie Init Interruptzs void FFA0801C NOP 4 assign core IDs to ipee FFA0801E NOP pSIC IARO Oxfffffff FFA08020 NOP pSIC IAR1 xffffffff FFA08022 NOP x xpSIC IAR2 xffffb5ff4 4 4 Timer ID4 FFA08024 NOP 4 assign ISRs to interrupt vec FFA08026 NOP A register handler ik ivgil TimerQ TISR 4 TimerO ISR gt FFA08028 NOP register handler ik ivgl2 Flag ISR 44 Flag ISR gt FFA0802 NOP v FFA0802C NOP gt FFA0802E NOP FFA08030 NOP Lu utput Window BALA Builds the active edit File Halted lLine 46 Col 4 VBScript NUM d start e a 3 document Microsoft Word Anats Devices Visual Ge QE at 2 38am At the end of the build the Output window displays this message in the Build view Build completed successfully Join the Technical Community Tod
12. 1 project tinclude lt sysreg h gt 3 a B uart UNIF S E Source Files void Init_PLL void gt ui uste volatile int test 0 S rrEi Linker Files FFi Header Files sysreg write reg SYSCFG 0x32 Initialize System Configuration Rec FFi FFi xpSIC_IWR Ox1 a pPLL CTL 0x2C00 FF ssync x idle FF FF FF J3 7end XeInit PLLx FFi FF FF section L1 code int UART detect utobaud void 1 FFi int period Q FF FF 4 Activate Loopback mode in order the receive channel is disconnected FFi 4 4 from RE pin during autobaud detection FFi x xpUART MCR LOOP EN FF Setup Timer 2 Controller to do the autobaud detection Timer captures FFi duration between two falling edges It expects a ASCII 0x40 v FF lt gt FFi i v i n Project main processD ata Initialize_pnth ISR lt a Section start address OxFFA08000 Section byte count OxD68 Output Window IS lt AERIAL Console Build Ils Halted Line 1 Col 1 VBScript ISP1760 H fw 4 Window 3AdobeR OrCAD Cap M 2 Microsof P Analog Devi le a 11 30 AM Loader file will be generated in the folder mentioned in the project options Now the generated Loader file should be loaded into the Flash memory by using Blackfin Flash programmer Make Sure that the Board is in Programming Mode By Placing Jum
13. Dist m igh General v Verbose EA LDF Preprocessing Initialization file Use default decompression INIT file A Elimination CAD ocuments and Settings 4dministrator Desktop bfos exampl ie es Rh Processor E ir E Output File CAD ocuments and Settings amp dministrator Dresktop br832 exampl free eee L B Kernel Additional options ie cena Select loader init tile i 2 X Look irr E Debug t Ex E3 am MedianFilter dxe SDRAM InitFarCuskom dxe hy De cumsents hy Computer File name SDRAM InitforCustom hu Network P Files af type Loade Init File dee Cancel Join the Technical Community Today http www pantechsolutions net Select loader output file T X Save in E Debug B3 ef E3 mk History d k Desktop My Documents wi hy Computer File name MedianFilter hl Save as type Loade Output File Idr Cancel I Analog Devices isualDSP Target Not Connected Project MedianFilter File Edit Session View Project Register Memory Debug Settings Tools Window Help Oold gi Ctrl F7 a d A ot S A A DW M E x bi dg in Rebuild Project Debug z h Diy Is fel BR amp Bg Cen Project Dae Snags Stop Build Project MedianFilter dp Vay Project Options Alt F7 Project Group 1 projec ems MedianFilter Set Active Proje
14. Method Mair RPECEIWE Join the Technical Community Today http www pantechsolutions net Press OK for Wait Image Being Sent Dialog oxi Serial Part CONNECT 2600 Help Dialog nml xl J Walt Image ig sent Input Output Select Method min RECEIVE If the Image is sent Successfully Image Sent Successfully Dialog Box will come Zox Serial Port CONNECT 3600 Help Dialog mj x J Image is Sent Successfully Input Output Select Method Mir E ENSE Join the Technical Community Today http www pantechsolutions net Browse and select the Second Image gui_addi1 E jul m X Serial Prope CONNECT s600 Input BROWSE SEND Output Select Method Min RECEIVE Click SEND Button to send the Image gui_addi nml x teria Prope 0 CONNECT 3600 io f at image is sent Input Output Select Method Miri HECEN ZE Join the Technical Community Today http www pantechsolutions net If the Image is sent Successfully Image Sent Successfully Dialog Box will come Select the Image Analysis Method from SELECT METHOD Popup Menu Click RECEIVE button to receive the image from Blackfin evaluation kit qui addi _ Oj x Serial Port CONNECT 3600 BROWSE SEND Join the Technical Community Today http www pantechsolutions ne
15. NOP FFA00010 NOP FFA00012 NOP FFA00014 NOP FFA00016 NOP FFA00018 NOP E FFA0001A NOP FFA0001C NOP FFA0001E NOP FFA00020 NOP FFA00022 NOP FFA00024 NOP FFA00026 NOP FFA00028 NOP FFA0002A NOP FFA0002C NOP FFA0002E NOP FFA00030 NOP 4 x Ej i B S 5 2 gt gt E usd 4 bd bi console Creates a new debug session with a debug target Halted VBScript NUM stort 8 A oouments merosot ws Efnatog Devices Visual ODE a ccm Join the Technical Community Today http www pantechsolutions net 3 On the Select Processor page select the ADSP BF532 processor from the Blackfin family Click Next to continue gt Analog Devices isualDSP Target ADSP BF533 ADSP BF5xx Single Processor Simulator File Edit zi D c kd 25 slat Session View Project Register BR Mic Memory Debug Settings ITI E Ron ar Gl UE e Session Wizard Project window TE lix 2 7 i E a EI Select Processor Choose a target processor Project Group 0 project Tools ofa ice sins 81 x window Help A8 cert A Ta Dg Oi Hl O gt sp Welcome M a Select Processor Be lm Select Connection Type E im Select PlatForm MEE Finish urs Project Ready Astarte erue inl document Microsoft Word anates Devices Visual 4 On the Select Co
16. console Reedy Not connected VBScript mom if starc a e ce ow l Blackfin Manual3 A SJ C bFS32 example Bjanatog Devices Mf untitled Paint EJ C Documents an zl lt i gaga Rd 7 03 PM Open Send To Cut Copy Create Shortcut Delete Rename Properties exaripic Astarte a e cee i Blackfin Manual3 Micros j SZ mEE3ITeI 4b 7 11PM Join the Technical Community Today http www pantechsolutions net Loader file will be generated in the folder mentioned in the project options Make the jumper setting J1 and J2 in programming mode and Load the Loader file as given in the above examples by using Blackfin Flash programmer Then Put the Kit in General Mode and RESET the Kit Now Start the MATLAB Changethe Current Directory of the MATLAB to the Project Directory where the MATLAB code is Located It is Shown in the Previous Example Now as given in the Previous section Run Gui BF532 i NE zisixg Image Processing Applications Project Group select Project Median Filtering Join the Technical Community Today http www pantechsolutions net Note Don t forget to Put the Kit in General Mode and RESET the Kit Steps to be followed 1 Configure the Serial Port Baud Rate and Connect to the Kit Using Connect Button in Serial Port Group Wait for the Response 2 Browse the Image using Browse Button and Send the Image using Se
17. i ROW 4096 2 3 Linker Files Add to Project 4 sdram unsigned char im1 4096 B Image Analysis 2 lt sdram unsigned char im2 4096 Header Files S3 Generated Files a Startup Export Makefile amp Image An Batch Build 5 4 User Heap Disassembly Expert Linker Image Analysis ldf X Input Sections Update Dependencies L1 code int UART detect utobaud void 1 period Activate Loopback mode in order the receive cha B Image Ani Configurations from RX pin during autobaud detection A cht ART MCR LOOP EN XN Source Control edt Setup Timer 2 Controller to do the autobaud det frt f duration between two falling edges It expects 7 gdt character 8 bit no parity assumed v 7 gdi il gt 2 rti mage Analysis IE I Project Output Window gt gt I4 14 b bl Console Build lt ut gt Selects project options Halted Line 1 Col1 VBScript NUM s Start a T Blackfin Manual3 Co gt Analog Devices Visual i untitled Paint Project Options for Image Analysis Project Mrs Project Target J Compile ewe SD T l G Pis P Processor ABS ga eae Revision Automatic gh General E Source Language 5 Type Loader file h Preprocessor gh Processor 1 Mame Image Analysis is Profile quided Cptin Teaches 0 Bg Warning 2 fey Assemble Compiler C
18. ntitled Join the Technical Community Today http www pantechsolutions net Copy the address of the folder from address menu Zw BF532 Examples File Edit View Favorites Tools Help ae Back c m 49 Search gm Folders Eia lt a Folder Sync Address D SENSE ieee ta etal ieee le here d b ES Undo E File and Folder Tasks _ 533 Cut convolution CJ FIR Filter C gJ Make a new Folder Paste Publish this Folder to the D web CJ Flag Input Delete hist eq CJ Image Addition EZ Share this Folder m LED C Median Filtering C PwM_Timers Other Places ER Desktop B My Documents and Sharpening Filter a sinewave aad uart f Shared Documents P My Computer barbara barco utility 512x512 med 302 x 231 My Network Places PNG Image PNG Image boat 2 Filter demo Filter demo Fig Details 512x512 pr M File Ez FIG File PNG Image 8 KB EEF LS Fingerprint Flinstones 2 qui add me 512 x 512 512 x 512 M File PNG Image PNG Image 10 KB gui_addi 3 gui_addi fig gui_add asy M File HA FIG File 21 ASY File 12 KB las LS EEE I 57e qui add fig qui Bf532 Q qui Bf532 asv FIG File M File 21 ASY File 33 KB S KB FFF I 55 qui Bf532 Fig house lena FIG File ed 256 x 256 m 512 x 512 12 KB PNG Image PNG Image New Text Document peppers256 2 amp sharpen demo E Text Document s 256 x 256 M File 1 KB 2 PNG Image 8 KB v Ty Blackfin Manual3 Co MATLAB V8 untitled
19. pantechsolutions net Analog Devices isualDSP Target ADSP BF533 ADSP BF5xx Single Processor Simulator File Edit Session View Project Register Memory Debug Settings Tools Window Help ESAE MAE MM EE LEE Kai es eL Loi GEEL 2 wom ase mmn 1 v La RE amp Session Wizard LEIZTEXDUTENEENN S t Plat Project Group 0 project elect Pilattorm 21 c zi FFA00002 NOP FFA00004 NOP FFA00006 NOP FFA00008 NOP FFA0000A NOP FFA0000C NOP FFA0000E NOP FFA00010 NOP FFA00012 NOP FFA00014 NOP FFA00016 NOP FFA00018 NOP mi FFA0001A NOP FFA0001C NOP FFA0001E NOP FFA00020 NOP FFA00022 NOP FFA00024 NOP FFA00026 NOP FFA00028 NOP FFA0002A NOP FFA0002C NOP FFA0002E NOP FFA00030 NOP z Provide a name for the session and choose the specific platform it will connect to IF connecting to an emulator and do not see an appropriate platform in the list click the Configurator to create one if Select Platform B Session name ab SP BF532 ADSP BF5zx Single Processor Simulator 1 Select your platform sd Welcome E IA Select Processor D Select Connection Type in Select Platform 288 Finish SE SP BF5xx Single Processo or Simulator le Blackfin Family Compiled Simulator Show all platforms Tree navigation Select 4 page in the tree navigation to display that page 4 lt Back Nex
20. state 3 aud rate Hold time Programmable flag Sections E Image Analysis heap Eh warning H _ cht f Assemble Use default start address Start addres ps g Fas Link L3 Use default start address Start address fit Fi General v Verbose 7 gdt IE LDF Preprocessing Initialization file Use default decompression INIT file gdtl Fa Elimination C Documents and Settingss amp dministratorND esktop bf532 exampl lel nu T Ri Processor bj Project fik Load Output file gt fey C Documents and Settingss amp dministratorD esktop bf532 exampl lend E Compression 5 kernel Additional options pm v EE 2 3 D amp gt 3 E gt Halted Line 1 Col1 VBScript put Blackfin Manual3 Co gt Analog Devices Visual untitled Paint lt j gt 4 48 PM File name SDRAM_InitForCustom dxe This file we must load into the initialization file section Join the Technical Community Today http www pantechsolutions net Select loader init file Look in 3 Debug O X e El NE Image Analysis dxe m SDRAM _Initfor Custom dxe Muy Recent Documents Desktop Mu Documents Mu Computer e File name SOARAM InitFerCustoam wt My Network Files of type Loader Init File dxe t Build the project by performing one of these actions e Click the Build Project button or e From the Project menu choose Build Project If the project is compiled already then rebuild the project by choosing r
21. 1 Flow Control None Join the Technical Community Today http www pantechsolutions net RESET the Kit again After Changing Hardware settings You can See as shown Connected 0 01 05 T1003 9600 amp N 1 SCROLL caPs TET Capture Print echo 2 Type From iind mo EN ns g comi 9600 HyperTerminal l Bl x File Edit View Call Transfer Help BF532 Is Talking Press To continue OK Continue Typing BT532 Will respond Join the Technical Community Today http www pantechsolutions net Now Press any key DSP will Echo that key TE View Call Transfer Help Da alg BF532 Is Talking Press 8 To continue OK Continue Typing Bf532 Mill respond i Pantech Solutions Pvt Ltd Connected 0 03 15 T1003 9600 8 N 1 SCROLL caps NUM Capture Print echo UART DEMO is Completed 7 2 Example LED Blinking From the File menu choose Open and then Project VisualDSP displays the Open Project dialog box In the Look in box open the the flag dpj Join the Technical Community Today http www pantechsolutions net evices YisualDSP Target Not Connected Project flag File Edit Session View Project Register Memory Debug Settings Tools Window Help 2 OSEES 8S 5x8 o c d A o A GP SS e OS Were 4X Ca Cea Gia B 3 ga 2S fag Debus D Day Us E BE OS de EX El At Pow ED ES CDD E pj P 81 xl Open Pro
22. 1 amp 3 18 x ee X Project Window o EE 1 2 TIT EXE TERES Select Connection Type mH Project Group 0 project Choose the type of connection that you would like to establish For the previously chosen processor below FFA00002 NOP s Select Connection Type ES 0 NOE s Welcome Select Processor A Un Select Connection Type Select the type of target that you would like to connect to FFA00008 NOP i A Select Platform c F EA0000 HOE BBE Finish EZ KIT Lite FFA0000C NOP C Emulat FFAO0000E NOP react FFA00010 NOP f Simulator FFA00012 NOP YS guo EAE FFA00014 NOP FFA00016 NOP FFA00018 NOP FFA0001A NOP FFA0001C NOP FFA0001E NOP FFA00020 NOP FFA00022 NOP FFA00024 NOP Configurator Licenses FFA00026 NOP FFA00028 NOP FFA0002A NOP FFA0002C NOP FFA0002E NOP FFA00030 NOP 4 lt Back Cancel x Fi z p amp Fi E gt j Ready Halted VBScript INUM start eru i9 document Microsoft Word D Analog Devices Visual lt lt Oe QE at 2 29am 5 On the Select Platform page select ADSP BF5xx Single Processor Simulator You can either use the default Session name or give it a more meaningful name of your choosing Click next to review your choices and then click Finish Join the Technical Community Today http www
23. 1 x Project Group 3 projects E a Image Analysis Select loader init file 2 x EI Source Files E Image Analysi EH Linker Files Look in C3 Debug 0 er E3 rage Analysis dxe Header Files z FE io SDRAM InitForCustom dxe H E Generated Files A SE See H A MedianFilter ERES Source Files Type DXE File Poo i Afi Size 2 25 KB Poo E medianfilter c EH Linker Files H Generated Files we ems Filtering My Documents Source Files E filtering c wi amp Linker Files My Computer LI Header Files Pan H E Generated Files F File name SDRAM InitforCustom My Network P MM Files of type Loader Init File d e Cancel gt gt LL File name SDRAM_InitForCustom dxe This file we must load into the initiali section FFA07FFE FFA08000 FFA08002 FFA08004 FFA08006 FFA08008 FFA0800A FFA0800C FFA0800E FFA08010 FFA08012 FFA08014 FFA08016 FFA08018 FFA0801A FFA0801C FFA0801E FFA08020 FFA08022 FFA08024 FFA08026 FFA08028 zation file Disassembly ET NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP 18 x 18 x JH m E Halted line 224 Coli VBScript NUM d Ame 6 02am From the File menu choose Open and then Project VisualDSP displays the Open Project dialog box
24. A08022 FFA08024 FFA08026 FFA08028 FFA0802 FFA0802C FFA0802E FFA08030 Ready Halted VBScript Num Start erue Ww document Microsoft word Analog Devices Visual t fret QE E 2 34am New Project is created To add the source files to the new project 1 Click the Add File button or from the Project menu choose Add to Project and then choose File s Join the Technical Community Today http www pantechsolutions net gt Analog Devices isualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator 2 Project aaaa aaaa le xi Fie Edit Session View Project Register Memory Debug Settings Tools Window Help 121 xj Osbi S ss iX Ba o c dA VW o RST D D DI D iw 9 BOB A X Pis Sia SS e S anos Debus zi O amp O n HOM s y de B5 El TEPE Aa x ix a2 x xpSIC IMASK x 0 080000 EE Project Group 1 project Y zi eI ch aaaa l c FFAD08000 ag ETETEN TEA nit_Flags void FFA08002 NOP E Link Add File s to Folder FFA08004 NOP E i Configure PF2 as Output and PF3 as input FFA08006 Hea Doc NOP Delete Folder FIO DIR x 0002 FFA08008 NOP Unmazk the PF3 in Interrupt A Allow Docking FIO INEN 0x08 eee eee HE FIO MASKA D 0x08 EFACQ00C BOR 2 Hide a oe FFA0800E NOP FIO EDGE Ox08 FFA08010 NOP re FIO_BOTH 0x08
25. C Compiler for Blackfin el fis Link Assembler Blackfin Family amp ssembler Linker Blackfin Family Linker Loader Blackfin Family Loader Splitter Settings For configuration Debug Il Cancel Join the Technical Community Today http www pantechsolutions net Click the LOAD tab to display the General page shown in Figure gt Analog Devices VisualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator Project Image Analysis Image Analysis e x B File Edit Session View Project Register Memory Debug Settings Tools Window Help Dea S88 SOs MACHT M HM 5 X n Se J Image Analysis v Debug v BR HX amp 495 4d mE mode gg amp Bm Project Image Analysis dpj x Expressions Hexadecimal x y Project Group 1 project Project Options for Image Analysis fx B D Image Analysis o Source Files by Project 7 E Image Analysis c fy General amp Gy Linker Files g Compile Boot Mode Boot Format Output Width E Image Analysis Id fi General Flash PROM UART Intel hex CO B bit Header Files ER Source Language S OsP Twi ASCII 16 bit E gt fay Preprocessor O Include H 9 Generated Files SPI Slave ag Stati pz Processor 1 O Binary t Linker Image Analysis ldf ajx E Image Analysis basic ER Processor 2 i a User Heap ER Profile guided Optin Wait
26. C00 ssync 4 4 idlet l end Init_PLL section L1 code int UART_detectAutobaud void 1 int period Q 4 Activate Loopback mode in order the receive channel is disconnected 4 4 from RE pin during autobaud detection x xpUART MCR LOOP EN Setup Timer 2 Controller to do the autobaud detection Timer captures 4 duration between two falling edges It expects a ASCII 0x40 Mi eu gt N Project main processData Initialize pnth ISR L X utput Window X Console A Build Iam Line 1 Col1 VBScript ISP1760 H f 4 Window 3AdobeR OrCAD Cap fj 2 Microsof Analog Devi RI a 11 28 AM Join the Technical Community Today http www pantechsolutions net From the Project menu click the Project Options command to display the Project Options dialog box Analog Devices VisualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator Project uart uart ev t t Register Mer Heln B Fie Edit Sessic Projec Regist Memory Deb Ig Settir gs Tools Window telp Pilbsha Sse sel oe MARS S ADAM iw PIX Bo BB a A um v Debug 4B amp 28s OLB OPO Cove RBH anage Project uart dpj Tr P S A pH Project Group 1 project Project Options for uart jx 3 Ub u a Source Files tip Project 4 Ts Project E uart c f E General Target Ls Linker Files T pas Processor ADSP BF532
27. ER DEMO Action Group Browse Send Receive Serial Port Connect S600 Join the Technical Community Today http www pantechsolutions net IMAGE SHARPENING Sharpening is one of the most impressive transformations you can apply to an Image since it seems to bring out image detail that was not there before What it Actually does however is to emphasize edges in the image and make them easier for the eye to pick out while the visual effect is to make the image seem Sharper no new details are actually created Paradoxically the first step in sharpening an image is to blur it slightly Next the original image and the blurred version are compared one pixel at a time if a pixel is brighter than the blurred version it is lightened further if a pixel is darker than the blurred version it is darkened The result is to increase the contrast between each pixel and its neighbors The nature of the sharpening is Join the Technical Community Today http www pantechsolutions net influenced by the blurring radius used and the extent to which the differences between each pixel and its Neighbor is exaggerated From the File menu choose Open and then Project VisualDSP displays the Open Project dialog box In the Look in box open the filtering dpj As given in before examples Open the Sharpening Project given and generate the Loader file Configure the Kit in Programming Mode Now Load the Generated Loa
28. Float In Main Window FFA08012 NOP Properties FFA08014 NOP FFA08016 NOP t FFA08018 NOP m FFA0801 NOP Toad meint FFA0801C NOP FFAD0801E NOP Init Flags 3c FFA08020 NOP Init Interrupts FFA08022 NOP vhile 1 FFA08024 NOP FFA08026 NOP FFA08028 NOP FFA0802A4 NOP FFAD0802C NOP FFA0802E NOP i FFA08030 NOP Flag Input ry Project Halted Line 62 Col 1 BScript NUM Start e a e document Microsoft word Ianateo Devices Visual ES D pp wt 2 seam The Add Files dialog box appears In the Look in box locate the project folder In the Files of type box select All Source Files from the drop down list Select the file and Then click Add Join the Technical Community Today http www pantechsolutions net gt Analog Devices VisualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator 2 Project aaaa aaaa m la x File Edit Session View Project Register Memory Debug Settings Tools Window Help le x E dad a Ja RT ESGL CaS DOO a mBm sec haa aaaa Y Debug sz i Da DR Ir eee P 0 e Gl amp Project aaaa doi BE Project Group 1 project a aaaa 3 Source Files a Linker Files aa Header Files Disassembly ET E void Init Flags void 10 fadd Files 21 rrraos004 NOP Look in E Desktop g C EJ EEEE oe A FFAOSO0A NOP E
29. In the Look in box open the the imageanalysis dpj Join the Technical Community Today http www pantechsolutions net gt Analog Devices VisualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator Project Image Analysis Image Analysis B File Edit Session View Project Register Memory Debug Settings Tools Window Help s ax Da kg se BE LS uso RSS AAANKM wm 2X p i f X Image Analysis v Debug v i De Ra Hes 4904mgmp modO oo e ggg Sage Project Image Analysisdpi x Expressions Hexadecimal ENE include lt cdefbf532 h gt Name Value Project Group 1 project B D Image Analysis 9 Source Files tdef ine iml unsigned charx 0x00000 tdefine im2 unsigned char 0x20000 E Image Analysis c define ROW 4096 B AJ Linker Files section sdram unsigned char im1 4096 B Image Analysis Idf section sdram unsigned char im2 4096 phi a x Disassembly eu Generated Files section L1 code int UART detect utobaud void 2 3 Startup int period 0 Expert Linker Image Analysis ldf Rabe 5 Image Analysis_basiccrt s Activate Loopback mode in order the receive cha Input Sections a User Heap B Analsis heantab from RE pin during autobaud detection mage Anaysis_neaptaD c pUART MCR LOOP_ENA 4 Setup Timer 2 Controller to do the autobaud det 4 4 duration between two falling edges It exp
30. This document is owned by 3 Fp www pantechsolutions net Republishing or redistribution is prohibited DSP DSC BOARDS Blackfin Evaluation Board Contents 1 Introduction cccecccscccseccseceseceneceucceuceeecceeceseceeceseeaseeeeeaes 3 1 1 Technical or Customer Support eeeeeeeeee 3 http www pantechsolutions net forum eene 3 1 2 PaCKOBBS eecscasusimuriitiaud ee eee 4 2 Introduction and Overview eee 4 2 1 Introduction and Overview ccccescceseceeececceeeeeeeseceeeees 4 3 component locations eeeesseeseeseeen menn 8 4 INSTALLATION AND SESSION STARTUP eee 8 5 Creating a Project in Visual Dsp uu ccc cescesceseeseeseeseesees 14 6 Programming FLASH Using Flash Programmer 30 6 1 Booting modes of BLACKFIN eee 30 6 2 Programming MOdEeC cccceccesceecceceecesceeeceeceeseeeeeeceusees 33 6 3 General Mode eese 34 04 B3slC SOLUD icmeeeerdeiQeti iue ciat I PRIM N NN IM DIEE 35 7 Example 1 Uart 45 7 2 Example LED Blinking ccc cecceseeseeseeseeseeseeseeseess 60 7 3 Example Image Processing ccccecsecsseeeccecenseseeeseeeees 63 Applications eese mene 64 7 4 Board LAYOUt ccccccecceeceeccecceceeecceceuceeeeeeceuseeeeeeceeceuss 103 Join the Technical Community Today http www pantechsolutions
31. ad the File Port Mame COM Ts Baudrate 115200 Memon Occupied Stop bits f OO Data bits B rl PANTECH SOLUTIONS Connect Disconnect Technology Beyond The Dreams Step 2 Erase Status Window Hexadecimal File Kilobytes Step4 Program Program Exit n FH About uz Help Bytes Check Sum Output Window DSP Kit Erase successtully Step 3 Selecting the Hex File Select the file by using browse button The status bar will show you the memory occupied and the file contents file size and checksum will be displayed in status window il ES Blackfin532 External Flash Programmer Pantech Solutions Pwt Ltd a xj Step3 Load the File D newblackfin boards Projects On Ble Memory Occupied i PANTECH SOLUTIONS Technology Beyond The Dreams Status Windoaw Hexadecimal File Stepl Cam Part Settings Port Mame ow Baudrate 120 l Stop bits oOo H Data bits Bo Eonnect Disconnect Step z Erase Kilobytes Step4 Program Program Exit Tq one o toe About uz Help Bytes Check Sum Output window Join the Technical Community Today http www pantechsolutions net Step 4 Programming the flash Click program button to program the device il EE Blackfin532 External Flash Programmer Pantech Solutions Pt Ltd l x Status Window Hexadecimal File Step3 Load the File Bro
32. ader Files p i Bg Genera I a e Compile O T L8 Ry Source Language Se fy Preprocessor Bl Processor 1 Bil Processor 2 Bg Profile guided Optim Name Loader file Object file Tool Chain eem Compiler C C Compiler for Blackfin FA08016 NOP El P OEIL Lin FA08018 NOP EB General Assembler Blackfin Family amp ssembler m FA 0801A NOP Bg LDF Preprocessing i E Elimination 01 Bg Processor Linker Blackfin Family Linker Loader Blackfin Family Loader Splitter T Fa Settings for configuration Debug gt Cancel Output Window MALI Ready Halted Line S coi IvBScript Nur Start eue Ww document Microsoft Word E Aanaog Devices Visual Eaj HOI aA 2 39AM This dialog box enables you to specify project build information 9 Take a moment to view the various pages in the Project Options dialog box by selecting them from the tree on the left Project General Compile Assemble Link Load Pre Build and Post Build On each page you specify the tool options used to build the project Join the Technical Community Today http www pantechsolutions net On the Project page verify that the values shown in Table are entered here ADSP BFS32 Loader File Uem tie QUT ET These settings specify information for building an executable file for the ADSP BF532 processor Th
33. al Mode In general mode a jumper must be connected to J1 as shown below J8 WP should have a jumper as shown below B WP fam EX Join the Technical Community Today http www pantechsolutions net SSEL should be configured for BF532 as shown below SSEL MEU And Reset the kit Previously whatever are there in the Programming Mode keep all Additionally just we need to put the JUMPER in J1 or BMODE1 in C side Now the Boot Mode is changed to 01 where it will Boot from 8 bit 16 bit Flash 6 4 Basic setup Blackfin External Flash programmer is Windows software from the Pantech solutions private limited that allows easy access to the Flash memory These features include eCommunicating to the Black fin Evaluation module Join the Technical Community Today http www pantechsolutions net e Erasing the Flash memory e Programming the Flash memory External flash programmer provides a clear and simple user interface to these features and more as described in the following sections Minimum Requirements e Windows 95 98 ME NT 2000 XP e Mouse e COM Port e 16Mb RAM e 3Mb Disk Space Main Window The following is a screenshot of the main window Join the Technical Community Today http www pantechsolutions net PANTECH SOLUTIONS Technology Beyond The Dreams The window is divided up into six sections Work your way from section 1 to section 4 to program a device using
34. and Join the Technical Community Today http www pantechsolutions net pepper noise Its edge preserving nature makes it useful in cases where edge blurring is undesirable As given in the above section open the Median Filtering Project Modify the Project options as shown below Iry Project Target Processor PABE REIP Revision Automatic Type Loader file Project L Preprocessor m gh Processor 1 T Processor 2 M ame M edianFilter Compiler Icy C Compiler for Blackfin Assembler Blackfin Family Assembler Linker Blacktin Family Linker Loader Blackfin Family Loader Splitter a Settings for configuration Debug z H men Click the LOAD tab to display the General page shown in Figure In Options tab Select the Initialization File and give the Location where the Loader file to be saved Join the Technical Community Today http www pantechsolutions net Project Options for MedianFilter Project EX Project Load Options Boot Mode Flash PROM C UART C SFI C Tw C SPI Slave C FIFO Output Width C B bit 16 bit Boot Format C ntel hex f ASCII C Include C Binary a m Prepracessar E h Processor 1 gh Processor z x E Prafile quided Optim VW al state Baud rate Hald time Programmable flag m i NONE i Link IY Use default start address Start address
35. ator Project uart uart B File Edit Session View Project Register Memory Debug Settings iodo Helg Em Pn Has o5 i me ader output file P Xu Us BS i Es uar ELIE Project uart dpj xl pp g AA i Documen S pH Project Group 1 project v S uart E Sa Source Files B vate e Senera Linker Files Header Files 5 senera l FFi in IE Genera v ave FF Loader Output File ldr ance FFi rocessor JUDU D z D New Blackfin 2008 New BF532 EWB 2008 All Debugging file ions Eh Compression Additional options ER Kernel ER Splitter v Halted Line 1 Col1 VBScript ISP1760 H fan 4 Window 3 AdobeR amp OrCAD Cap fl 2 Microsof choose boot mode as flash PROM Boot Format as Intel ASCII and Output width as 16 bit Choose a folder for an output file After changing the options again Rebuild All Join the Technical Community Today http www pantechsolutions net gt Analog Devices VisualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator Project uart uart B Fie Edit Session View Project Register Memory Debug Settings Tools Window Help Lak mines lsg Qc d AC M SU PN T ax Bae S uart v Debug v i a h Oy Ig BE S a e GG amp Pe m c m a x include lt cdefBF533 h gt het
36. ay http www pantechsolutions net The project can be rebuilt by choosing rebuild all File Edit Session View Project Register Memory Debug Settings Tools Window Help pe ee ae ea Project Group 1 project E lp aaaa Er E Source Files Ca Linker Files CJ Header Files v Project lx Output Window Rebuilds the entire project gt gt lia gt bi console rd d di ee EX 1 c c dA twe Sse OOO aaaa liDebua eset oo kel fF amp l INTERRUPT_HANDLER FlagA_ISR unsigned long i confirm interrupt handling pFIO FLAG S Ox0002 for i 0 i lt Onftfffff i pFIO_FLAG C O0x0002 pFIO_FLAG C 020008 void Init_Interrupts void 4 assign core IDs to interrupts xpSIC IARO pSIC IAR1 xpSIC IAR2 4 assign ISRs to interrupt vectors register handler ik ivgi11 register handler ik ivgl12 Flag ISR if start eru W document Microsoft Word Ig anatoo Devices Visual Press F5 to run the project File Edit Session View Project Register Memory Debug Settings Tools Window Help rt EAR RE x A BBel aaaa Y Debug foe eee Project aaaa dpj x Project Group 1 project E j aaaa E A Source Files i f aaaa c r Linker Files ie a Header Files rs Project z i g I E 79 _ Ready Loadin g Load complete Breakpoint Hit Unmask the PF3 in Inter
37. ct b E Source Files Dray Project Dependencies D m E medianfilte H E Linker Files Add to Project j B MedianFilt 9 Remove Selection per Header Files ge Generated File Update Dependencies a 3 Startup Export Makefile Ed UserHear Batch Build Configurations Source Control ul _ Project Lx Ix 3 B l gt a 2 o Builds the project as necessary Not connected S WBScip NMM df start eme i Blackfin Manuals CXCAb S32 example Analog Devices f Juntitled Paint E C Documents an SESEO 7 03pm Join the Technical Community Today http www pantechsolutions net 1 x gt Analog Devices isualDSP Target Not Connected Project MedianFilter File Edit Session View Project Register Memory Debug Settings Tools Window Help D cx kd Gl a X 2 0 d WE Gc wos 44 7h aa N7 E 2X in Pug da S EX ge G5 MedianFilter Debus Da De l E 9 SA um wf de RB ES c Peo er Ele amp Sn RS m roject MedianFilter dpj mj xj Project Group 1 project S in MedianFilter 3 Source Files E medianfilter c Linker Files E MedianFilter ldf LL Header Files 43 Generated Files Startup J User Heap gt Project Build completed successfully Output Window Build is 4 Do D amp
38. d PF3 as input FFA08006 NOP Header Files xpFIO DIR x 0 02 FFA08008 NOP ARAA THER xen i Interrupt A FFA0800A NOP pFIO MASKA D 0x08 eee NOE xpFIO EDGE 0x08 FFA0900E NOP 3 pFIO BOTH 0x08 FFA08010 NOP FFA08012 NOP FFA08014 NOP FFA08016 NOP FFA08018 NOP mi FFA0801A NOP FFA0801C NOP FFA0801E NOP Init_Flags FFA08020 NOP void main Init Interrupts FFA08022 NOP while 1 FFA08024 NOP FFA08026 NOP FFA08028 NOP FFAOS802A NOP Se FFA0802C NOP gt FFA0802E NOP FFA08030 NOP Project lx Ix Output Window a 1 pif Console Ready Halted lLine 62 Col 1 VBScript Num d start eru W document Microsoft Word ganatoo Devices Visual Eft QE SE 2 37AM Join the Technical Community Today http www pantechsolutions net Save the Project and then build the Project Build the project by performing one of these actions e Click the Build Project button or e From the Project menu choose Build Project gt Analog Devices isualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator 2 Project aaaa aaaa 8jx Bl File Edit Session View Project Register Memory Debug Settings Tools Window Help l x Osea s s S e o c ea 34 S59 OOOO cu NN 9 E IT cR 2 5 amp Gy Mea Cee E EB e BS osse Debus e gt a Da De SOR A a 0 Ed GJ amp
39. der file into the Flash by using Blackfin Flash Programmer Software Now Configure the Kit in General Mode and RESET the kit and start the MATLAB Change its Working Directory to the Directory where Project MATLAB code is located Now Run the File Gui Bf532 we will get the GUI as shown here Join the Technical Community Today http www pantechsolutions net Select the Sharpening from Select Project and then Run Se NE 10 x Image Processing Applications Project Group select Project Sharpening Note Don t forget to Put the Kit in General Mode and RESET the Kit Steps to be followed 1 Configure the Serial Port Baud Rate and Connect to the Kit Using Connect Button in Serial Port Group Wait for the Response 2 Browse the Image using Browse Button and Send the Image using Send Button Join the Technical Community Today http www pantechsolutions net 3 Receive the Median Filtered Image using the Receive button The Pages follow will give the Pictorial View of the Each Process Running O xg FILTER DEnN c tion Buttons Browse Send Feceivre Join the Technical Community Today http www pantechsolutions net 15 gt FILTER DENM tc Browse Send Recelve Serial Port Connect 3600 Zx FILTER DEMO iok Walt Image is being Sent Browse Send Receive Serial Port Connect 9600 Join the Technical Comm
40. e Program Join the Technical Community Today http www pantechsolutions net Step 1 Start VisualDSP and Open a Project To start VisualDSP and open a project 1 Click the Windows Start button and select Programs Analog Devices VisualDSP 4 5 and VisualDSP Environment 2 From the File menu choose Open and then Project VisualDSP displays the Open Project dialog box 3 In the Look in box open the UART Project given in the CD Example codes Join the Technical Community Today http www pantechsolutions net Project uart dpj Project Group 1 project Sars uart 2c Source Files uart c Linker Files Header Files E rs Project Project Loaded in the Project Window Changing the Project Options gt Analog Devices VisualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator Project uart uart BEAR B Fie Edit Session View Project Register Memory Debug Settings Tools Window Help a x Bloska Sse BB oa MACHETE whe 2 pa X a OB i T uae v Debug v 15 W ELSE d 48 5 46 B7 E HCO e Ra N x Project Group 1 project EIm Ss mi include lt cdefBFS33 h gt include lt sysreg h gt ia i D uart 6 6 Source Files x void Init PIL void 3 B uart c i i i volatile int test 0 g Linker Files 3 Header Files sysreg write reg SYSCFG 0x32 Initialize System Configuration Rec x xpSIC IUR 0x1 pPLL CTL 0 2
41. e executable contains debug information so you can examine program execution Click the LOAD tab to display the General page shown in Figure Join the Technical Community Today http www pantechsolutions net gt Analog Devices isualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator 2 Project aaaa aaaa oj xi File Edit Session View Project Register Memory Debug Settings Tools Window Help 181 xl D cx Ed C amp b cs S c X Ha o c mat x S39 DD D D D wee Bose Ee a x ue ua Oe S gx e GA sees i peo O m SR HOB s 45 de MPO SP Proc Dw amp J ETZTSETTITESENENNN TUIUEOEZZKORRCOEESISOTSWETRGpCOR _ Q am Project Group 1 project Source Files E Bl aaaa c J Linker Files Header Files L Project lxx Output Window Ready i Start eue Wh document Microsoft Word IE anaig Devices Visual Loading Load gt gt al gt ni Console C N Documents complete Breakpoint Project Options for aaaa E yy Project EZ Project Load Optio ae idein Boot Mode Boot Format Output Width FA08004 NOP S General f Flash 7PROM UART f Intel hex f 8 bit FA08006 NOP fy Source Language Se SPI ED TEA ASCII 16 bit FA08008 NOP Preprocessor nclude IE SPI Slave es lud FAOSOOA HOP Bg Processor 1 Bg Processor 2 f Binar
42. ebuild all Build completed successfully Join the Technical Community Today http www pantechsolutions net alog De alDSP E File Edit Session View D b Be Build File b E e Rebuild Project Clean Project BE 49 de Project Image Analysis dpjll B Image Analysis 5 4 Linker Files E Image Analysis gt lt Header Files 2 3 Generated Files L Project 3 n ai He ADSP B ADSP B ale Processo atu Proje ave Alia Register Memory Debug Settings Tools Window Help X Pia Project Options Add to Project gt Update Dependencies Source Control Ctrl F7 AAA cw i D d Ot th y v Debug v amp l E m est Alt F7 e cdefbf532 h Al Project Group 1 project z l amp Image Analysis Set Active Project b EJ 3 83 Source Files Project Dependencies ne iml unsigned char 0x00000 ne in unsigned char 0x20000 ROW 4096 sdram unsigned char imi 4096 sdram unsigned char im2 4096 pes L1 code int UART detect utobaud void a Startup Export Makefile period 0 5 Image An Batch Build Z Activate Loopback mode in order the receive cha B 43 User Heap i gt Eg A Configurations from RX pin during autobaud detection image n ART_MCR LOOP EN Setup Timer 2 Controller to do the autobaud det 4 4 duration between two falling edges It expects characte
43. echsolutions net Open the Blackfin external flash programmer to program the loader file into flash memory As given in the Above Example load the Loader file generated by using Blackfin Flash Programmer Exit the programmer by using exit option and change the jumper settings to General mode and reset again you can watch the led blinking 7 3 Example Image Processing Image Fusion is the process of combining relevant information from two or more images into a single image The resulting image will be more informative than any of the input images In remote sensing applications the increasing availability of space borne sensors gives a motivation for different image fusion algorithms Several situations in image processing require high spatial and high spectral resolution in a single image Most of the available equipment is not capable of providing such data convincingly The image fusion techniques allow the Join the Technical Community Today http www pantechsolutions net integration of different information sources The fused image can have complementary spatial and spectral resolution characteristics But the standard image fusion techniques can distort the spectral information of the multispectral data while merging In satellite imaging two types of images are available The panchromatic image acquired by satellites is transmitted with the maximum resolution available and the multispectral data are transmitted with coar
44. ecksum will be displayed in status window Note For Every Loader file Checking in Status Window is Difficult Checksum is the one that needs to check Join the Technical Community Today http www pantechsolutions net il S Blackfin532 External Flash Programmer Pantech Solutions Pwt Ltd Status Window Hexadecimal File Step3 Load the File D newblackfin boards Projects On Ble Memory Occupied rn PANTECH SOLUTIONS Technology Beyond The Dreams Stepl Cam Port Settings Port Name cow Baudrate fi 15200 r Stop bits fi Data bits fe onnect Disconnect EI SS m 8 ANNE Kilobytes Step4 Program Program Exit Bytes Check Sum Step 4 Programming the flash Click program to program the device il S Blackfin532 External Flash Programmer Pantech Solutions Pwt Ltd x Step3 Load the File Browse D newblackfin board Prajects On Ble Memory Occupied BE PANTECH SOLUTIONS Technology Beyond The Dreams Step Com Port Settings Fort Name cow Baudrate fi 15200 r Stop bits fi Data bits fe canet Disconnect Kilobytes Step4 Program Program Exit Bytes Check Sum Help About uz Help L NENNEN successfully u ccessfully u ccessfully successfully successtully Join the Technical Community Today http www pantechsolutions ne
45. ects character 8 bit no parity assumed v i gt liy Project mage Analysis Any changes made to the LDF may be lost the next time Warning This LDF was generated by the Startup Code IDF wizard a amp E 14 114 gt gt l Console Build lt gt Ready Halted Line 1 Col1 VBScript NUM w Blackfin Manual3 Co f Image Addition gt Analog Devices Visual From the Project menu click the Project Options command to display the Project Options dialog box On the Project page verify that the values shown here Join the Technical Community Today http www pantechsolutions net gt Analog Devices VisualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator Project Image Analysis Image Analysis B File Edit Session View PJC Register Memory Debug Settings Tools Window Help oY x D ki g Be Build File Ctrl F d a at ga S a A A 4 E M ESI Build Project Ee v ets Jih D amp amag 5 X d i dh Rebuild Project el x amp M M dim Clean Project x Project Image Analysis dpj Project Group 1 project a x Name Value ta Project Options Alt F7 eccdefbf532 h D Image Analysis Set Active Project gt TET d charx 0x00000 r x 3 ne im unsigne cnar X zc B cds Aa Project Dependencies ne im2 unsigned char 0x20000 Lom 3
46. ettings Step3 Load the File Status Window Hexadecimal File Port Marne cow Browse m Baudrate fi 15200 l Stop bits f X Product Mame Blackfinb32 External Flash Pregrammer E Version 1 0 Copyright All rights Reserved Company Mame Pantech Solutions Pt Lid Description far more detail www pantechsolutions net http www pantechsolutians net Our E mail id analog pantechsolutions net Help Join the Technical Community Today http www pantechsolutions net ll EE Blackfin532 External Flash Programmer Pantech Solutions PE Ltd Step Cam Port Settings Step3 Load the File Status Wiindow H exadecimal File Port Name com Browse M Baudrate E Blackfin Manual Repaired Bl xj Stop bits n z A E i Hide Locate Back Foriar d Hom Options Introduction and Overview t ilobytes T Step z Erase ytes Q Chapter 7 Q Chapter 8 heck Sum 0 Chapter 3 Chapter 10 Thank you for purchasing the ADSP BF532 Evaluation Board About us Help Pantech solutions evaluation system for Black fin processors Blackfin processors support a A media instruction set computing MISCO architecture This ie j j Data bits 7 Example 1 Uart In this exercise you e Start up the VisualDSP environment e Open and build UART project e Changing the Project Options and Generating Loader file e Loading the Loader file into Flash and Run th
47. he following message will display Join the Technical Community Today http www pantechsolutions net ESI Blackfin532 External Flash Programmer Pantech Solutions Pwt Ltd f x Steps Load the File me Menor Occupied a PANTECH SOLUTIONS Technology Beyond The Dreams Statue windaw Hexadecimal File Stepl Com Port Settings Part Name ow rj Baudrate 200 rm Stop bits ooo H Data bits Bf Eonnect Disconnect Step 2 Erase Kilobytes Step4 Program Program Exit Help Bytes Check Sum Part is nat Connected Please RESET the Kit and try again Ensure the kit is in programming mode and Press the RESET button in the Kit and try again Step 2 Erasing Press the erase button Join the Technical Community Today http www pantechsolutions net 1 4 HE Blackfin532 External Flash Programmer Pantech Solutions Pt Ltd l x Status Window Hexadecimal File Step Com Port Settings Part Mame cow Step3 Load the File TOWEE PANTECH SOLUTIONS Technology Beyond The Dreams connec Kilobytes Bytes Check Sum Help Click ok to continue after erasing the following message Will be displayed in output window Join the Technical Community Today http www pantechsolutions net ESI Blackfin532 External Flash Programmer Pantech Solutions PE Ltd X Step Com Part Settings Step3 Lo
48. hoose from the available sessions listed under Select Session in the Session menu To create a debug session select New Session from the Session menu This will launch the Session Wizard which is covered in previous chapter If you have already run VisualDSP and the Reload last project at start up option is selected on the Project page under Settings and Preferences VisualDSP opens the last project that you worked on To close this project Join the Technical Community Today http www pantechsolutions net choose Close and then Project from the File menu and then click No when prompted to save the project gt Analog Devices VisualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator 2 File Edit Session View Project Register Memory Debug Settings Tools Window Help eS Dy ge cw a ee ot SEO ODD we iBm s Ey Open b Save H Ge ceu zl zj D OB De gt n dii E Be c oo co SBA Close LAM 2 Disassembly x B seve all Disassembly x woe Load Program Ctrl L m oe ce FFA08000 NOP EM Cie dM eis cac FFA08002 NOP Load Script FFA08004 NOP 53 Reload Program Ctrl R FFA08006 NOP E oie eU FFA08008 NOP Muti en ee FFA0800A NOP Workspace gt FFA0800C NOP FFA0800E NOP Recent Files FFA08010 NOP Recent Projects gt FFA08012 NOP Recent Programs d ERATIS Mesa E FFA08016 NOP Recent P
49. ike environment The evaluation board is designed to be used in conjunction with the Visual DSP development environment to test the capabilities of ADSP BF532 Blackfin processors The Visual DSP development environment gives you the ability to perform advanced application code development and debug such as e Create compile assemble and link application programs written in C C and ADSP BF532 assembly e Load run step halt and set breakpoints in application programs e Read and write data and program memory e Read and write core and peripheral registers e Plot memory Access to the ADSP BF532 processor from a personal computer PC is achieved through a UART port or an optional JTAG emulator Join the Technical Community Today http www pantechsolutions net The board features e Analog Devices ADSP BF532 Blackfin processor Performance up to 400 MHz e 27 MHz CLKIN oscillator e Synchronous dynamic random access memory SDRAM MT48LC8M16A2 16 MB 8M x 16 bits e Flash memories 1 MB 512K x 16 e SPI flash memory 2048 Kilobits AT25F2048 e Universal asynchronous receiver transmitter UART ADM3202 RS 232 line driver receiver DB9 female connector e 1 LED e Board reset e Expansion interface e JTAG ICE 14 pin header e On board 3 3V 1 2V regulators Join the Technical Community Today http www pantechsolutions net 2 2 Blackfin Evaluation Board Block Diagram JTAG Download Cable Connector
50. ject Project Files dpi LL d i Not connected VBScript NUM Ready if start j a m BlackFin_Manuals Micros D Analog Devices visual Juntitled Paint Re SEE 2 59pm From the Project menu click the Project Options command to display the Project Options dialog box Configure the Project Options as given in above and create the Loader file These Options are same for all the Example codes Join the Technical Community Today http www pantechsolutions net gt Analog Devices isualDSP Target Not Connected Project flag File Edit Session View Project Register Memory Debug Settings Tools Window Help gt OSURGS SS SEBEL F MA RHS TE AAM Hr 4X by oe SB a A ites Debug z 5 Da amp LL inik AAEL E Lm amp ef 2 Project flag dpj Project Group 1 project ems flag E Source Files a flag c Section start address xFF904404 Section byte count 0x54 Process section L1 code Section start address OxFFA08000 Section byte count xD1E Build completed successfully Ready Not connected sBScript UM start C SI A plackFin_manuals micros Analog Devices Visual Si untitied Paint ED le Ab 10 04PM Loader file will be generated in the folder mentioned in the project options Make the jumper setting J1 and J2 in programming mode Join the Technical Community Today http www pant
51. lick Back FFA00026 NOP or click on a page in the navigation tree to the left FFA00028 NOP EE FFA0002A NOP hend T FFA0002C NOP lial ae cs col FFA0002E NOP FF 00030 NOP pos JR ome Back Next gt Finish Cancel x EJ g amp F a A Z K n Ready Halted VBScript NUM Astart erm W document Microsoft Word Analog Devices Visual http www pantechsolutions net 4 Eus pex zs Join the Technical Community Today 7 Go to select session from session menu and select the session created CSOD EG 2324 5 Creating a Project in Visual Dsp Step 1 Start VisualDSP and Create a Project To start VisualDSP and open a project Click the Windows Start button and select Programs Analog Devices VisualDSP 4 5 and VisualDSP Environment If you are running VisualDSP for the first time you will not be connected to a debug target In Join the Technical Community Today http www pantechsolutions net VisualDSP 4 5 it is possible to edit and build your code without being connection to a debug target through a debug session When you are ready to run and debug your program you can quickly connect to a target and disconnect when you are finished Doing so eliminates the overhead associated with the target connection resulting ina smoother and more responsive experience When you need to connect to a debug session click the Connect to Target toolbar button or c
52. nd Button 3 Receive the Median Filtered Image using the Receive button The Pages follow will give the Pictorial View of the Each Process Running Join the Technical Community Today http www pantechsolutions net Lol xi MEDIAN FILTER DEMO Action Group Brow ze Send Receive Serial Port Connect zu 15 x MEDIAN FILTER DEMO Action Group Browse Send Receive Serial Port Connect J600 Join the Technical Community Today http www pantechsolutions net 10 x MEDIAN FILTER DEMO Action Group Browse Seng Receive Serial Port Connect 2400 m 2400 4800 S600 icixd MEDIAN FILTER DEMO I XI Part is Connected with Baudrate S600 Send Receive Action Serial Port Connect 9600 Join the Technical Community Today http www pantechsolutions net ioii MEDIAN FILTER DEMO A ction Group Browse Send Feceive Serial Port Connect S600 filler demo E Oj x MEDIAN FILTER DEMO 2 5 x A Walt Image is being Sent Send Recelve Serial Port Connect J600 Join the Technical Community Today http www pantechsolutions net filter_demo E ml x MEDIAN FILTER DEMO 215 A walt WM Fille image is receiwed Send Receive Serial Port Connect S600 210 MEDIAN FILT
53. net 1 Introduction PS TYRO BF532 board is mainly designed for Signal and Image Processing Applications The Board evaluating most of the peripherals like EBIU Timers Programmable flags and SPI of the BF532 Processor The board provides connectors for SPORT and PPI Interfaces for connecting to Video and Audio Peripherals It has provided an external SPI connector for programming the on Board SPI flash by using External Microcontrollers 1 1 Technical or Customer Support Post your questions Pantech Forum http www pantechsolutions net forum Website www pantechsolutions net Join the Technical Community Today http www pantechsolutions net 1 2 Packages Blackfinb32 Evolution Board 5V DC Adaptor RS232 Serial Cable 10 pin FRC cable SPI Programmer Optional Printed USER Manual CD Contains o Example Codes o Required Software and Utilities o USER and Processor Manuals 2 Introduction and Overview 2 1 Introduction and Overview Thank you for purchasing the ADSP BF532 Evaluation Board Pantech solutions evaluation system for Blackfin 532 processor Blackfin processors support a media instruction set computing MISC architecture This architecture is the natural merging of RISC media functions and digital signal processing DSP characteristics Blackfin processors deliver signal Join the Technical Community Today http www pantechsolutions net processing performance in a microprocessor l
54. nical Community Today http www pantechsolutions net Now Configure the Board in General Mode Now to run the Image Analysis RESET the Kit and Start Matlab Note Preferable Matlab version is 7 0 i Windows Professional Matlab will displayed the command prompt Join the Technical Community Today http www pantechsolutions net 2 MATLAB Siz File Edit View Web Window Help me dh it 2 ra Liat Current Directory CAMATLABBpStwork vL Gar ie Ey Hg Stade Base Using Toolbox Path Cache Type help toolbox_path_cache for m L J Name Size Bytes C To get started select MATLAB Help from the Help menu Workspace Current Directory EJ f Start Ready Now right click and open the folder s vy Documents POLL eU SEC Coe EP C na Explore Search Open as Notebook in OneNote My Neti Sharing and Security AER S Add to archive E Badd to BF532 Examples rar 2 compress and email compress to BF532 Examples rar and email CD winzip gt 8 Groove Folder Synchronization gt H MOD32 antivirus system g D sSendTo gt Intern jeu a Cut Copy Paste i Create Shortcut Gamta SEAE Delete Rename Properties Microsoft mo Windows Professional Erm 2B 5 25PM wa
55. nnection Type page select Simulator and click next to continue Join the Technical Community Today http www pantechsolutions net D mii gt FFA00000 FFA00002 IU iis Select Processor FFA00004 NOP FFAO00006 NOP E FFA00008 NOP Processor family Blackfin v FFA0000A NOP z FF 0000C NOP Choose a target processor FFA0000E NOP FFA00010 NOP Blackfin Processor 800 MMACS 52K bytes on FFA00012 NOP Blackfin Processor 800 MMACS 84K bytes on FFA00014 NOP Blackfin Processor 1512 MMACS 148K bytes o i elapse l won Blackfin Processor S00MHz 132K bytes on chi FFA0001A NOP t Bl Blackfin Processor 700 MMACS 308K bytes on FFA0001C NOP Blackfin Processor 100K bytes on chip memory FFA0001E NOP Blackfin Processor 132K bytes on chip memory j FFA00020 NOP FFA00022 NOP z E FFA00024 NOP Show all processors Configurator Licenses FFA00026 NOP FFA00028 NOP FFA0002A NOP FFA0002C NOP FFA0002E NOP FFA00030 NOP T 4 gt lt Back Next gt Cancel 4 gt Halted VBScript NUM PEDE 2 29am gt Analog Devices isualDSP Target ADSP BF533 ADSP BF5xx Single Processor Simulator File Edit Session View Project Register Memory Debug Settings Tools Window Help OsSHG S 33 BL ajA g t wRSTOOOD wv BIm es E 4X Pur e we GD De BOB S de MMA tna Ed
56. ommunity Today http www pantechsolutions net The BMODE pins of the reset configuration register Sampled during power on resets and software initiated resets implement the following modes Execute from 16 bit external memory Execution starts from address 0x2000 0000 with 16 bit packing The boot ROM is bypassed in this mode All configuration settings are set for the slowest device possible 3 cycle hold time 15 cycle R W access times 4 cycle setup Boot from 8 bit or 16 bit external flash memory The flash boot routine located in boot ROM memory space is set up using asynchronous Memory Bank O All configuration settings are set for the slowest device possible 3 cycle hold time 15 cycle R W access times 4 cycle setup Boot from SPI serial EEPROM flash 8 16 or 24 bit addressable or Atmel AT45DB041 ATA45DBOS81 or AT45DB161 The SPI uses the PF2 output pin to select a single SPI EEPROM flash device submits a read Join the Technical Community Today http www pantechsolutions net command and successive address bytes 0x00 until a valid 8 16 or 24 bit addressable EEPROM flash device is detected and begins clocking data into the processor at the beginning of L1 instruction memory Boot from SPI serial master The Blackfin processor operates in SPI slave mode and is configured to receive the bytes of the LDR file from an SPI host master agent To hold off the host device from transmitting while
57. pers at Proper Places In Programming Mode we should not connect any jumper to J1 and J2 The Join the Technical Community Today http www pantechsolutions net JUMPERS Should be there in J8 and WP and SSEL Should be Configured for BF532 i e The JUMPER should be there in the BF532 Side Now Actually BF532 Booting in 11 mode i e Booting From SPI Flash for boot modes refer BF532 Hardware reference manual Note Connect a Direct 1 1 Serial Cable to the Kit from PC Step 1 Connection Settings Before the device can be used the settings required to make a connection must be specified Fori Hane Eats hun Poo 3 Dt bes PF s Select the desired COM port from the drop down list or type the desired COM port directly into the box If you Join the Technical Community Today http www pantechsolutions net enter the COM port yourself then you must enter it in one of the following formats Note The Baud rate 115200 is to be selected for faster Loading of Larger Loader files Note Don t Change Stop Bits and Data Bits they are fixed in the code Port name COM1 Baud Rate 9600 Stop bits 1 Data bits 8 Status Windoaw Hexadecimal File Step Com Port Settings Port Name cow 115200 PANTECH SOLUTIONS Technology Beyond The Dreams onnect Disconnec Join the Technical Community Today http www pantechsolutions net Port connected successfully will be displayed in o
58. r 8 bit no parity assumed v 33 gt Image Analysis Expressions Hexadecimal ajx Value Name Disassembly Expert Linker Image Analysis ldf X Input Sections utput Window 0 Builds the project as necessary te Start w Blackfin Manual3 Co gt gt 44 gt Console Bud fT Halted gt Analog Devices Visual untitled Paint TT gt Line 1 Col1 VBScript NUM 399 COMEDIT At the end of the build the Output window displays this message in the Build view D x p a P Section start address Section byte count Process section L1 data a xFF804000 0x458 Process section bsz_Li_data_a Section start address Section byte count xFF804458 0x118 Process section L1 code Section start address OxFFA08000 Section byte count 0x950 Build completed successfully 4 4 gt gt X Console Build aai Join the Technical Community Today http www pantechsolutions net Windows Professional Rename Properties Loader file will be generated in the folder mentioned in the project options Make the jumper setting J1 and J2 in programming mode Open the Blackfin external flash programmer to program the loader file into flash memory As given in the above examples Load the Loader file into the Flash using the Flash Programmer Join the Tech
59. rhead associated with the target connection resulting in a smoother and more responsive experience Join the Technical Community Today http www pantechsolutions net L E dioe My Documen ts 428067972 COE T 1 My Computer RMA_ICE My Network 38136161E Places A UU Iu oon eg New Office Document I es Open Office Document e Aj Set Program Access and Defaults wow ww BA Help eA Mikroelektronika lt a 4dobe Reader 7 0 E Internet Explorer Y NS 2000 Professional oe ff HOPEL HORS Log Off administrator wy NAI E seme I Shut Down As art e ca eo 3d Documenti Microsoft w 2 When you need to connect to a debug session click the Connect to Target toolbar button or choose from the available sessions listed under Select Session in the Session menu To create a debug session select New Session from the Session menu This will launch the Session Wizard as shown below gt Analog Devices isualDSP Target ADSP BF533 ADSP BF5xx Single Processor Simulator _ 81 x File Edit Session View Project Register Memory Debug Settings Tools Window Help 0 s EE eloclaacars 0000 aw anaE Select Session A 2 x Session List zi zi Ir De Da Disconnect from Target FP n 4 er mJ amp 1 c FFA00000 NOP FFA00002 NOP FFA00004 NOP FFA00006 NOP FFA00008 NOP FFA0000A NOP FFA0000C NOP FFAO0000E
60. rocessor 2400 MFLOP FFA08010 NOP lt ADSP 21368 SIMD SHARC Processor 2400 MFLOP FFA08012 NOP ADSP 21369 SIMD SHARC Processor 2400 MFLOP FFA08014 NOP 8 ADSP 21371 SIMD SHARC Processor 1998 MFLOP Bl FFA08016 NOP amp ADSP 21375 SIMD SHARC Processor 1596 MFLOP dem 2 ll NOD Sl eR ADSP BF531 Blackfin Processor 800 MMACS _52K b FEABHIC i NOP x AD SP BFS32 Blackfin Pre r 800 MMACS 84K b FFA0801E NOP ra ANMCO DCR 29 Disalin Dur f1FE17 k4kAA CC 140 FF A 08020 HOP Silicon Revision Automatic View data sheet EID i n FFA08026 NOP Project output type Executable file FFA08028 NOP FFA0802A NOP FFA0802C NOP FFA0802E NOP FFA08030 NOP Project of x teme ES 3 3 amp E laimi Ready Halted VBScript Nom start eru Wh document Microsoft Word Ianateo Devices Visual i Ba K c dA A o g SP em D D D DI Project Wizard E E m sf z EI xd isembly EE 43e st 2 34am Verify that the Processor type is ADSP BF532 the Silicon Revision is Automatic and the Project output file is Executable file Click Next to display the Add Startup Code LDF page Join the Technical Community Today http www pantechsolutions net Soe Se 22 j A o ga S s3m D D DD were E IT f EF B X Pa Gh TE I Oe D BA S Se MPM SP Poe ABs Read the displayed text and sc
61. roject Groups d FFA08018 NOP mi Recent Scripts gt FFAD0801A NOP FFA0801C NOP Recent Workspaces FFA0801E NOP amp Print Ctrl P FFA08020 NOP up Mt FFA08022 NOP Print Preview FFA08024 NOP Page Setup FFA08026 NOP FFA08028 NOP Ext FFA0802A NOP FFA0802C NOP FFA0802E NOP Ls FFA08030 NOP T Project 4 gt x Ej z gp S E 5 73 E Creates a new project Halted WwBsript mom d start e amp ssl document Microsoft Word anaig Devices Visual Bre QUEE 2 s34m From the File menu choose New and then Project to open the Project Wizard shown below Join the Technical Community Today http www pantechsolutions net gt Analog Devices YisualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator 2 File Edit Session View Project Register Memory Debug Settings Tools Window Help Da E CB ms c c X Ba c dA V o g S sm D D D D ww iE ID amp ef 7 xX 2 x ETE zix Project Information Ae Choose the name location and type of project that you would like to create FFA08000 ROP J FFAO8002 NOP FFAO8004 NOP Cy Project General FFA08006 NOP FFA08008 NOP Name FFA0800A NOP FFAO800C NOP FFA0800E NOP FFA08010 NOP Directory FFA08012 NOP co ocuments and Settings s amp dministrator D esktop E FFA08014 NOP FFA08016 NOP Project types FFA08018 NOP
62. roll down to the bottom of the page Select the Don t Add an LDF and startup code option When this project is created startup code that initializes and configures the processor will be added to the project as will a Linker Description File that defines the target memory map and the placement of program sections within processor memory The options available to configure the startup code and LDF are beyond the scope of this tutorial Make sure the Don t Add an LDF and startup code option is selected and click Join the Technical Community Today http www pantechsolutions net Project window of the IDDE gt Analog Devices isualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator 2 File Edit Session View Project Register Memory Debug Settings amp Hag aA c dA A ei MBSA O OOD wre D E E CP S s 8 4 X V p s EE x nd P p mnnm Project Window BM Project Group 0 project UA Project EU General L Project lx Ix Output Window Ih consote MEG Ready HOM amp 4e EX E ex o Poe El G3 amp l Wizard Completed i ED Output Type D Add Startup Code LDF Window Help 55 Finish Wizard Completed The Project Wizard now has enough information to create your project Summary of choices File name aaaa dpi Directory C Documents and Settings 4 dministrator Desktop Project type Standard application Processor type 4DSP BF532 Output
63. rupt A pFIO_INEN 0x08 pFIO_MASKA D 0x08 pFIO_EDGE 0x08 pFIO_BOTH 0x08 w yvoid main C Documents start eu 4l document Microsoft Word EJanatog Devices Visual LI Ro E i EARS HS Timer ISR eo Init Interrupts i while 1 4 aaaa and SettingssAdministrator Desktop Debug at ffa08870 gt Analog Devices VisualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator 2 Project aaaa aaaa gt Analog Devices VisualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator 2 Project aaaa aaaa 4 7 TimerO ID4 4 4 TimerO ISR 4 Flag ISR gt b AR ES TT RS e 2 Ud Dh Da 8 xj lel xi Disassembly EST ee gt FFA08000 FFA08002 FFA08004 FFA08006 FFA08008 FFA0800A FFA0800C FFA0800E FFA08010 FFA08012 FFA08014 FFA08016 FFA08018 FFA0801A FFA0801C FFA0801E FFA08020 FFA08022 FFA08024 FFA08026 FFA08028 FFA0802A FFA0802C FFA0802E FFA08030 NOE IL NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP I NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP NOP v SEED 2 38am dnit Plaqs 1 1 1 UL 1 1 1 1 1 1 1 1 1 1 wN Em c E y Te De lal xi 18 xi Disassembly EST FFA0886C FFA08874 FFA08878 FFA0887 FFA0887C
64. ser resolution This will be usually two or four times lower At the receiver station the panchromatic image is merged with the multispectral data to convey more information Applications 1 Image Classification 2 Aerial and Satellite imaging 3 Medical imaging Join the Technical Community Today http www pantechsolutions net 4 Robot vision 5 Concealed weapon detection Implementation of image processing projects in Blackfin needs SDRAM to store the image So SDRAM should be initialized before Booting So for all Image Processing Projects we need to add the SDRAM initialization code as the Initialization For every image processing Project Go for Project Options gt Load gt Options Join the Technical Community Today http www pantechsolutions net gt Analog Devices VisualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator 2 Project Filtering filtering s 81 x File Edit Session View Project Register Memory Debug Settings Tools Window Help 8 x DeHg essu xeeeocuauascgasunnonDnm aee igBmsec I 4x HOB mde m m mu Coa Gu Project Filtering dpj mj x Project Options for Filtering 2 xl Oe x Project Group 3 projects Bg c i Image Analysis FFA07FFE ERO Source Files FFA08000 o E Image Analysi FFA08002 NOP H E Linker Files FFA08004 NOP L FFA08006 NOP FFA08008 NOP FFA0800A NOP FFA0800C NOP Boot Mode
65. t EI Blackfin532 External Flash Programmer Pantech Solutions Pt Ltd Step3 Load the File Status Wiindow H exadecimal File Step Cam Port Settings Part Mame cow j 115200 TOME PANTECH SOLUTIONS Technology Beyond The Dreams a ia E a aa G a a G a G a E a G a G a E G a G S ee ox 2 C3 C3 c3 cnm c3 aAa Aa Aa a T co C3 E 2 c3 c3 03 7 D oO GE TI G G D onnect 9 Disconnec successfully Send 15 successtully Send Last Bytes ata is sent successfully ata Value is ram iz completed successfully EE L ee L ee peu aay After Successfully programming the Loader file the Board should be configured to general Mode for running the loader file In general mode a jumper must be connected to J1 as given in 5 chapter Previously whatever are there in the Programming Mode keep all Additionally just we need to put the JUMPER in J1 or BMODE1 in C side Now the Boot Mode is changed to 01 where it will Boot from 8 bit 16 bit Flash Join the Technical Community Today http www pantechsolutions net Now open the HYPERTERMINAL Application as shown below les Open Office Document T Set Program Access and Defaults 9 wb 8B 0 ill comi 9600 gt GY Internet Connec tion Wizard B b THp DEC Lec File gt A NetMeeting a Network and Dial up Connections amp Phone Dialer Port name COMI Baud rate 9600 Parity None Data Bits 8 Stop Bits
66. t zi xd Serial Port CONNECT 3600 Input BROWSE SEND Ct put Select Method Min RECEIVE The same procedure is followed for max and average method Join the Technical Community Today http www pantechsolutions net gui addi j 51 x Serial Port s CONNECT s600 Input SEND Output Select Method Max RECEIVE gqui_ addi ml x Serial Port s CONNECT 9600 Input BROWSE SENDO Output Select Method Awe a HECENR E Join the Technical Community Today http www pantechsolutions net 2 Median Filtering of the image In image processing it is usually necessary to perform high degree of noise reduction in an image before performing higher level processing steps such as edge detection The median filter is a non linear digital filtering technique often used to remove noise from images or other signals The idea is to examine a sample of the input and decide if it is representative of the signal This is performed using a window consisting of an odd number of samples The values in the window are sorted into numerical order the median value the Sample in the center of the window is selected as the output The oldest sample is discarded a new sample acquired and the calculation repeats Median filtering is a common step in image processing It is particularly useful to reduce speckle noise and salt
67. t gt Finish Cancel lx Ix Output Window KI ETE pis Console 1 H Ready Halted VBScript ium start eru isl document Microsoft Word anaig Devices Visual 6 Select ADSP BF532 Single processor simulator Click finish to complete the wizard 18 xl gt Analog Devices VisualDSP Target ADSP BF533 ADSP BF5xx Single Processor Simulator File Edit Session View Project Register Memory Debug Settings Tools Window Help ASE AL D Eos E oa Pw BOSE m a E Project Group 0 project Wizard Completed mam Disassembly FF 00002 NOP Finish FFA00004 NOP i Welcome I Select Processor be A Select Connection Type Es Zr Platform FFA00006 NOP FFA00008 NOP FFA0000A NOP FFA0000C NOP Wizard Completed The Session Wizard now has enough information to create your new FFA0000E NOP session FFA00010 NOP TOR FF 00012 NOP Summary of choices FFA00014 NOP Jaune alode FFA00016 NOP onnection type Simulator FFA00018 NOP Platform ADSP BF5xx Single Processor Simulator FFAQOO1A NOP H Target name ADSP BF5xx Blackfin Family Simulators FFAD001C NOP Session name ADSP BF532 4DSP BF5xx Single Processor Simulal FFA0001E NOP gt FF 00020 NOP FF 00022 NOP Please review your choices and click Finish to create the new FFA00024 NOP session If you would like to change any of your choices c
68. the boot ROM is busy the Blackfin processor asserts a GPIO pin called host wait HWAIT to signal the host device not to send any more bytes until the flag is deasserted The GPIO pin is chosen by the user and this information is transferred to the Blackfin processor via bits 10 5 of the FLAG header in the LDR image For each of the boot modes a 10 byte header is first read from an external memory device The header specifies the number of bytes to be transferred and the memory destination address Multiple memory blocks may be loaded by any Join the Technical Community Today http www pantechsolutions net boot sequence Once all blocks are loaded program execution commences from the start of L1 instruction SRAM In addition Bit 4 of the reset configuration register can be set by application code to bypass the normal boot sequence during a software reset For this case the processor jumps directly to the beginning of L1 instruction memory Every Board comes along with SPI Boot loader ensure there is jumper on WP and Jumper in J8 We have two modes e Programming Mode e General or Normal Mode 6 2 Programming Mode In Programming Mode J1 J2 should be connected on NO CONNECTION side NC as shown below This mode will boot the processor from SPI Join the Technical Community Today http www pantechsolutions net SSEL should be configured for BF532 as shown below SSEL MCU CX BF532 6 3 Gener
69. the most common functions Each section is described in detail in the following sections At the very bottom the window is an area where output messages will be displayed and at the very bottom right is where the progress bar is displayed Four Step Programming Join the Technical Community Today http www pantechsolutions net For each step there is a corresponding section in the main window as described in the User Interface Tour Step 1 Connection Settings Before the device can be used the settings required to make a connection must be specified Con Pon Batinos i Panime E te o we Cabs B x Select the desired COM port from the drop down list or type the desired COM port directly into the box If you enter the COM port yourself then you must enter it in one of the following formats Port name COM1 Baud Rate 9600 Stop bits 1 Data bits 8 Join the Technical Community Today http www pantechsolutions net ESI Blackfin532 External Flash Programmer Pantech Solutions Pt Ltd Statue Windoaw Hexadecimal File Step3 Load the File Browse O Memory Occupied D HS PANTECH SOLUTIONS Technology Beyond The Dreams Step Com Port Settings Port Hame ow Baudrate 1200 v Stop bits w Data bits B rl Step z Erase Step4 Program Port connected successfully will be displayed in output window If the port is not connected T
70. type Executable file To review or change your choices click Back or click on a page in the navigation tree Otherwise click Finish to create the new project lt Back Cancel LL d E m ef Fy ia es isembly FFA08000 FFA08002 FFA08004 FFA08008 FFA08008 FFAOSOOA FFA 0800C FFA0800E FFA08010 FFA08012 FFA08014 FFA080168 FFA08018 FFA0801A FFA 0801C FFA0S801E FFA08020 FFA08022 FFA08024 FFA08028 FFA08028 FFA08024A FFA0802C FFA0802E FFA08030 Finish The new project is created and is shown HOP NOP NOP NOP NOP NOP NOP NOP NOP HOP NOP NOP NOP NOP NOP NOP NOP NOP NOP HOP HOP NOP NOP NOP in the 8 x1 I Hated VBScript NUM Cel DE 2 34am Astarte eru il document Microsoft Word Danaos Devices Visual Click finish to complete the wizard Join the Technical Community Today http www pantechsolutions net gt Analog Devices VisualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator 2 Project aaaa File Edit Session View Project Register Memory Debug Settings Tools Window Help Dal Sls i s Belna Aog gu nnno wA iBIm Ss DEUX P is Disassembly EST A c FFA08000 FFA08002 FFA08004 FFA08006 FFA08008 FFA0800 FFA0800C FFA0800E FFA08010 FFA08012 FFA08014 FFA08016 FFA08018 FFA0801A FFA0801C FFA0801E FFA08020 FF
71. unity Today http www pantechsolutions net Pees FILTER DEMO zii Wi ai While Image is recerving Browse Send Receive Serial Port Connect J00 Al zii FILTER DEMO Action Buttons Browse Send Receive Serial Port Connect a600 Join the Technical Community Today http www pantechsolutions net 7 4 Board Layout d opa DOG BF332 PANTECH SOLUTIONS SPIE ASH BLACKFIN EVALUAT ION BOARD Join the Technical Community Today http www pantechsolutions net Pantech solutions creates information packed technical documents like this one every month And our website is a rich and trusted resource used by a vibrant online community of more than 1 00 000 members from organization of all shapes and sizes Join the Technical Community Today http www pantechsolutions net What do we sell Our products range from Various Microcontroller development boards DSP Boards FPGA CPLD boards Communication Kits Power electronics Basic electronics Robotics Sensors Electronic components and much more Our goal is to make finding the parts and information you need easier and affordable so you can create awesome projects and training from Basic to Cutting edge technology Join the Technical Community Today http www pantechsolutions net
72. utput window If it the port is not connected The following message will display Status Window Hexadecimal File Stepl Com Port Settings Part Name cow 115200 Technology Beyond The Dreams annect Dlsconnec v PANTECH SOLUTIONS Ensure the kit is in proper mode and Press the RESET button in the Kit and try again Step 2 Erasing Press the erase button Join the Technical Community Today http www pantechsolutions net Step Cam Port Settings Status Window H exadecimal File Part Mame cow Baudrate fi 15200 ka TOME PANTECH SOLUTIONS Technology Beyond The Dreams connec Click ok to continue After erasing the following message will be displayed in output window Note Erase will take some time based on the Flash Content Worst Case Full Flash Erase time is around 120sec Typical Timing is 30sec Join the Technical Community Today http www pantechsolutions net ESI Blackfin532 External Flash Programmer Pantech Solutions PE Ltd Step Com Port Settings Port Mame cow audrate 115200 Step3 Load the File Status Window Hexadecimal File TOWSE PANTECH SOLUTIONS Technology Beyond The Dreams onnect Biseonnec Step 3 Selecting the Hex File Select the file by using browse button The progress bar will show you the memory occupied and the file contents file size and ch
73. v Revision Automatic Header Files ER Genera ation Rec Eh Language Settings Type Loader file Ry MISRA C ER Preprocessor Name ER Processor 1 Loader file Object fil ER Processor 2 Tool Chain ect file ER Profile guided Optimization Eh Warning Compiler C C Compiler for Blackfin Ry Assemble fl Link Assembler Blackfin Family Assembler E General WT Fy LDF Preprocessing Linker Blackfin Family Linker s Elimination d Processor s Load Splitter ER Options Compression E d Settings for configuration Debug v captures E Kernel a x40 ER Splitter L Project Executable file Loader Blackfin Family Loader nected gt Ready Halted Line 1 Col1 VBScript ISP1760 H fam 4 Window 3 AdobeR amp OrCAD Cap ff 2 Microsof P A This dialog box enables you to specify project build information 9 Take a moment to view the various pages in the Project Options dialog box by selecting them from the tree on the left Project General Compile Assemble Join the Technical Community Today http www pantechsolutions net Link Load Pre Build and Post Build On each page you specify the tool options used to build the project Click the LOAD tab to display the General page shown in Figure Analog Devices VisualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simul
74. wse D newblackfin board Prajects On Ble Memory Occupied i PANTECH SOLUTIONS Technology Beyond The Dreams Step Com Port Settings Part Mame cow Baudrate fi 15200 ka Stop bits fi Data bits fe Eonnect Disconnect Kilobytes Step4 Program Program Exit Bytes Check Sum Help About uz Help 00 successfully Send successtully Send successfully Send successtully Send successtully Send EI Blackfin532 External Flash Programmer Pantech Solutions Pt Ltd Status Window Hexadecimal File Step3 Load the File Browse D newblacktin board Prajects On Ble Memory Occupied Nn PANTECH SOLUTIONS Technology Beyond The Dreams Step Cam Port Settings Part Mame cow Baudrate fi 15200 r Stop bits fi Data bits fe Eonnect Disconnect Step z Erase Kilobytes Step4 Programi Program Bytes Check Sumi Exit Help I About us Help Output window successtully Send 15 successtully Send Last Bytes 16 Data it sent successtully Data Value is Program is completed successfully a Join the Technical Community Today http www pantechsolutions net After programming kit should be connected in general mode and reset the kit again About Us This box provide the information about product description Version Copy right and company name Step Com Port S
75. y IE Profile quided Optim Wait state Baud rate Hold time rammable fag FA08012 NOP m iiri r hd z Z F 08014 NOP i i E Rz Use default start address Start address 0x0 E E 2 1 GE T m BR General Verbose FA0801A NOP fy LDF Preprocessing By Elimination i fs Processor E E Load i fy Options Ey Compression Initialization file Use default decompression INIT file Output file C Documents and Settings A amp dministrator D esktop D ebug aaaa 1 Additional options FAOSO2E NOP E EISE 2 41am choose boot mode as flash PROM Boot Format as Intel ASCII and Output width as 16 bit Choose a folder for an output file After changing the options again Rebuild All Analog Devices isualDSP Target ADSP BF532 ADSP BF5xx Single Processor Simulator 2 Project aaaal 2393 dL 4x 3 File Edit Session View Project Register Memory Debug Settings Tools Window Help algi x i D c E CM a l v b Gm x c d d oo mesa OOOD iw Nx EB IT E cR Zl z st Po ih ce Lia ges 4 tt af 2225 x Debug I Trey Uia 4 D S S 5 4 SPP tO r Sw amp O a2 Unmeask the PFS in Interrupt A i Ih oe Group 1 project SERIO INEN b azea 5 aaaa p x SONAS TAO FFE pFIO EDGE 0x08 Cera eres mmm a Source Files DFIO BOTH Ox08 e FFA08000 4444 C LJ Linker Files LL Header Files

Download Pdf Manuals

image

Related Search

Related Contents

CAEN V1290 A  USER`S MANUAL  Manual - Kymco    Bedienungsanleitung Instruction manual MBX 300 MBX 300  Miditron (M)    

Copyright © All rights reserved.
Failed to retrieve file