Home

Graphical Configuration Tool

image

Contents

1. INVESTICE DO ROZVOJE VZD L V N M FreeMASTER as a Real Time Monitor FREEMASTER OVERVIEW INVESTICE DO ROZVOJE VZD L V N FreeMASTER as a Real time Monitor Connects to an embedded application SCI UART JTAG EOnCE 56F8xxx only BDM HCS08 HCS12 only CAN Calibration Protocol Ethernet TCP IP Any of the above remotely over the network Enables access to application memory Parses ELF application executable file Parses DWARF debugging information in the ELF file Knows addresses of global and static C variables Knows variable sizes structure types array dimensions etc INVESTICE DO ROZVOJE VZD L V N FreeMASTER as a Real time Monitor Displays the variable values in various formats Real Time Graph Text tabular grid variable name value as hex dec or bin number min max values number to text labels Real time waveforms up to 8 variables simultaneously in an oscilloscope like graph testi read ms WEE test2 read variable High speed recorded data P eiae up to 8 variables in on board y memory transient recorder Variable Watch BIER f Ve INVESTICE DO ROZVOJE VZD L V N EVROPSK UNIE lul L
2. cmd spec param command specific parameter Specifies other data required to execute the command n general it can be Pointer to the structure NULL value Variable value in dependency with the specific command List of recommended parameters h corresponding to managed peripheral Example gpio h adc h pwm h sci h spi h qtimer h etc Example for pwm h define PWM PRESCALER DIV 1 define PWM PRESCALER DIV 2 define PWM PRESCALER DIV 4 define PWM PRESCALER DIV 8 Etc WN Fe O Baka wa INVESTICE DO ROZVOJE VZD L V N EVROPSK UNIE lul S ioct command macro Hdefine ioctl fd cmd prm ioctl cmd fd prm Macro definition periph h fd Peripheral module base address Address assigned from ArchlO structure INVESTICE DO ROZVOJE VZD L V N Example for GPIO general command gpio h define GPIO A amp ArchlO PortA GPIO A base address User source code c ioctl GPIO A GPIO SET PIN BIT 0 periph h e Hdefine periphBitSet mask addr addr mask gpio h Hdefine ioctlGPIO SET PIN pGpioBase param periphBitSet param amp pGpioBase dr Compiler result assembly code ioctl GPIO A GPIO SET PIN BIT 0 P 0000414A 8254F1510001 bfset 1 X 0x00f151 INVESTI
3. Project Stationery 56F800 E MPC500 MPC5500 MPC5200 QUICK START OVERVIEW INVESTICE DO ROZVOJE VZD L V N INVESTICE DO ROZVOJE VZD L V N Quick Start Project Stationery CodeWarrior concept of creating a new project CodeWarrior clones the project template and creates a ready to use skeleton of a new application n Quick Start a dedicated project stationery exists for each processor and evaluation board EVB xi Select project stationery e Processors differ in memory layout peripheral modules etc T 2 MC5S6F8006 MC56F8013 e Fora given processor more than m one EVB may exist differing NEUE B MCSBSFS025DEMD in how the processor is connected i E per Standalone C application with external components Mela xx ed i n e LH rn as Sa EVROPSK UNIE bai LTS Quick Start Project Stationery Multiple Compiler configurations per project RAM based debugging targets Standalone Flash based release targets CPU Simulator target Start up code Board Initialization Interrupt tables Linker Command Files provide the linker with information about how to arrange a C code in memory Debugger Configuration Files Making the EVB ready for RAM based debugging Making the EVB ready for Flash Programmer Memory description files INVE
4. Additional features Variable Transformations Variable value can be transformed to custom unit Variable transformations may reference other variable values Values are transformed back when writing a new value to variable Application Commands Command code and parameters are delivered to an application for arbitrary processing After processed asynchronously to a command delivery the command result code is returned to PC Ability to protect memory regions Describing variables visible to FreeMASTER Declaring variables as read write to read only for FreeMASTER the access is guarded by the embedded side driver INVESTICE DO ROZVOJE VZD L V N Highlights FreeMASTER helps developers to debug or tune their applications Replaces debugger in situations when the processor core can not be simply stopped e g motor control Recorder may be used to visualize transitions in near 10 us resolution INVESTICE DO ROZVOJE VZD L V N o FreeMASTER as a Graphical User Interface to the Embedded Application FREEMASTER OVERVIEW INVESTICE DO ROZVOJE VZD L V N Using FreeMASTER as a Graphical Control Panel Variable Watch pane enables direct setting of the variable value Sending Application Commands from the application GU
5. Dead Time fus Dead Time 1 h us Hardware Acceleration 8 CH E very 8 opportunity Every 5 opportunity Every 6 opportunity Every 7 opportunity Every 9 opportunity Each value register is acc Every 10 opportunity Every 11 opportunity Swap amp Mask Mode DS Every 12 opportunity Every 13 opportunity Swap Channel Pairs Every 14 opportunity Mask Chame DEN Every 15 opportunity Every 16 opportunit Keep Hardware Acceleration Register Bits writable Channel Pairs Top Polarity Channels 0 1 Channels 2 3 Channels 4 5 Bottom Polarity Channel Coupling Positive v Positive v Complementary oir Correction Method used only v m j Positive v Positive z Complementary or Correction Method used only T i20 3 Positive v Positive v Complementary or Correction Method used only v mj 1 Asymetric output center alignment only Invert outputs Interrupts Reload FautOPin Fault2 Pin Fault1Pin FT Fault 3Pin ISR Name J pz z J Disabled 7 Faults Fault Clearing Polarity Fault Clearing Polarity 12 module pins out of 12 are not available on any device pin See GPIO_A and GPIO B Module PWM is configured for use but its peripheral clock is disabled Show warnings even for non included modules Disable PWM Pins da FAULT 1 2 Zj AE By Fault 0 S Vw vw Mv Ww By Fault 1 Vv iw i
6. MSL Set of ANSI compliant standard C libraries for use in developing DSP56800E applications Subset of those used for all platform targets e These libraries are customized and the runtime adapted for DSP56800E development INVESTICE DO ROZVOJE VZD L V N CodeWarrior Debugger for DSP56800E Controls your program s execution letting you see what happens internally as your program runs Debugger can Execute your program one statement at a time suspending execution when control reaches a specified point Show the chain of function calls Examine and change the values of variables Inspect processor register contents Watch the contents of memory Etc Use this debugger to find problems in your program INVESTICE DO ROZVOJE VZD L V N Target settings Each build target in a CodeWarrior project has its own settings The target settings control Compiler options Linker options Assembler options Debugger options Error and warning messages When you create a project using stationery The build targets which are part of the stationery already include default target settings You can use those default target settings if the settings are appropriate or you can change them INVESTICE DO ROZVOJE VZD L V N e Manipulates
7. Ke m Interrupts value 0 I Enable alternative load eed v Reload counter on capture I Reload counter on 2nd trigger Compare gt T Overflow T Inputs Enabled secondary input acts as a fault signal More detailed warning description Module QT_AO is configured for use but its peripheral clock is disabled V N BIEN O7 i Highlights Quick Start helps users to get familiar with the processor quickly e GCT helps to understand individual bits of peripheral registers Sample applications demonstrate how to access the peripheral modules Quick Start helps users to jump in the SW development quickly Aready to use project stationery to start a new project GCT immediately available No performance penalty when using Quick Start Optimal code each instruction matters Suitable for hard real time applications motor control Source files available everything under control no hidden code Quality Developed under CMM Level 3 certified process Baka wa INVESTICE DO ROZVOJE VZD L V N EVROPSK UNIE lul S FreeMASTER Tool INVESTICE DO ROZVOJE VZD L V N o iii What is FreeMASTER Real time Monitor FOR YOUR Graphical Control Panel EMBEDDED Demonstration Platform amp APPLICATION Selling Tool
8. CE DO ROZVOJE VZD L V N e Example for GPIO INIT command gpio h Hdefine GPIO A amp ArchlO PortA GPIO A base address User source code c ioctl GPIO A GPIO INIT NULL gpio h void gpiolnit arch sPort pGpioBase declaration Hdefine ioctlGPIO INIT pGpioBase param gpiolnit pGpioBase gpiolnit function execution Function definition gpio c Usually executed just ones during chip initialization Performs setting stored in appconfig h file appconfig h file modified by GCT Graphical Configuration Tool INVESTICE DO ROZVOJE VZD L V N INVESTICE DO ROZVOJE VZD L V N Why not to use direct access to peripheral registers Most of ioctl calls are macroized to direct register access anyway either read write or bit set bit clear instructions used Some registers do need special attention ioct 1 usage brings kind of abstraction and transparency to an application code while still being optimally compiled Decoder Control Register DECCR L Clear by write one interrupt request flags Exercise Suppose you want to clear DIRO bit only while not modifying the rest of the register Also you must not clear the HIRQ and XIRO bits What C or assembly statement will you use on 56F800E solution on the next slide BBE i we Decoder
9. Clock 32 000 I PINOUT Z occ ni x x GPIO A PER 0x080 GPIO B PER 0x0000 GPID C PER 00000 GPID D PER Ox000F SIM GPSAD 0 0000 Mcpioat PM GPIOA PWM4 TA2 FAULT lw GPIO a2 D pwm GPIOAS PWMS TAS FAULT2 W GPIO AZ C pwm GPIOAS FAULTO TAD IVcPIoA4 OPwu M cPoASs O pwm M epos FAUL Mepoas FAUL Mepioas IFAUL Power 8 Ground M H Pin Out Inf Synthesis GPIOA8 FAULTI TA2 CINA1 Other Supply Ports M C GPIOD4lV extaLO GPIOA9 FAULTZ TA3 CINB1 GPIOA10 CINA2 cpio Ds Iv cikin C pions xTAL eny GPIOA11 CINB2 IV GPIO A10 SIM CLKOSR 0 0020 r M GPIO A11 eS L RESET GP0A7 AT PIT Periodic Interval Timer GPIO BoM ic GPIOBO SCLKO SCL PIT 0 Periodic Interval Timer GPIO 81M aspio thon EEG soa ta 350 SDA T PIT 1 Periodic Interval Timer GPIOB2IM Timer a20 p TT PIT 2 Periodic Interval Timer GPIO B3W Timer A3 r ee nn SPI0B10 COUTA A M eposo cmP4 AT GPIO General Purpose I O Ports PSRCO apios3mosu TAS PSRC1 GPIOB11 COUTS A M GPIO B11 2 PSRC1 7 GPIO A General Purpose I O 7 GPIO B General Purpose I O 7 GPIO C General Purpose 1 0 GPIOBSM FAULT 3 GPIO B amp lV Timer A1 GPIOBS TA1 FAULT3 CLKIN Registers Summary Mepocz ANA Mepoc3 JANA P P
10. Control tn a BIB E JE EE EE EJ e ENS IE BB 0107 550 uis E A DE RE NE A e Clear by write one interrupt request flags define DECCR DIRO 0x0010 DIRQ bit constant ArchIO Decoder0 deccr register in the peripheral structure C language ArchIO Decoder0 deccr DECCR DIRQ s 56F800E Assembler asm move w gt 16 X 0x00f180 DIRQ gets cleared OK e XIRQ and HIRQ remain unchanged OK All other bits get reset Wrong GB MERO P x INVESTICE DO ROZVOJE VZD L V N EVROPSK UNIE lul t i o O Decoder Control tn a BIB E JE EE EE EJ e ENS IE BB 0107 550 uis E A DE RE NE A e Clear by write one interrupt request flags define DECCR DIRO 0x0010 DIRQ bit constant ArchIO Decoder0 deccr register in the peripheral structure C language ArchlIO DecoderO deccr DECCR DIRO 56F800E Assembler t asm bfset 0x10 X 0x00f180 e DIRQ gets cleared OK Other register bits unchanged OK e XIRQ or HIRQ gets reset if they read as 1 i e when interrupt request is pending INVESTICEsDOsRO2 ONE ZDE LAV ANT ki i Decoder Control tn mna HA m ne soll L Clear by write one interrupt request flags define DECCR DIRO 0x0010 DIRO bit constant define DECCR HIRO 0x8000 HIRO bit const
11. I Time table stimulation of the variable value Be Edt Yew Libre pem Broc Tods Heb SIS le esa S aill fu s zel HT M L Pa ges an d Fo rms FlexRay Transmit Receive Demo freescale MFRAZ00 FlexRay Transmission You Car BMW M3 k JScript or VBScript Push buttons Images indicators Sounds videos Sliders gauges and other 3rd party ActiveX controls INVESTICE DO ROZVOJE VZD L V N ki i Scripting in FreeMASTER HTML pages are displayed directly in the FreeMASTER window HTML may contain scripts and ActiveX objects FreeMASTER itself implements an invisible ActiveX object Script accesses the FreeMASTER functionality through this object Variable access Stimulator access Application Commands Output current Recorder Data Input voltage HTML may host whole applications for example Excel Excel Visual Basic macros may access FreeMASTER as well INVESTICE DO ROZVOJE VZDELAVANI Target in loop Simulations FreeMASTER invisible ActiveX object is accessible also by external standalone applications Standard C or VB applications Excel amp Visual Basic for Applications Matlab Simulink Target in loop Simulation Matlab or Simulink engine lets embedded application to perform calcu
12. Mw Mw WM By Fault 2 Vw vw vw MY By Fault 3 Vw MN Mw HK Software Control n 1 DA 4 PACH PMDEADTMDO PMDISMAP1 PMDISMAP2 PwMVALO PwMVAL1 FWwMVAL2 PwMVAL3 PwMWVAL4 PWMVALS PMICCR PMSRC PMDEADTM1 SYNC FFILTO FFILT1 FFILT2 FFILT3 oso ooo ooo 50050 50020 jorr C Joxooo0 Joxoooo 50000 Joxooo0 50000 omo omo 50000 ono ono Joxooz0 ooo Joxooo0 Joxoooo Joxoooo Joxooo0 gt M z z z INVESTICE DO ROZVOJE VZD L V N EVROPSK UNIE lud INVESTICE DO ROZVOJE VZD L Conflict Warnings lt Example 1 appconfig h 56F800 E Graphical Configuration Tool File Edit View Module Help HEB Ee 1 hm Target MC56F8025 SYS Clock 32 000 MHz IPBus Clock 32 000 MHz Warning detail GPIO A6 mode bad r Timer Operation CTRL pozo SCR ooo CMP1 poo CMP2 pono INTC Interrupt Controler Input capture mode Count stop mode LOAD 0 0000 FR QT A Quad Timer A Capture disabled Input Edae Flag disabled hd Count repeatedly Ie PECES Output mode Count length cat oxo000 Count mode Counting mode count rising edges of pri Primary source GPIO AE mode ba Counter 0 input pin PINOUT Packag
13. Program Execution Breakpoints Halt program execution on a line of source code that you specify Two types of brakepoint Always halts program execution Halts program execution if a condition that you specify is true Watchpoints Halt program execution after a location in memory is accessed INVESTICE DO ROZVOJE VZD L V N e Manipulates Program Execution Eventpoints Perform a task during program execution on a line of source code that you specify Eventpoints can play sounds run scripts log data and perform other operations Special breakpoints These internal breakpoints halt program execution in special cases such as halting program execution at the main function or for a C exception Halt program execution after a location in memory is accessed INVESTICE DO ROZVOJE VZD L V N Ouick Start Tool INVESTICE DO ROZVOJE VZD L V N What is Quick Start Quick Start Low level Drivers Graphical Configuration Tool Demo nom c I9 d Discussion INVESTICE DO ROZVOJE VZD L V N Ouick Start Easy to use SW Development Environment e Set of Low level Drivers for all Peripheral Modules C language structures of peripheral memory space Unified way of accessing peripheral registers Highl
14. STICE DO ROZVOJE VZD L V N Graphical Configuration Tool 56F800 E MPC500 MPC5500 MPC5200 OUICK START OVERVIEW INVESTICE DO ROZVOJE VZD L V N Graphical Configuration Tool GCT A desktop application for MS Windows XP W2000 NT Used to edit the ANSI C compatible application configuration header file typically appconfig h for Quick Start applications Ctrl F10 invoked GCT opens the appconfig h for a current project Metrowerks CodeWarrior IDE appconfig h file Graphical Configuration Tool include appconfig h LO Read amp Write access to appconfig h defines used to initialize peripherals k N my Fo INVESTICE DO ROZVOJE VZDEL VAN ERN Sor M Freescale CodeWarrior lc1 x Bile Edit View Search Project Debug Data Visualization Window Help mma NH c x BM R A2 WL a 53 BE M appconfig h b 3 M 3 r Path D ASourceCode Test Example 1ApplicationConfigappconfig h 43 3 3 3 3 3 FE JE 3 3 JE 3 FE JE FE JE 3 FE JE JE FE JE JE 9 JE FE 9 JE FE JE JE JE IE JE 9 JE FE 9 JE FE JE 9 JE JE FE 9 JE FE JE JE 9 JE FE 9 JE JE JE JE JE JE JE 3 JE FE JE JE JE JE JE FE JE JE JE JE 3 JE 9 3 JE 36 File Name appconfig h Description file for static configuration of the application i
15. ant define DECCR XIRO 0x0100 XIRQ bit constant ArchIO Decoder0 deccr register in the peripheral structure C language ArchIO Decoder0 deccr 8 DECCR DIRO amp DECCR HIRO DECCR XIRO 56F800E Assembler asm bfclr 40x8100 X 0x00f180 EX 5 o e Lo eee 4 M EVROPSK UNIE luf i d INVESTICE DO ROZVOJE VZD L V N Decoder Control Register DECCR L Clear by write one interrupt request flags define DECCR DIRO 0x0010 DIRO bit constant define DECCR HIRO 0x8000 HIRQ bit constant define DECCR XIRO 0x0100 XIRQ bit constant ArchIO Decoder0 deccr register in the peripheral structure C language ArchIO Decoder0 deccr 8 DECCR DIRO amp A A Better work with Ouick Start and use the 56F4 Clear Interrupt Request command ioctl DEC 0 DEC INT REQUEST CLEAR DEC DECCR DIRO k k h k 4 k EVROPSK UNIE FR Pi INVESTICE DO ROZVOJE VZD L V N Low level Drivers Highlights Full control over all processor resources Real world application development know how inside transparent solution to tricky register access higher abstraction and code readability without loosing performance Delivered as source code Fully tested and documented INVESTICE DO ROZVOJE VZD L V N
16. c COP Runs in Stop Hode Disable COP Runs in Wait Mode Disable COP Write Protect Disable Enable Loss of Clock COP Enable ES define OCCS PLLCR INIT O0x0082U def ine OCCS PLLDB INIT O0x0000U Fdefine OCCS USE FACTORY TRIM 1 SYS Configuration SIM Power Saving Modes Stop enabled Wait enabled OnCE clock to processor core Enabled when core T P enabled SIM Interrupts Low voltage 2 2V Disable Low voltage 2 7V Disable SIM Peripheral Clock Enable PWM No SPI 0 No SCI 0 No I2C Ho ADC No DAC 0 No DAC 1 Ho CMP A No CHP B No TMR AO No x BRE w INVESTICE DO ROZVOJE VZD L V N M T IL GCT and the appconfig h File A single macro constant per peripheral register Configuration summary comments Read Write in GCT Enables manual editing of the appconfig h file Copy amp paste migrating to other CPUs GCT supports importing of module configuration within a single project or between projects e Private section in appconfig h file Users put other global symbols amp definitions here The file can be a real application configuration file not only the processor configuration INVESTICE DO ROZVOJE VZD L V N Example 1 appconfig h 56F800 E Graphical Configuration Tool Ele Edt View Modue Help LO Target MC56F8025 SYS Clock 32 000 M IPBus
17. e and Pin Out Inft A D IV OCCS On Chip Clock Synthesis a System Support Control Counter 0 input pin T QA Counter 1 assetted while counter is active z CMPLD1 0 0000 Roll over T 93122 Counter 2 I gp A3 Counter 3 I Timer Channel Enabled counter starts counting immediatelly after initialized n 00000 E PIT fleriodic Interval Timer COMSCR 0 0000 Plir 0 Periodic Interval Timer p FLAG Timer Pin Control E Input polarit True z FILT 0 0000 P T 1 Periodic Interval Timer Master mode broadcast compare event DDUEID y i 2 Periodic Interval Timer B Geid General Purpose I O Ports Iv FIO A General Purpose 1 0 FPIO B General Purpose I O nana More detailed warning description I fGP1O D General Purpose 1 0 g uda Pulse Width Modulator Timer Pin 0 is not set to Timer mode in GPIO A6 EF CMP Analog Comparator CMP A Analog Comparator A CMP B Analog Comparator B T Adfc Analog to Digital Converter EMF Offic Digital to Analog Converter DAC 0 Digital to Analog Con DAC 1 Digital to Analog Com T sE1 0 Queued Serial Communica I s t 0 Serial Peripheral Interface T IE Inter Integrated Circuit Intert rd z VE PAY A SY A Tin 4 21 moji T Ware F ele pins out of 12 are p BO Timer Pin 0 is not set to Tim 5 Module GTS Module Pw is D I Show wamings even for non included mod i
18. erbach Debugger BRA me INVESTICE DO ROZVOJE VZD L V N EVROPSK UNIE uf ELS ArchlO global symbol Provides a C interface structure type to all peripheral and core registers mapped in data memory All registers are accessed via this structure no need to know and specify the concrete addresses of the registers to write or read ArchlO declared in the arch h file ArchlO structure definition e ArchlO defined as the extern variable ts address defined by a directive in linker command file INVESTICE DO ROZVOJE VZD L V N typedef volatile struct arch_sTimer arch_sTimer arch_sADC arch_sPWM arch slntc arch sSIM arch sCOP arch sPLL arch sLVI UWord16 TimerA TMRA BASE 0xF000 TimerB unused Adc ADC BASE OxF080 Pwm PWM BASE OxFOCO Intc INTC BASE OxFOEO Sim SIM BASE 0xF100 Cop COP BASE OxF120 PII PLL BASE OxF130 lvi VI BASE OxF140 reserved4 OxFFO600 arch_sEOnCE EOnCE EOnCE BASE OxFFFFOO arch slO INVESTICE DO ROZVOJE VZD L V N jo mm e COP structure defined in arch h file typedef volatile struct t ARCH REG2 UWord16 copctl ControlReg ARCH REG2 UWord16 copto TimeoutReg ARCH REG2 UWord16 copctr ServiceReg ARCH REG1 UWord16 rese
19. erval Timer T PIT 0 Periodic Interval Timer PIT 1 Periodic Interval Timer 7 PIT 2 Periodic Interval Timer GPIO General Purpose I O Ports 7 GPIO A General Purpose I O 7 GPIO B General Purpose I O 7 GPIO C General Purpose I O 7 GPIO D General Purpose I O IS PWM Pulse Width Modulator E CMP Analog Comparator 7 CMP A Analog Comparator A 7 CMP B Analog Comparator B 7 ADC Analog to Digital Converter a DAC Digital to Analog Converter I SCI 0 Queued Serial Communica 7 SPI 0 Serial Peripheral Interface l Z Caan Rak Cp Cum Aoi x E 7 PINOUT Package and Pin Out Infe 7 DAC 0 Digital to Analog Com 7 DAC 1 Digital to Analog Cony 7 IIC Inter Integrated Circuit Intert gt General Settings Write Protection Output Pad Enable Load OK IV PWM Module Enable wait Mode Operation Debug Mode Operation Stop v Stop 7 r PWM Operation PWM Reload Frequency Every 5 opportunity z Every opportunity Every 2 opportunity Manual correction no cor E very 3 opportunity Every 4 opportunit Deadtime Correction Methd 12 module pins out of 12 are not available on any device pin See GPIO_A and GPIO B PWM Clock Prescaler n Modulus 80 Alignment Center DeadTime0 322 4 DeadTimei 382 Clock Period 0 03125 us Period fu i Freguency 200kH2
20. i i m3 RXDO ea ELK SE Kr pem cere goes V ulse Vit lodula asco C GPIOB7 TXDO SCL GPIOC1 ANAT M GPIO C1 E CMP Analog Comparator I CMP A Analog Comparator A I CMP B Analog Comparator B fnalog to Digital Converter Digital to Analog Converter DAC 0 Digital to Analog Cony GPIOC2 ANA2 VzrnA Alternate CLKIN BS l_ Primary CLKIN B6 GPIOC3 ANA3 Veri GPIOC4 ANBO X CINB3 TD GPIOO0 E mm TL 1T 1 DAC 1 Digital to Analog Cony TOO GPIOD1 I 0 Oueued Serial Communicat JTAG EOnCE TCK GPIOD2 TMS GPIOD3 Peripheral Modules Tree PWM 12 module pins out of 12 are not available on any device pin See GPIO_A and GPIO_B SYS Module PWM is configured for use but its peripheral clock is disabled gt Show warnings even for non included modules ES e t 1 4 INVESTICE DO ROZVOJE VZD L V N EJPOFSKA UNE Direct Register Value View Example 1 appconfig h 56F800 E Graphical Configuration Tool Elle Edit view Module Help U z gt T Target MC56F8025 SYS Clock 32 000 MHz IPBus Clock 32 000 MHz I OCCS On Chip Clock Synthesis I SYS System Support Control 7 INTC Interrupt Controler A QT A Quad Timer A 7 QT A0 Counter 0 T QT A1 Counter 1 7 GT A2 Counter 2 7 OT A3 Counter 3 AT PIT Periodic Int
21. ions ioctl SCI 0 SCI SET BAUDRATE SCI BAUD 9600 ioct SCI U SCI SET BAUDRA SET EASE t 000000E5 B654F0B000D0 move w 4 208 x 0x00f0b0 P 000000E8 E708 rts INVESTICE DO ROZVOJE VZD L V N e joctl Input Output Control e joctl general syntax ioctl module ID cmd name cmd spec param module ID module identifier Predefined symbolic constant corresponding to names of peripheral modules Example GPIO A GPIO B ADC ADC A ADC B PWM PWM A PWM B COP etc The base address of the peripheral module List of module identifiers h corresponding to managed peripheral Example gpio h adc h pwm h sci h spi h qtimer h etc INVESTICE DO ROZVOJE VZD L V N cmd name specifies action performed on a peripheral module Command is depended to performed operation List of commands h corresponding to managed peripheral Example gpio h adc h pwm h sci h spi h gtimer h etc Set of commands for each peripheral Example for pwm h PWM SET PRESCALER PWM SET RELOAD FREQUENCY PWM FAULT INT ENABLE Etc Self explaining name of commands No need to dive into deep documentation studying INIT command essential command for each peripheral e Example COP INIT ADC INIT PWM INIT GPIO INIT etc INVESTICE DO ROZVOJE VZD L V N
22. kk ky k i ad S MELDE SAN pro Noob MA Ma INVESTICE DO ROZVOJE VZD L V N EVROPSK UNIE b Mikroprocesorov technika v embedded syst mech Ing Jaroslav Lepka Ing Libor Prokop 27 28 kv tna 2010 Tato prezentace je spolufinancov na Evropsk m soci ln m fondem a st tn m rozpo tem esk republiky 28 5 2010 CodeWarrior Integrated Development Environment IDE INVESTICE DO ROZVOJE VZD L V N Q Efficient and flexible software development tool suite Consists of Project manager Graphical user interface Compilers Linkers Debuggers Source code browser Editing tools INVESTICE DO ROZVOJE VZD L V N CodeWarrior Compiler for DSP56800E ANSI compliant C compiler Based on the same compiler architecture used in all CodeWarrior C compilers Use this compiler with the CodeWarrior linker for DSP56800E to generate DSP56800E applications and libraries CodeWarrior Linker for DSP56800E Lets us generate Either Executable and Linker Format ELF Or S record output files for your application INVESTICE DO ROZVOJE VZD L V N e CodeWarrior Assembler for DSP56800E Easy to use syntax t assembles any project file that has a asm filename Main Standard Library
23. lations INVESTICE DO ROZVOJE VZD L V N iii na FreeMASTER as a Demonstration Platform 8 Selling Tool FREEMASTER OVERVIEW INVESTICE DO ROZVOJE VZD L V N FreeMASTER as a Selling Tool FreeMASTER helps Freescale Marketers to sell our work 28 5 2010 FreeMASTER project can visualize any detail of how the embedded application works HTML Pages embed text images videos together with live application data FreeMASTER acts as a web browser so it is possible to navigate to online shop directly without even leaving a FreeMASTER environment FreeMASTER helps Freescale customers to sell their work F Project FreeMaster Bile Ek Yew Explorer tem Project Tools tep RSz32 C001 speed 115200 a e o k 4 e EVROPSK UNIE lud K 57 FreeMASTER is Free The FreeMASTER is freely available from the Freescale web License agreement prevents using FreeMASTER with processors from competition Free redistribution enables Freescale customers to pack FreeMASTER with their products http www freescale com webapp sps site prod_summary jsp code FREEMASTER amp fsrch 1 INVESTICE DO ROZVOJE VZDELAVANI Thank vou INVESTICE DO ROZVOJE VZD L V N
24. nitial values interrupt vectors JE FE FE JE JE 3 3 3 JE 3 3 JE 3 3 JE 3 3 3 JE JE JE 3 JE JE JE JE 3 JE JE 3 JE JE 3 JE JE 3 3 JE JE JE 3 JE 3 3 JE 3 3 IE JE JE JE 3 JE JE 3 JE 3 3 JE 3 3 JE JE JE JE 3 JE 3 3 JE 3 3 3 3 3 EE ifndef APPCONFIG H define APPCONFIG H SBA HEE IE FE HE FE HE FE 9 3 9 3 3 3 3 9 9 9 9 9 FE 9 9 9 3 9 3 FE 9 9 3 FE 9 FE 9 FE 3 IE 3 FE 3 FE 3 FE 3 FE 9 9 9 FE 9 9 3 3 FE 9 3 9 JE FE FE 9 FE 9 FE 39 3 39 3 39 3 9 IE File generated by Graphical Configuration Tool Sat 15 Hay 2010 18 09 26 FE FE FE 36 3 FE 3 3 3 3 3 9 3 FE FE 3 3 3 3 36 FE FE FE 3 FE 9 FE FE FE FE FE 3 FE FE FE FE FE 3 FE 3 FE FE FE FE FE 3 FE FE 9 FE 9 3 9 3 39 FE 39 FE 3 FE FE FE 9 FE 9 FE 9 3 9 FETE TEBE 3 9 FE 3 7 define MC56F8025 define EXTCLK 80000001 define APPCFG DFLTS OMITTED 1 define APPCFG GCT VERSION 0x02040003L OCCS Configuration Use Relaxation Oscillator Disable Core frequency 32 HHz VCO frequency 192 MHz Loss of lock interrupt 0 Disable Loss of lock interrupt 1 Disable Loss of reference clock Interrupt Disable COP operation Enable COP timeout 8 38861 se
25. rved 13 arch sCOP INVESTICE DO ROZVOJE VZD L V N EM imme e arch h file extern declaration of ArchlO variable The location of the following structure is defined in linker cmd d extern arch sIO ArchlO Linker command file address assignment to the structure FArchlO ADDR x onchip peripherals INVESTICE DO ROZVOJE VZD L V N e Example of read write operation using ArchlO structure UWord16 RegValue variable definition RegValue ArchlO TimerA ChannelO HoldReg read register ArchlO TimerA ChannelO CompareReg1 0x8000 write number to reg Example of the same operation as previous case using periphMemRead and periphMemhRead macros UWord16 RegValue variable definition RegValue peripgphMemRead amp ArchlO TimerA ChannelO HoldReg penip eon amp ArchlO TimerA Channel0 CompareReg1 INVESTICE DO ROZVOJE VZD L V N Low Level Drivers 56F800 E MPC500 MPC5500 OUICK START OVERVIEW INVESTICE DO ROZVOJE VZD L V N Quick Start Low level Drivers Full control over and full access to all processor resources Unifies access to peripheral memory space ioctl call Registers are not accessed directly although this is still possible ioctl calls are optimally compiled macros or funct
26. y optimized to achieve an optimal assembly generated Ready to use Project Templates Project Stationery Compiler configurations RAM debug Flash standalone targets Processor start up code nterrupt tables or Interrupt Dispatcher Debugger initialization files Graphical Configuration Tool User friendly insight to processor configuration cont INVESTICE DO ROZVOJE VZDELAVANI Graphical Configuration Tool Edits post reset processor configuration graphically Configuration saved read from a single ANSI C header file GUI to configuration bits of all peripheral module registers Possible conflict warnings Pin out view of processor I O pins Sample Applications Demonstrating usage of GCT processor peripheral modules and low level drivers User Manual Low level drivers amp tools guide Latest device User Manual INVESTICE DO ROZVOJE VZD L V N REATINERING sO bog Rhogtigqgs 3 Y D m fa m u mu ma EVROPSK UNIE kj i e CodeWarrior Integration Quick Start project stationery is installed directly into the CW Support for CW debugger M and Flash Programmer Po Non Be mae GCT invoked from CW IDE Other Tools MPC500 MPC5500 supports makefile based tools Diab Green Hills Laut

Download Pdf Manuals

image

Related Search

Related Contents

AN AN-H R22 - R407C  356 - neutralisant et destructeur d`odeur de tabac  家庭、技術・家庭科 - 教育ネットひむか  PNY KF780GTX3GEPB NVIDIA GeForce GTX 780 3GB graphics card  incinolet manual 2-04  HMP45C Capteur d`humidité relative et de température  D-Link DCS-7110/A surveillance camera  Cover Page Kratos Catelouge  notice explicative + aide  Benutzeranleitung Befestigung Teleskopschiene  

Copyright © All rights reserved.
Failed to retrieve file