Home
Software Development Kit - Freescale Semiconductor
Contents
1. Typical parameters which may be provided in Motorola data sheets and or specifications can and do vary in different applications and actual performance may vary over time All operating parameters including Typicals must be validated for each customer application by customer s technical experts Motorola does not convey any license under its patent rights nor the rights of others Motorola products are not designed intended or authorized for use as components in systems intended for surgical implant into the body or other applications intended to support or sustain life or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur Should Buyer purchase or use Motorola products for any such unintended or unauthorized application Buyer shall indemnify and hold Motorola and its officers employees subsidiaries affiliates and distributors harmless against all claims costs damages and expenses and reasonable attorney fees arising out of directly or indirectly any claim of personal injury or death associated with such unintended or unauthorized use even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part Motorola and the Stylized M Logo are registered trademarks of Motorola Inc Motorola Inc is an Equal Opportunity Affirmative Action Employer MOTOROLA and the Stylized M Logo are registered in the US Patent am
2. e Restricted resources use The application cannot occupy Reset and COP interrupt vectors and cannot place code into Boot Flash memory area There is no way to place any initialized variable from the application into internal data RAM while loading This memory area is used by Bootloader All data from the S Record file that address to the restricted area will be ignored All applications built with the SDK can be loaded via the Serial Bootloader The SDK provides a fixed address for application entry point redirection for the application COP vector and has a configuration variable BSP_BOOTLOADER_DELAY for the appconfig h file that determines the application s start delay time out Possible values of BSP_BOOTLOADER_ DELAY 0 Disable the Bootloader start the application immediately After loading the application with this setting there are only two ways to reenter Bootloader e Reload the Bootloader from Metrowerks CodeWarrior into Boot Flash e Reprogram the value of the start delay variable located at address 0x0083 in the Program Flash to zero value 0x0000 in the loaded application 0 254 Set waiting time for the start of the S Record file for 0 255 seconds before the start of a previously loaded application 255 Set waiting time to infinity After reset the Bootloader waits for the S Record file without counting down any time out If BSP_BOOTLOADER_DELAY is not set in the appconfig h file the default value for time out i
3. 1 1 and push the RESET button If the terminal program is set up properly and the EVM and the Host PC are properly connected the terminal program will display a Bootloader start up message c 2000 2001 Motorola Inc S Record loader Version 1 3 To load the S Record file select the Transfer Send text file from the HyperTerminal menu and select a file When the S Record file is loaded and the application is started the terminal window displays a message similar to this 3 8 Targeting Motorola 56F800 Demonstration Board MOTOROLA For More Information On This Product Go to www freescale com HIVED BY FREESCALE SEMICONDUCTOR INC 2005 co L Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 c 2000 2001 Motorola Inc S Record loader Version 1 3 Applications Loaded 0x044d Program and 0x000a Data words Application started The download rate is about 7660 bytes of S Record file per second loaded from the terminal or about 1740 words of Program or Data memory stored into Flash per second If an error is detected while loading the S Record file the Bootloader displays the error message and resets the processor For example if an S record file contains a character that is not permitted for S Records the following message is displayed c 2000 2001 Motorola Inc S Record loader Version 1 3 Error 0002 Resetting the processor After this message the Bootloader
4. FREESCALE SEMICONDUCTOR INC 2005 Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 3 1 8 Pe ce oy bees bee eee cde se eau eos ok ewer ease 3 7 3 1 9 Tarot Con WANA TTT 3 7 3 19 EI A E HE ae eT ee ney ee ee H ere ere 3 7 LLA Demonstration Board Jumper Settings 00 unanenn 3 8 3 1 9 2 I E E EE E E N E E 3 8 cm 2 Download into Boot Flash sss cs cei 0 ad K R K RR K RRR RA RR 0 3 8 319 22 Host Terminal Programi Seran 6 0 cee 0 T R 0 ises RA eaii 3 8 3193 Ee E RE RN Cae sean KAL NT NN A a NER a E 3 8 3 1 9 4 Requirements for a Loaded Program 95044i440008604 3 10 ii Targeting Motorola 56F800 Demonstration Board MOTOROLA For More Information On This Product Go to www freescale com ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 List of Tables Table 3 1 MOTOROLA Error Codes for the Serial Bootloader Application List of Tables For More Information On This Product Go to www freescale com ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Targeting Motorola 56F800 Demonstration Board For More Information On This Product Go to www freescale com MOTOROLA ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 List of Figures Figure 2 1 56F
5. describes the SDK s on chip drivers off chip drivers and libraries that are available for the 56F801 It also describes how to get started with CodeWarrior and the SDK For more specific 56F801 information refer to the DSP56F80x User s Manual MOTOROLA Introduction 1 1 For More Information On This Product Go to www freescale com ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Introduction 1 2 Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Targeting Motorola 56F800 Demonstration Board For More Information On This Product Go to www freescale com MOTOROLA ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Chapter 2 Directory Structure 2 1 56F800 Demonstration Board Directory Structure Figure 2 1 illustrates the directory structure for the 56F800 Demonstration Board EH src iga dsp56F800_DemoBoard pe LH nos 3 applications Figure 2 1 56F800 Demonstration Board Directories In the 56F800 Demonstration Board directory structure only demo projects are located in the applications directory All other files are located in src dsp56801evm Please refer to the Targeting Motorola DSP56F80x Platform manual for a description of these files MOTOROLA Directory Structure For More Information On This Product Go to www freescale com ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Directo
6. m ALL CAPITAL defines define INCLUDE_STACK_CHECK G LETTERS defined constants Brackets Function keys by pressing function key F7 O aa Quotation Returned messages the message Test Passed is displayed N marks f unsuccessful for any reason it will return NULL viii Targeting Motorola 56F800 Demonstration Board MOTOROLA For More Information On This Product Go to www freescale com ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Definitions Acronyms and Abbreviations The following list defines the acronyms and abbreviations used in this document As this template develops this list will be generated from the document As we develop more group resources these acronyms will be easily defined from a common acronym dictionary Please note that while the acronyms are in solid caps terms in the definition should be initial capped ONLY IF they are trademarked names or proper nouns ADC Analog to Digital Converter COP Computer Operating Properly DSP Digital Signal Processor or Digital Signal Processing FFT Fast Fourier Transform GPIO General Purpose Input Output ISR Interrupt Service Request POT Potentiometer PWM Pulse Width Modulator SDK Software Development Kit References The following sources were used to produce this book Bee NaS Targeting Motorola DSP56F 80x Platform Manual SDK126 D 56F 8
7. resets the processor and waits for the S Record file again Other loading errors are described in Table 3 1 Table 3 1 Error Codes for the Serial Bootloader Application eer Error Title Possible Reasons What to Do Code 1 Data Receive Error Any SCI error except Noise e Check connections with Host PC and Error Overrun Frame Error settings for host terminal program Parity Error 2 Invalid Character e Received character is not S or Verify that S Record file does not contain any hexadecimal digit any invalid characters e Check connections and send mode in the terminal program 3 Invalid S Record Invalid record type permitted e Verify S Record file Format type is 0 3 7 e S Record length is less than address plus checksum length 4 Wrong S Record e Calculated Checksum of the Check S Record file Checksum received S Record did not e Check connections and send mode in match the received Checksum terminal program in the S Record 5 Buffer Overrun gt Internal data buffer was full gt Terminal program did not stop after receiving Xoff character Confirm that the terminal program supports Xon Xoff flow control protocol 6 Flash e The resulting word in Flash does The Bootloader tries to program Flash only Programming Error not equal the word that was once there is a problem with internal DSP trying to be programmed into Flash Flash 7 Internal Error Bootloader data corrupted Try to reload Boo
8. 00 Demonstration Board User x Manual TBD DSP56800 Family Manual DSP56800FM AD DSP56F 80x User s Manual DSP56F801 7UM AD Embedded SDK Programmer s Guide SDK 101 D MOTOROLA Preface ix For More Information On This Product Go to www freescale com ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Targeting Motorola 56F800 Demonstration Board For More Information On This Product Go to www freescale com MOTOROLA ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Chapter 1 Introduction 1 1 Overview The 56F800 Demonstration Board is a low cost board that allows a user to execute preprogrammed demonstrations as well as to develop his own applications using free CodeWarrior tools The 56F800 Demonstration Board consists of a 60 MIP 56F801 hybrid controller a microphone attached to the ADC a potentiometer POT attached to the ADC a button attached to an external interrupt IRQ and 10 LEDs Pads have also been included on the board so a user can access all of the 56F801 s peripherals The Demonstration Board does not have an external crystal so the 56F801 must use its internal oscillator For more information about developing software for this demonstration board please refer to the sections about the 56F801 in the Targeting Motorola DSP56F80x Platform manual This document
9. 1 Demonstration Board Jumper Settings To load the Bootloader into the 56F800 Demonstration Board the following jumper settings are required e Set jumper JP1 Host Enable To start a previously loaded Bootloader on the 56F801 board the following jumper settings are needed e Do not set jumper JP1 Host Enable 3 1 9 2 Build To build the Serial Bootloader open the bootloader mcp project file in the CodeWarrior IDE and execute the Project Make command This will build and link the Serial Bootloader application 3 1 9 2 1 Download into Boot Flash To download build the Bootloader from CodeWarrior and load it into the board by choosing the Project Debug command in the CodeWarrior IDE Make sure that jumpers are set for loading as described in Section 3 1 9 1 1 3 1 9 2 2 Host Terminal Program Set up A host terminal program is used to communicate with Bootloader The following description assumes that Microsoft Windows HyperTerminal program is used To configure Microsoft HyperTerminal to communicate with Bootloader e Start HyperTerminal e Create a new connection e Select the COM port previously connected to EVM e Set Baud rate 115200 bps 8N1 8 data bits no parity 1 stop bit character format Flow control protocol Xon Xoff e HyperTerminal can now display Bootloader messages 3 1 9 3 Execute To execute the Serial Bootloader application after loading it into Flash set jumpers as described in Section 3 1 9
10. 5 ARCHIVED BY FREESCALE SEMICONDUCTOR INC 200 Freescale Semiconductor Inc Q MOTOROLA ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Embedded SDK Software Development Kit Targeting Motorola 56F800 Demonstration Board SDK157 D Rev 1 03 24 2003 ale MOTOROLA nr Motorola Inc 2003 All rights reserved Q intelligence everywhere digitaldna For More Information On This Product Go to www freescale com ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 For More Information On This Product Go to www freescale com ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Contents About This Book PONG e Gauche pute 6 eek eae E E eee Cee ia ree ea CAE as ct ah oe Cd eed ohn eee oan aed PO PN cs ot coheed agate ORAL Area EAE RS REO ESS Oe os keene 6 BARE e a ease 9 AR NEE 4 Definitions Acronyms and Abbreviations 00sec eee eee LA aS oc hehe hee oe ae Ok ae ie hes EEE Chapter 1 Introduction 1 1 OVETVIOW A E E EERE EOE ERO R ROR EES Chapter 2 Directory Structure 21 56F800 Demonstration Board Directory Structure 0 0 0 00000 Chapter 3 56F800 Demonstration Board Applications 3l ZAI LII i oa Pe ks cm bem Ball ae Dike 3 1 3 1 E 3 1 4 3 1 4 1 3 1 4 2 cm ee 31 3 1 2 1 B18 3 1
11. 6 1 3 1 6 2 Salat Pl ce i K a de ee ee ae re eae a arene Sere ee eee rea eer KEAR eee Quad Timer Flashing LEDs Demonstration 000000 Set up for Quad Timer Flashing LEDs Demonstration Procedure for Quad Timer Flashing LEDs Demonstration Timer Driver Flashing LEDs Demonstration o n saaana eer eve ees Set up for Timer Driver Flashing LEDs Demonstration Procedure for Timer Driver Flashing LEDs Demonstration Frequency Spectrum with Amplitude Demonstration Set up for Frequency Spectrum with Amplitude Demonstration Procedure for Frequency with Amplitude Spectrum Demonstration Frequency Spectrum without Amplitude Demonstration Set up for Frequency Spectrum without Amplitude Demonstration Procedure for Frequency without Amplitude Spectrum Demonstration Freguency Detector Demonstation serer dawns resis RCR ou n LE we Set up for Frequency Detector Demonstration 000 Procedure for Frequency without Amplitude Spectrum Demonstration Potentiometer Controlled LEDs Demonstration nnsa us saanen Set up for POT Controlled LEDs Demonstration Procedure for Frequency without Amplitude Spectrum Demonstration Senal B otloadef 6 S 0 X Ged E SER 0 wadeneks one edd eonewe nd ea kede MOTOROLA Table of Contents For More Information On This Product Go to www freescale com ARCHIVED BY
12. 800 Demonstration Board Directories 00 0002 e eee eee Figure 3 1 LEDs in the Timer Driver Demonstration ersi s K c 0 5 9 0 sews R R 0 0 Figure 3 2 LEDs in the Frequency Spectrum with Amplitude Demonstration Figure 3 3 LEDs in the Frequency Spectrum without Amplitude Demonstration Figure 3 4 LEDs during the Frequency Detector Demonstration Figure 3 5 LEDs in the POT Controlled LEDs Demonstration MOTOROLA List of Figures For More Information On This Product Go to www freescale com ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 vi Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Targeting Motorola 56F800 Demonstration Board For More Information On This Product Go to www freescale com MOTOROLA ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 About This Book This manual describes the applications for the 56F800 Demonstration Board Audience This document targets software developers using the 56F800 Demonstration Board Organization e Chapter 1 Introduction provides a brief overview of this document e Chapter 2 Directory Structure provides a description of the required core directories e Chapter 3 56F800 Demonstration Board Applications describes the available demonstrations for the 56F800 Demonstration Board Suggested Reading We recommend that yo
13. Program and Data memory The Serial Bootloader is located in the dedicated Program memory region called Boot Flash The Serial Bootloader supports the simplest serial protocol so a standard serial terminal program can be used on the host PC The Serial Bootloader application reads the S Record file of a user application for example generated by CodeWarrior via serial interface parses this S Record file and stores needed data in Program and Data Flash memory When the processing of the S Record file is finished the Bootloader launches the loaded application If any error occurs while loading the S Record file the Bootloader outputs an error message with an error number via the serial line and resets the processor 3 1 8 Files The Serial Bootloader application includes the following files e _ nos applications serial_bootloader bootloader mcp project file 3 6 Targeting Motorola 56F800 Demonstration Board MOTOROLA For More Information On This Product Go to www freescale com 005 ka d amp r V L gt X R IN T U MICONDUCTC YW S E CALE S E S FRE PVE BY F L L CHIVE AR Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 e _ nos applications serial_bootloader bootloader c main program e _ nos applications serial_bootloader bootloader h header file with common parameters e _ nos applications serial_bootloader com c comm
14. Spectrum without Amplitude Demonstration This demonstration exercises the ADC PWM and GPIO in the 56801 processor It samples the ADC at a rate of 8000 samples second The demonstration then performs an FFT on the sampled data to determine the frequency content of the analog signal Finally it uses the 10 LEDs which are connected to the PWM and GPIO to display the frequency content MOTOROLA 56F800 Demonstration Board Applications 3 3 For More Information On This Product Go to www freescale com 56F800 Demonstration pobre scale Semiconductor Inc ARCHIVED BY SALE SEMICONDUCTOR INC 2005 The first LED in the top row refers to the DC component of the audio signal The second through fifth LEDs in the top row refer to respectively the following frequency components 500Hz 1 0kHz 1 5kHz 2 0kHz The first through fourth LEDs in the bottom row refer to respectively the following frequency components 2 5kHz 3 0kHz 3 5kHz and 4 0kHz Figure 3 3 shows LEDs during the Frequency Spectrum without Amplitude demonstration Not Used 4000Hz 3500Hz 3000Hz 2500Hz 2000Hz S s lt SH 1000us 500Hz OHz 2005 Figure 3 3 LEDs in the Frequency Spectrum without Amplitude Demonstration N O 3 1 4 1 Set up for Frequency Spectrum without Amplitude Demonstration Demonstration Board Jumper Settings Use default settings as shown in the 56F800 Demonstration Board User s Manual 3 1 4 2 Procedure for Frequency withou
15. audio signal The second third fourth and fifth columns of LEDs refer to respectively the following frequency components 1kHz 2kHz 3kHz and 4kHz Applications For an illustration of the LEDs during this demonstration see Figure 3 2 High Level x M B E i l l l Level 4000Hz 3000Hz 2000Hz 1000Hz OHz 2005 Figure 3 2 LEDs in the Frequency Spectrum with Amplitude Demonstration iam INC 2 NC 2 3 1 3 1 Set up for Frequency Spectrum with Amplitude Demonstration Demonstration Board Jumper Settings Use default settings as shown in the 56F800 Demonstration Board User s Manual 3 1 3 2 Procedure for Frequency with Amplitude Spectrum Demonstration e Using CodeWarrior open nos applications FreqSpectrum FreqSpectrum mcp e Open main c and define DEMO_BOARD_WITH_AMPLITUDE to be 1 e Build and download the project when the debugger reaches main it will stop e Select Run in the debugger to continue executing the demonstration e Input audio signals less than 4kHz into the microphone e The LEDs should turn on off depending on the frequencies contained in the audio signal e Pausing the demonstration While the demonstration is executing the LEDs will flash Ifthe IRQ button is pushed the demonstration will pause and the LEDs will indicate the demonstration s state at the time it was paused The demonstration will continue when the IRQ button is pressed again 3 1 4 Frequency
16. eWarrior open nos applications quadtimer quadtimer mcp e Build and download the project when the debugger reaches main it will stop e Select Run in the debugger to continue executing the test e At this point the five columns of LEDs will turn on and off sequentially MOTOROLA 56F800 Demonstration Board Applications 3 1 For More Information On This Product Go to www freescale com 56F800 Demonstration Bolt CHE icatl ile Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUC 3 1 2 Timer Driver Flashing LEDs Demonstration IR INC 2005 This demonstration exercises Timer0 Timer Timer2 Timer3 and Timer4 peripherals located in the 56F801 processor It initializes Timerl using clock ID CLOCK_AUX1 to 1 second with a reload value of 1 second Timer2 is initialized using clock ID CLOCK_AUX2 to 0 5 seconds with a reload value of 0 5 seconds Timer3 is initialized using clock ID CLOCK_AUX3 to 0 25 seconds with a reload value of 0 25 seconds Timer 4 is initialzed using clock ID CLOCK_AUX4 to 0 125 seconds with a reload value of 0 125 seconds When these timers expire the application changes the on off state of the LEDs Figure 3 1 shows the net effect of these activities For interaction with Timer0 the application uses the SDK timer services The SDK timer services reserves Timer0 with clock ID CLOCK_REALTIME and utilizes this timer for nanosleep functionality This application calls the nanosleep interface with a time
17. hich illustrates LEDs during the Frequency Detector demonstration Bit 9 MSB Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bito LSB Note Bit resolution 4Hz Q Figure 3 4 LEDs during the Frequency Detector Demonstration O 3 1 5 1 Set up for Frequency Detector Demonstration Demonstration Board Jumper Settings Use default settings as shown in the 56F800 Demonstration Board User s Manual a 3 1 5 2 Procedure for Frequency Detector Demonstration J e Using CodeWarrior open S nos applications FreqDetector FreqDetector mcp a e Build and download the project when the debugger reaches main it will stop e Select Run in the debugger to continue executing the demonstration ag e Input audio signals less than 4kHz into the microphone m e The LEDs should indicate the binary representation of the strongest frequency detected A e Pausing the demonstration gt While the demonstration is executing the LEDs will flash G Ifthe IRQ button is pushed the demonstration will pause and the LEDs will indicate the G demonstration s state at the time it was paused The demonstration will continue when the IRQ button is pressed again 3 1 6 Potentiometer Controlled LEDs Demonstration This demonstration exercises the ADC PWM and GPIO in the 56F801 processor A voltage divider that is controlled by a Potentiometer POT is attached to AN6 of the ADC This demonstration continuously samples the ADC and uses the 10 LEDs wh
18. ich are connected to the PWM and GPIO to display the amplitude of the signal Since the voltage range is 0 to 3V each LED represents an increment of 0 3V MOTOROLA 56F800 Demonstration Board Applications 3 5 For More Information On This Product Go to www freescale com 005 ka d ka INC G Ai J JN VW SEMICONDUCT CALE D BY FREESI RCHIVE AR Al 56F800 Demonstration Bol hae Ses ile Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Figure 3 5 shows the LEDs during the POT Controlled LEDs demonstration 3 0V 2 7V 2 4V 2 1V 1 8V ES a ba ES 2 1 5V 1 2V 0 9V 0 6V 0 3V Figure 3 5 LEDs in the POT Controlled LEDs Demonstration 3 1 6 1 Set up for POT Controlled LEDs Demonstration Demonstration Board Jumper Settings Use default settings as shown in the 56F800 Demonstration Board User s Manual 3 1 6 2 Procedure for POT Controlled LEDs Demonstration e Using CodeWarrior open nos applications POTControlledLEDs POTControlledLEDs mcp e Build and download the project when the debugger reaches main it will stop e Select Run in the debugger to continue executing the demonstration e Adjust the POT to vary the voltage into AN6 e The LEDs will indicate the amplitude of input signal with a resolution of 0 3V 3 1 7 Serial Bootloader The Serial Bootloader has been developed to load and run a proprietary user application presented as an S Record file into the
19. nd PLL peripherals as well as internal RAM for data buffering The SCI baud rate value is calculated statically with the assumption that the oscillator frequency is SM HZ The 56F801 s operational frequency is set to 60MHz All peripherals used by the Bootloader are returned to their initial state prior to the execution of the application programmed The Bootloader application relies on the ZargetDirectives file to define the target for which the application will be built When this file contains define DSP56801EVM and define DSP56F800_DEMO_BOARD this application is built assuming the existence of an internal relaxation oscillator and corresponding calibration value At run time the application automatically calibrates the internal relaxation oscillator to run at 8MHz 3 1 9 1 Set up To use the Bootloader e Populate the Demonstration Board with the RS 232 circuitry only pads are provided on the board e Program the Bootloader into Boot Flash e Using a serial cable connect the Demonstration Board s RS 232 connector with the host PC s COM serial port e Remove the Host Enable jumper JP1 to allow the board to run as a stand alone without a debugger MOTOROLA 56F800 Demonstration Board Applications 3 7 For More Information On This Product Go to www freescale com ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 56F800 Demonstration Bol RE SS ile Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 3 1 9 1
20. out value of 0 5 seconds in a tight loop The net effect of this call is suspension of the main function execution for 0 5 seconds Flashing 4Hz 2Hz 1Hz o OSHZ 0 25HS Rate Figure 3 1 LEDs in the Timer Driver Demonstration 3 1 2 1 Set up for Timer Driver Flashing LEDs Demonstration Demonstration Board Jumper Settings Use default settings as shown in the 56F800 Demonstration Board User s Manual 3 1 2 2 Procedure for Timer Driver Flashing LEDs Demonstration e Using CodeWarrior open nos applications timers timers mcp e Build and download the project when the debugger reaches main it will stop e Select Run in the debugger to continue executing the demonstration e Once the application is running the application changes the on off state of the LEDs 3 1 3 Frequency Spectrum with Amplitude Demonstration This demonstration exercises the ADC PWM and GPIO in the 56F801 processor It samples the ADC at a rate of 8000 samples second The demonstration then performs an FFT on the sampled data to determine the frequency content of the analog signal Finally it uses the 10 LEDs which are connected to the PWM and GPIO to display the frequency content and amplitude 3 2 Targeting Motorola 56F800 Demonstration Board MOTOROLA For More Information On This Product Go to www freescale com Freescale Semiconductor Inc ARCHIVED BY FR gt ALE SEMICONDUCTOR INC 2005 The first column of LEDs refers to the DC component of the
21. p Trademark Office All other product or service names are the property of their respective owners Motorola Inc 2003 How to reach us USA EUROPE Locations Not Listed Motorola Literature Distribution P O Box 5405 Denver Colorado 80217 1 303 675 2140 or 1 800 441 2447 JAPAN Motorola Japan Ltd SPS Technical Information Center 3 20 1 Minami Azabu Minato ku Tokyo 106 8573 Japan 81 3 3440 3569 ASIA PACIFIC Motorola Semiconductors H K Ltd Silicon Harbour Centre 2 Dai King Street Tai Po Industrial Estate Tai Po N T Hong Kong 852 26668334 Technical Information Center 1 800 521 6274 HOME PAGE hitp Awww motorola com semiconductors MOTOROLA For More Information On This Product Go to www freescale com
22. ry Structure 2 2 Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Targeting Motorola 56F800 Demonstration Board For More Information On This Product Go to www freescale com MOTOROLA L A L DE ril Freescale Semiconductor Inc ARCHIVED BY FRI Ii V LM L9 INGE ESCALE SEMICONDUCTOR INC 2005 Chapter 3 56F800 Demonstration Board Applications 3 1 Applications The following applications have been provided by Motorola to easily demonstrate some of the features of the 56800 family of hybrid controllers 3 1 1 Quad Timer Flashing LEDs Demonstration The Quad Timer Flashing LEDs Demonstration illustrates use of five channels of the Quad Timer The first timer goes off on an overflow which starts the second timer The second timer goes off on Compare 1 which starts the third timer The third timer goes off on Compare 2 which starts the third timer the fourth timer goes off on Compare 3 which starts the fifth timer The fifth timer goes off on Compare 4 which starts the first timer Each column of LEDs reflects the status of the corresponding timer and as a result the LEDs on the running application are also lighted continuously 3 1 1 1 Set up for Quad Timer Flashing LEDs Demonstration Demonstration Board Jumper Settings Use default settings as shown in the 56F800 Demonstration Board User s Manual 3 1 1 2 Procedure for Quad Timer Flashing LEDs Demonstration e Using Cod
23. s 30 seconds 3 10 Targeting Motorola 56F800 Demonstration Board MOTOROLA For More Information On This Product Go to www freescale com ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Index Numerics 56800 Demo Board User s Manual ix A ADC ix Analog to Digital Converter ix D Directory Structure 2 1 DSP ix Digital Signal Processor ix DSP56800 Family Manual ix DSP5680x User s Manual ix E Embedded SDK Programmer s Guide ix F FFT ix Fast Fourier Transform ix G GPIO ix General Purpose Input Output ix ISR ix Interrupt Service Request ix P POT ix Potentiometer 1x PWM ix Pulse Width Modulator ix S SDK ix Software Development Kit ix T Targeting Motorola DSPS56F80x Platform Manual ix MOTOROLA Index For More Information On This Product Go to www freescale com ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Motorola reserves the right to make changes without further notice to any products herein Motorola makes no warranty representation or guarantee regarding the suitability of its products for any particular purpose nor does Motorola assume any liability arising out of the application or use of any product or circuit and specifically disclaims any and all liability including without limitation consequential or incidental damages
24. t Amplitude Spectrum Demonstration e Using CodeWarrior open nos applications FreqSpectrum FreqSpectrum mcp e Open main c and define DEMO_BOARD_WITH _AMPLITUDE to be 0 e Build and download the project when the debugger reaches main it will stop e Select Run in the debugger to continue executing the demonstration e Input audio signals less than 4kHz into the microphone e The LEDs should turn on off depending on the frequencies contained in the audio signal e Pausing the demonstration While the demonstration is executing the LEDs will flash Ifthe IRQ button is pushed the demonstration will pause and the LEDs will indicate the demonstration s state at the time it was paused The demonstration will continue when the IRQ button is pressed again 3 1 5 Frequency Detector Demonstration This demonstration exercises the ADC PWM and GPIO in the 56F801 processor It samples the ADC at a rate of 8000 samples second The demonstration then performs an FFT on the sampled data to determine the frequency content of the analog signal Finally it uses the 10 LEDs which 3 4 Targeting Motorola 56F800 Demonstration Board MOTOROLA For More Information On This Product Go to www freescale com Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 are connected to the PWM and GPIO to display the binary representation of the strongest frequency detected Applications See Figure 3 4 w
25. tloader via CodeWarrior If an application previously loaded via the Bootloader uses the SDK variable BSP_BOOTLOADER_DELAY see Section 3 1 9 4 the Bootloader waits for the S Record file MOTOROLA 56F800 Demonstration Board Applications 3 9 For More Information On This Product Go to www freescale com ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 56F800 Demonstration Bol RE SS ile Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 only until the required time out expires then launches the application When this happens the terminal window contains a message similar to this c 2000 2001 Motorola Inc S Record loader Version 1 3 Application started 3 1 9 4 Requirements for a Loaded Program If the application is loaded via the Bootloader it must meet the following requirements e Particular start address for application The entry point for the loaded application must be located at address 0x0080 in Program memory i e immediately after the interrupt table e Application COP vector To use COP interrupt vector in an application loaded via Bootloader the entry point for the COP ISR must be located at address 0x0082 in Program memory e Application start delay variable must be set at address 0x0085 in Program Flash The SDK provides a configuration variable for this purpose For details on managing the Bootloader without SDK support see file config vector c in the SDK
26. u have a copy of the following references e Targeting Motorola DSP56F 80x Platform Manual SDK126 D e 568F00 Demonstration Board User s Manual TBD e DSP56800 Family Manual DSP56800FM AD e DSP56F80x User s Manual DSP56F801 7UM AD e Inside CodeWarrior Core Tools Metrowerks Corp MOTOROLA Preface For More Information On This Product Go to www freescale com vii Freescale Semiconductor Inc ARCHIVED BY FREESCALE SEMICONDUCTOR INC 2005 Conventions This document uses the following notational conventions Typeface z Symbol or Term Meaning Examples Courier Code examples Process command for line flash Monospaced Type Italic Directory names and contains these core directories project names applications contains applications software Calls functions CodeWarrior project 3des mcp is statements procedures the pConfig argument routines arguments defined in the C header file aec h N file names Oo applications zZ variables oe directives O code snippets a in text Bold Reference sources refer to the Targeting DSP56F80x Platform Z paths manual emphasis see C Program Files Motorola Embedded SDK help tutorials Blue Text Linkable on line refer to Chapter 7 License LU S Number Any number is consid 3V ered a positive value 10 ul unless preceded by a DES E minus symbol to signify TS a negative value
27. unication module e _ nos applications serial_bootloader com h header for communication module e _ nos applications serial_bootloader sparser c S Record format parser module e _ nos applications serial_bootloader sparser h header for S Record parser module e _ nos applications serial_bootloader prog c Flash programming module e _ nos applications serial_bootloader prog h header for Flash programming module e _ nos applications serial_bootloader bootstart c start up module e _ nos applications serial_bootloader constdata asm description of strings data e _ nos applications serial_bootloader resetvector asm Reset and COP Reset interrupt vectors description e _ nos applications serial_bootloader TargetDirectives Board name definition e _ nos applications serial_bootloader config linker cmd linker command file used for Boot Flash e _ nos applications serial_bootloader config flash cfg Metrowerks CodeWarrior configuration file to work with Flash Applications These files are located in the SDK installation directory The Bootloader application uses only SDK files port h arch h and periph h from the nos include directory It can be compiled and used without other parts of the SDK 3 1 9 Target Configuration The Bootloader uses a minimum of the hybrid controller s resources in order to reduce the possibility of conflict with the application being downloaded Specifically it uses the 56F801 s SCI 0 Port E a
Download Pdf Manuals
Related Search
Related Contents
Manuale Tecnico mode d`emploi Ranger RCI-6300F TB User's Manual Manuel d`utilisation application mobile AndroIUT Manuale Tecnico - M63PA ATEX Panel Scoring User Manual Ficha Técnica, ALUM-100 Triangle Tube Prestige TriMax Control Supplement ATS48 Y Range basic Partes principales Indicadores Cuidado de su radio Preparación Copyright © All rights reserved.