Home
FreeMASTER Overview
Contents
1. E EEEN L Clear by write one interrupt request flags define DECCR DIRQ 0x0010 DIRQ bit constant ArchIO Decoder0 deccr register in the peripheral structure C language ArchIO Decoder0 deccr DECCR DIRQ 56F800E Assembler asm move w gt 16 0 00 180 DIRQ gets cleared OK XIRQ and HIRQ remain unchanged OK All other bits get reset Wrong W Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other A roduct or gt fr eescale service names are the property of their respective owners Freescale Semicon ductor Inc 2 31 semiconductor Low level Drivers Exercise Decoder Control Register DECCR e sc E s oe n LI EU Lael om ne N e gt Wite O pee ed efe L Clear by write one interrupt request flags define DECCR DIRQ 0x0010 DIRQ bit constant ArchIO Decoder0 deccr register in the peripheral structure C language ArchlIO DecoderO deccr DECCR DIRQ 56F800E Assembler asm bfset 0 10 0 00 180 DIRQ gets cleared OK Other register bits unchanged OK XIRQ or HIRQ gets reset if they read as 1 i e when interrupt request is pending ___ AAACN CM sw W 2 freescale semiconductor Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other roduct or service names are the property of th
2. psc Freescale and the en ademarks of Freescale ordu ee Inc All other product fi 5 I service name 1 E eis pe he espective own wies Dre Sem onductor Inc 2009 34 ree e SSS Low level Drivers Highlights gt Low level Drivers Highlights Full control over all processor resources Real world application develooment 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 W Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All bag roduct or gt fr eescale ser vice names are the property of their respective owners Freescale Semicon ndu ctor Inc 35 semiconductor Project Stationery Se Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or gt freescale service names are the property of their respective owners Freescale Semiconductor Inc 2009 36 semiconductor LST ET Project Stationery gt Quick_Start Project Stationery gt CodeWarrior concept of creating a new project e CodeWarrior clones the project template and creates a ready to use skeleton of a new application In Quick Start a dedicated project stationery exists for each processor and evaluation board EVB Processors differ in memory layout periphe
3. spit PITI TMRAi 1 5 1 1 1 sco PT2 TMRA2 2 sco 2 2 scii PWM TMRA3 scii PwM TMRA3 12 DACO 22 apc DACO Warnings Show wamings even for non included modules So Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or gt fr eesc a le is service names are the property of their respective owners Freescale Semiconductor Inc 2009 45 semiconductor Agenda gt Processor Exert Overview Processor Expert Demo W Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other proas or gt fr SC a le service names are the property of their respective owners Freescale Semiconductor Inc 200 46 semiconductor SSS What is Processor Expert A rapid application design tool with Graphical User Interface which allows an application to be specified by the functionality needed Automatic code generator which creates tested optimized C code tuned to the application needs and selected Freescale DSC Built in knowledgebase which immediately flags resource conflicts and incorrect settings Creating Hardware Abstraction Layer
4. Application Commands Luar Recorder Data HTML may host whole applications Ii for example Excel Excel Visual Basic macros may access FreeMASTER as well W 22 freescale semiconductor Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All 5 roduct or service names are the property of their respective owners Freescale Semicon ndu ctor Inc 12 TS i as a Graphical User Interface gt 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 trol Be giae Toh Be e Target in loop Simulation z E Matlab or Simulink engine T lets embedded application MATLAB to perform calculations 4 Math Wars ln Show License Fr eescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All 5 roduct or service names are the property of their respective owners Freescale Semicon inductor Inc W 2 freescale semiconductor GREED N As a Selling Tool 22 eo Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or gt fr eesc a le i service names are the property of their respective owner
5. Processor Expert Demo lt 2 fi I TM Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or r eesca e service names are the property of their respective owners Freescale Semiconductor Inc 2009 52 semiconductor Processor Expert LIVE DEMO gt TIMER LED CODE GENERATED FROM SCRATCH Stationery selected from Processor Expert repertoire Beans added for LED and TIMER LED Method dragged and dropped into TIMER EVENT e Code built and run Nt Freescale and the Freescale logo are trademarks of Freescale Sem Inc in 15 produc service nai f le mes are the property of their respective owners Freescale duc 2009 53 reescale SSS Q amp A gt Thank you for attending this presentation We ll now take a few moments for the audience s questions and then we ll begin the question and answer session Freescale and the d ademarks of Freescale mic ondu m Inc All other product oi 2 freescale service names are 1 E ne he espective owners Fre Sem onductor Inc 2009 54 gt freescale semiconductor
6. ademarks of Freescale Inc All other product 2 freescale service names 1 E ne he espective owners Fre Sem onductor Inc 2009 24 What is Quick Start gt Quick_Start Easy to use Software Development Environment gt Set of Low level Drivers for all Peripheral Modules e C language structures of peripheral memory space Unified way of accessing peripheral registers Highly 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 Interrupt tables or Interrupt Dispatcher Debugger initialization files gt Graphical Configuration Tool User friendly insight to processor configuration cont 4 Freescal h ademarks of Freescale Semiconductor Inc All other product or f servic ico Inc 2009 25 reesca e the ies 2 he espective owners OF eescale Semiconductor Inc 2009 BQ semiconductor gt Graphical Configuration Tool What is Quick Start Edits post reset processor configuration graphically 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 Freescale and the Freescale logo are t
7. names are the Wes 2 of the espective owners OFr eescale Semiconductor Ino 2009 1 1 1 42 J J semiconductor LLL P qas Graphical Configuration Tool Different Control Page for each Peripheral Module demo project appconfi File Edit View Module Help 8037 h 56F800 E Graphical Confi T ti W m Target 56 8037 SYS Clock 2 000 MHz C Package view IPBus Clo p 000 MHz GPIOAD 3 ip Clock Synthesis ee Power amp Ground M ee eon SPOS ewe Vesa GPIOAS FAULT M ran GPIOAS FAULT TA2 CINAT L Se ENTE TA 071 cmp aint Timer 2 r GPIOD4 M EAXTAL ee 2 CHAZ raur2 Ccmppini PIT_0 Periodic Interval Timer 0 GPIO D5 M CLKIN GPIODS XTAL CLKIN PIA TES CINE2 PIO A10 Timer B2 icmp Ain2 PIT 1 Periodic Interval Timer 1 _ T GPIOA12 SCLK1 TB1 TA1 gt GPIO 11 TimerB3 cMPBIm2 PIT 2 Periodic Interval Timer 2 eer RESET GPIOA7 eee NA pas Ma E Tier 2 RESET EMT GPIO General Purpose Ports SPOMM MOSI TESTA 14 Timerg3 Masra GPIO A General Purpose I O Por GPIo B0 v GPIOBD SCLKO SCL I GPIO_B General Purpose I O Por GPloB V 5 0 e GPIOB1 550
8. Oscillator Clock on GPIDA3 SYS System Support Control INTC Interrupt Controler QT Quad Timer QT A Quad Timer QT B Quad Timer B EI PIT Periodic Interval Timer PIT 0 Periodic Interval Timer PIT 1 Periodic Interval Timer PIT 2 Periodic Interval Timer GPIO General Purpose I O Ports GPIO_A General Purpose I O GPIO_B General Purpose GPIO C GeneralPurpose intemal Peripheral Source Select IPS DAC and Timer Internal Peripheral Source Select IPS GPIO D General Purpose I O PWM Pulse Width Modulator PSRCO Sample result HLMT LLMT 7 Timer 1 7 CMP Analog Comparator PSCStinputpin z CMP A Analog Comparator PSRCI PSCS1 input pin licae Tener Ae CMP_B Analog Comparator PSRC2 5 52 input pin 7 Timer Timer A3 pin 7 ADC Analog to Digital Converter DAC Digital to Analog Converter FAULTI reu input pin E geras er 0 output DAC 0 Digital to Analog Cons FAULT2 FauLT2 input pin DACI SYNC output isl a _ GPIO pins be also D Warning detail configured here Module PIT 0 is configured for use but its peripheral clock is disabled in STOP Mode SD 5 0 pira 0 BO 5 0
9. SOA GPIO B8 MSCAN TX GPIO C General Purpose Por GPIO B2 M Timer A2 2221089 SOA CANRX GPIO B9 MSCAN RX GPIO D General Purpose I O Por Timer o 1500 PSRCO gt 10812 80 COUTA 10 0 CMP Output T v i PWM Pulse Width Modulator 9 GPIOB11 TBI COUTB IV GPIOBI1 Timer B1 CMP B Output CMP Analog Comparator GPIOB12 CANTX 2 ab lig A Analog Comparator GPIO B4 PSRC2 GPIOB4 551 T50 GPIOB13 CANRX s PI aM Analog Comparator 2 E mE T Janeto HAGE ADC Analog to Digital Converter e aspi1 551 NEN GPIOCD ANAQ CINA3 Manat DAC Digital to Analog Converter GPIO B7 Timer AOL GPIOB6 RXDO SDA CLKIN ANA IV 2 2 V REFH DAC 0 Digital to Analog Convert Timer BO GPIOBT SCL Rena cpio C3 ANA 31V REFL DAC 1 Digital to Analog Convert asci o Timer A1 gt moa ee GPIO ce ANA 4 lasci E QSCI Queued Serial Communication I GPIO 06 M DACO GPIO06 7 DACO 4 ANA TAI GPIO 5 3 SCL 0 QueuedSerialCommunial GPloD7zIV DAc1 L SET unes LIANA 6 SCI_1 Queued Serial Communical GPIO C11 ANA 7 E QSP mal Serial Peripheral Inter CLKOUT B4 1 TDI 221000 r
10. semiconductor Internal Application Structure gt Internet Explorer Running Separately no difference FreeMASTER Executable Internet Explorer running separately Activex Interface HTML page JScript or VBScript Out of process calls exe to exe In process calls Commu nicati on D LL It makes no difference if the IE is running inside or outside the FreeMASTER application window ug From the data exchange point of view this is still out of process slow exe to exe procedure calls In process calls The same approach like here can be used with RS232 Custom other scriptable applications like Excel PERL or Plug in DLL even compiled applications written in C C VB or even the new NET languages see next slide Custom connection CAN BDM JTAG Still the FreeMASTER needs to have a valid project open by the user Target Board Target Board Se Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or 222 freesca le service names are the property of their respective owners Freescale Semiconductor Inc 2009 20 semiconductor Internal Application Structure Excel or other application accessing FM ActiveX FreeMASTER Executable Microsoft Excel Activex Out of process calls exe to exe In process calls Communication DLL Excel uses the same ActiveX interface like IE HTM
11. use numeric memory addresses and sizes when accessing the board see FM protocol for more details phy iface Target Board Target Board e a So f I TM Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or r eesca e service names are the property of their respective owners Freescale Semiconductor Inc 2009 22 semiconductor Internal Application Structure Other Ways to Access Target Microprocessor C Custom NET based application FreeMASTER Executable C VB NET Interface In process NET calls In process calls FMCOMM NET DLL Communication DLL For NET applications we provide the FACOMM l DLL which is a NET compatible wrapper around elis plain old C functions in Communication DLL RS232 Custom The FMCOMM was not yet released It is still in Plug in DLL prototype phase and does not provide all the functionality as the Communication DLL yet Custom connection CAN BDM JTAG Target Board Target Board 2 Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or 2 free SC a le TM service names are the property of their respective owners Freescale Semiconductor Inc 2009 23 semiconductor Agenda gt gt Quick Start Overview Processor Exert Overview Processor Expert Demo 2 the h
12. CCS Configuration Core frequency 32 MHz UCO frequency 192 MHz Loss of lock interrupt 8 Disable Loss of lock interrupt 1 Disable Loss of reference clock Interrupt Disable COP operation Disable COP timeout 8 19188 ms COP Runs in Stop Mode Disable COP Runs in Wait Mode Disable COP Write Protect Disable Enable Loss of Clock COP Disable ftdefine OCCS_CTRL_INIT 6x 6682U itdefine OCCS_DIVBY_INIT 6x2 666U ftdefine OCCS_USE_FACTORY_TRIM 1 itdefine COP_COPCTL_INIT 6x 800801 Se Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or gt freescale service names are the property of their respective owners Freescale Semiconductor Inc 2009 41 semiconductor Graphical Configuration Tool appconfig h gt 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 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 4 Freescale dd the Fre h ademarks of Freescale le Semiconductor Inc All other product or 42 freescale servic Inc
13. ESzlasa Graphical User Interface Using FreeMASTER as a Graphical Control Panel Variable Watch pane enables direct setting of the variable value Sending Application Commands from the application GUI e Time table stimulation of the variable value F Hawk_C1 pmp FreeMaster e HTML Pages and Forms mm seul JScript or VBScript Push buttons MFR4200 FlexRay Transmission raison Bat size 0000 Images indicators Sounds videos Sliders gauges and other 3rd party ActiveX controls n FlexRay Transmit Receive Demo 22 2 freescale Run in Loop Compare to Virtual CAN Channel FlexRay Channel Status lep 504 Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or gt freescale service names are the property of their respective owners Freescale Semiconductor Inc 2009 11 semiconductor S P RE Szlas a Graphical User Interface Scripting in FreeMASTER e HTML pages are displayed directly in the FreeMASTER window HTML may contain scripts and ActiveX objects FreeMASTER itself implements sini esi 14 1 Single Phase On Line UPS Demo with MC an invisible ActiveX object Script accesses the FreeMASTER sot x functionality through this object im Variable access E Stimulator access MN
14. FREEMASTEHR W Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other roduct or gt fr eescale service names are the property of their respective owners Freescale Semicon ductor Inc 2 16 semiconductor iR Inside FreeMASTER Application 2 OT f I Ti Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or 17 r ee SC a e service names are the property of their respective owners Freescale Semiconductor Inc 2009 semiconductor EEE Internal Application Structure Basic FreeMASTER Communication Diagram FreeMASTER Executable So called in process calls are the simple calls to functions located in dynamically loaded libraries DLLs The calls are fast just like if the function would be located inside the executable itself Activex Interface In process calls FreeMASTER enables to use custom plug in modules to implement the communication layer Communication DLL We deliver few plug ins in the standard FreeMASTER distribution CAN BDM and other connections are possible not always fully featured For example BDM only allows memory reads and writes not the recorder or TSA feature In process calls Custom iege Plug in DLL FreeMASTER plug ins use Microsoft COM ActiveX procedure call standard Typically the fast in proc
15. Freescale Technology Forum Collaboration Innovation Inspiration Se July 2009 Getting Started With DSCs John L Winters Senior Application Engineer Freescale and th Freescale logo are trademarks of Freescale Semiconductor Inc All other product or service names are the property of their respective owners Freescal le Semiconductor Inc 2009 freescale semiconductor Agenda gt FreeMASTER Overview gt Quick Start Overview Processor Exert Overview Processor Expert Demo f I 2 h ademarks of Fre 2 5 Inc All other product service names are the E ne he espective owners le Semi ondu ictor Inc 2009 2 Agenda FreeMASTER Overview Quick Start Overview Processor Exert Overview Processor Expert Demo f I 2 h ademarks of Fre 2 5 Inc All other product service names are the E ne he espective owners le Semi ondu ictor Inc 2009 3 d OE E CA E NM Whatis BREEN A gt Real time Monitor FOR YOUR gt Graphical Control Panel EMBEDDED Demonstration Platform amp APPLICATION Selling Tool Pei Tus MA Sas 2 17 19 gv anos Saa 4 12 E iv MPC55xx K
16. HAL hardware dependent low level drivers with a known application programming interface API Benefits Eases migration between Freescale devices Designers don t have to be intimately familiar with every page of a specification Errors are caught early in design cycle therefore designers get to market faster with higher quality product d Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or gt fr eesca le is service names are the property of their respective owners Freescale Semiconductor Inc 2009 47 semiconductor a CodeWarrior Processor Expert Support Processor Expert is integrated into the CodeWarrior tool suite with support for gt CodeWarrior Development Studio for 56800e Digital Signal Controllers DSC 06800 5680x 5682x 5685x 56800e 56801x 56802x 56803x 5681xx 5683xx Se Ae 5 cale logo radem vil Noida cale Inc Pep ther produc gt freescale 48 semiconductor party of thei E Sem pue Inc 2009 EEUU What is an Embedded Bean Embedded Beans are software components which encapsulate the initialization and functionality of an embedded system s basic elements e CPU core e CPU on chip peripherals Stand alone peripherals Virtual devices Pure software algorithms Embedded Beans provide a hardware abstraction layer HAL which eases migration bet
17. L JScript as shown on previous slide In process calls Custom Sede Plug in DLL Custom connection CAN JTAG MATLAB NOTE Ire latest Matlab versions probably support the KctiveX calls and event callbacks fully so it can access the FreeMASTER on its own We have not yet tried that approach yet Our pcmatxi experimental project brought the ActiveX calls and event call backs features to old Matlab version V5 R12 Target Board Target Board 2 Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or 2 free SC a le TM service names are the property of their respective owners Freescale Semiconductor Inc 2009 21 semiconductor Internal Application Structure Other Ways to Access Target Microprocessor C C FreeMASTER Executable a Custom Windows based C or C In process call application capable of direct DLL calls Communication DLL Any Windows based application which is capable of direct C like calls into the DLL may reuse the communication DLL to make use of the FreeMASTER protocol In process calls Custom Plug in DLL RS232 The DLL exports calls like OpenPort ClosePort ReadMemory WriteMemory SetupRecorder Custom connection CAN JTAG As FreeMASTER is out of the game here the term variable makes no more sense in this scenario Users application needs to
18. S Clock 32 000 MHz Wait disable OnCE clock to processor 3x System Clock on GPIOAO SIM CONROL 0 0000 IPBus Clock 32 000 MHz war enabled gt Enabled when core TAP enabled 7 2x System Clock on GPIDA1 SIM CLKOSR 0 0020 B in i System Cllock on GPIDA2 T PINOUT Package and Pin Out Inform Stop disable CLKOUT made System Clock on LVI CONTROL 0x0000 OCCS On Chip Clock Synthesis stop enabled gt ott 0 z Oscillator Clock on GPIOA3 3 SIM GPSAQ 100000 5 5 System Support Control CLKOUT Selection GPIO pins can be also INTC Interrupt Controler configured here SIM_GPSA1 rT EME QT Quad Timer System Clock 7 QT_A Quad Timer SIM_GPSBO 0 0000 QT B Quad Timer B p Peripheral Clock Enable Modules Enabled in STOP Mode 8D gt SIM_GPSB1 TT EHI PIT Periodic Interval Timer spio TMRAO TMRBO sPi TMRAO SIM GPSCD po PITO Periodic Interval Timer 0 spit PITI TMRA P1 TMRA TZ PIT_1 Periodic Interval Timer 1 scig M Pitz TMRA2 TMRB2 500 PiT2 TMRA2 TMR B2 Sl Eres mE L7 PIT2 Periodic Interval Timer 2 sci TMRA3 TMRB3 scii PwM TMRA3 TMRB3 SIM PCEO 0000 GIO General Purpose 1 0 Ports mic Pape M DACO Pic Pape DACO i onm GPIO A General Pu
19. Semiconductor Inc All other product or gt freescale service names are the property of their respective owners Freescale Semiconductor Inc 2009 40 semiconductor Graphical Configuration Tool appconfig h gt Configuration File Example f Lister C Program Files Freescale DSP56800E_Quick_Start r2 4 sample_applications MC56F8006CB freemaster_ demo Appice Soubor Editace Mo nosti N pov da 22 al ifndef APPCONFIG_H ftdefine m 3 3 3 3 3 3 3 3 3 3 3 3 3 File generated by Graphical Configuration Tool 19 Jan 2889 17 46 29 3 3 3 3 3 3 3 3 3 define 56 8006 define 800000801 ftdefine APPCFG_DFLTS_OMITTED 1 itdefine APPCFG_GCT_VERSION 6x626046662L
20. Timer clock sourced from HS PERF 3x System Clock Registers not protected 7 SPI 0 Serial Peripheral Interface PWM clock sourced from HS PERF 3x System Clock T SPL 1 SerialPeripheral Interface IC clock sourced from HS PERF 3x System Clock IC Inter Integrated Circuit Interface Registers not protected MSCAN Motorola Scallable CAN Modu Interrupts FMSTR FreeMaster Software Driver ISR Name Priority Unrecognized Definitions E m mS AN Disabled z IPS registers and all periph pins configuration d Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or gt fr eesc a le is service names are the property of their respective owners Freescale Semiconductor Inc 2009 44 semiconductor LLL TT TTI Graphical Configuration Tool gt Configuration Conflict Warnings demo project appconfig 8037 h 56F800 E Graphical Configuration Tool File Edit view Module Help EE e t maa Target MC56F8037 General Settings Clock on GPIO Peripheral Pins SYS Clock 32 000 MHz Wait disable OnCE clock to processor core 3x System Clock on GPIDAO IPBus Clock 32 000 MHz wai enabled Enabled when core TAP enabled 2x System Clock on GPIOAI PINOUT Package and Pin Out Infoa CLKOUT mode System Cllock on GPIDA2 OCCS On Chip Clock Synthesis
21. apture regs Minimal FLASH size 508 Oto 40 2 25 to 41 66 kHz 40 to 125 C 3 8 89 20 4 HCSO8 Oto 40 MHz 25 to 41 66 kHz 40 to 125 C 3714 3 6 2004 508 0to40MHz 25 to 41 66 kHz 40 to 125 C 3716 8 6 20 4 Operating temperature Minimal number of A D channels Minimal OTP size MS lt 2 E Ses r ES 9508564 M Freescale 508 Oto 40 MHz 2510 41 66 kHz 40 to 125 C 3712 8 16 2004 MCSSOBEL32NTJ Freescale 508 Oto 40MHz 25 to 41 66 kHz 40 to 105 C 3 22 18 5 24 6 Power supply V Minimal number of serial channels 4 Minimal number of CAN channels Fal X Cancel Help Note Memory sizes are in minimal addressable units bytes words Watchdog required Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or service names are the property of their respective owners Freescale Semiconductor Inc 2009 MCSS BEL32MTJ MCSS BEL1B8VTJ MCSS SEL18MTJ MCSS BEL32VTL MCSS BEL32MTL MCSS BELTBVTL MC9SO8EL16MTL Freescale MCESHCI08QC16VDRE Freescale 08 6MDRE Freescale 080 I Freescale Freescale Freescale Freescale Freescale Freescale Freescale 508 0 to 40 MHz 508 0 to 40 MHz 508 0 to 40 MHz 508 0 to 40 MHz 508 0 to 40 MHz 508 0 to 40 MHz 508 0 to 40 MHz HCO8 Oto 32 MHz HCO8 0 to 32 MHz 08 Oto 32 MHz 50 25 to 41 66 kHz 25 to 41 66
22. e while still being optimally compiled Decoder Control Register DECCR Guess 15 EM ERES sed DM HE e e pee L Clear by write one interrupt request flags Exercise Suppose you want to clear DIRQ bit only while not modifying the rest of the register Also you must not clear the HIRQ and XIRQ bits What C or assembly statement will you use on 56F800E solution on the next slide W Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All bag roduct or gt fr eescale service names the property of their respective owners Freescale Semicon ndu ctor Inc 29 semiconductor Decoder Control sins DECCR Lee ERI REIR SCIL NC NC IC CABILA Lm d 55 mene we VT EE ee ee L Clear by write one interrupt request flags define DECCR DIRQ 0x0010 DIRQ bit constant ArchIO Decoder0 deccr register in the peripheral structure DIRQ gets cleared OK XIRQ and HIRQ remain unchanged OK All other bits get reset Wrong W Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other e or gt fr SC a le service names are the property of their respective owners Freescale Semiconductor Inc 200 30 semiconductor Decoder Control Register DECCR s sc e CHILE ELI ER We
23. eir respective owners Freescale Semicon ductor Inc 2 32 Low level Drivers Exercise Decoder Control Register DECCR EIL IE 4 EET IECUR ER RR RC E m re e para oe Wite ___ axEEREER L Clear by write one interrupt request flags define DECCR DIRQ 0x0010 DIRQ bit constant define DECCR HIRQ 0x8000 bit constant define DECCR XIRQ Ox0100 X RQ bit constant ArchIO Decoder0 deccr register in the peripheral structure C language ArchlO DecoderO deccr amp DECCR DIRQ amp DECCR HIRQ DECCR XIRQ 56F800E Assembler asm bfclr 0x8100 X 0x00f180 psc Freescale and the h ademarks of Freescale Inc All other product 2 5 I service names are M E eis pe he espective owners Fre Sem onductor Inc 2009 33 ree e Low level Drivers Exercise Decoder Control Register DECCR t c EIL a ES IECUR RR dona REIHE m re e para oe Write __ is 2214 L Clear by write one interrupt request flags define DECCR DIRQ 0x0010 DIRQ bit constant define DECCR HIRQ 0x8000 bit constant define DECCR XIRQ Ox0100 XIRQ bit constant ArchIO Decoder0 deccr register in the peripheral structure C language ArchlO DecoderO0 deccr amp DECCR DIRQ amp DECCR HIRQ DECCR XIRQ 56F800E Assembler asm bfclr 0x8100 X 0x00f180
24. ess plug in DLLs are made Custom connection CAN JTAG Target Board Target Board e te os Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or freescale service names are the property of their respective owners Freescale Semiconductor Inc 2009 18 acd semiconductor Internal Application Structure gt Free MASTER Communication with HTML JScript Pages Internet Explorer running embedded in FM Activex Interface HTML page JScript or VBScript Out of process calls exe to exe FreeMASTER Executable In process calls Communication DLL Out of process calls are also based on Microsoft ActiveX COM technology Due to system overhead exe sending messages In process calls to other exe the out of process calls are quite slow Typically up to 200 calls per seconds can Custom Plug in DLL only be achieved RS232 FreeMASTER Activex interface exports methods Custom connection like ReadVariable WriteVariable this means CAN BDM JTAG the user first needs to load a valid FreeMASTER d f EN projectto define variable context Target Board Target Board Sy 2 Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product 2 freesca le service names are the property of their respective owners Freescale Semiconductor Inc 2009 19
25. isa ag ANBO CMP BIn3 4 Alternate CLKIN B5 GPIOCS ANB1 SPI 0 Serial Peripheral Interface Primary CLKIN B6 TDO 221001 4 GPIO C5 ANB 1 SPI 1 Serial Peripheral Interface Tex GPI002 EE TS Mpiocs 2 Inter Integrated Circuit InterFace JTAG EOnCE Port VREFL ANB 3 V_REFL MSCAN Motorola Scallable CAN Modu GPIO 00 3 GPIDCI2 FII GPIO C12 ANB 4 FMSTR FreeMaster Software Driver Bed We GPIO 5 Unrecognized Definitions GPIO C14 ANB 6 GPIO C15 ANB Shared Pins Status Icons configured for module use click to fix red pins are configured for module use click to fix pins are configured for module use shared All pins are hardwired to the module Peripheral Modules Tree 4 Z freescale semiconductor Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or Service names are the property of their respective owners Freescale Semiconductor Inc 2009 43 LLL TTT TIT Graphical Configuration Tool Direct Register Value View two way editing demo project appconfig 8037 h 56F800 E Graphical Configuration Tool jol Edit View Module Help Target MC56F8037 General Settings Clock Peripheral Pins SY
26. kHz 25 to 41 66 kHz 25 to 41 66 kHz 25 to 41 66 kHz 25 to 41 66 kHz 25 to 41 66 kHz 3 to 32 MHz 3 to 32 MHz 3 to 32 MHz 40 to 126 C 40 to 105 C 40 to 125 C 40 to 105 C 40 to 125 C 40 to 105 C 40 to 125 C 40 to 105 C 40 to 125 C 40 to 105 C 3 22 16 3 22 16 3 22 16 3 16 12 3 15 12 3 15 12 3 16 12 4 26 6 4 26 6 4 26 6 5 24 6 5 24 6 5 24 6 5 2476 5 24 6 5 24 6 5 24 6 5 24 6 5 24 6 5 24 freescale semiconductor UU Silicon Evaluation You can use Target CPU Target CPU Cpu MCF51QE128LQFP64 Joe Window to evaluate silicon Displays selected target microcontroller with its peripherals and pins Displays current resource usage by selected beans i e peripherals pins Data directions of single pins are indicated by blue arrows when configured by a bean Pins associated with a peripheral are highlighted when MOUSE hovers over a peripheral 56 PTG2_ADP18 PTG2_ADP18 General purpose IO Port bit 2 2 Help is available for pins and peripherals by moving the mouse over the item Freescale and he Freescale ae of Freescale Semiconductor no Al er product or gt 2 freescale m service names are the property of their respective owners Freescale Semicon ductor Inc 51 semiconductor amp ba E iu m Ne Agenda gt
27. lude intc h include iic h include gpio h include pwm h include freemaster h e rl d main void oouomoomz the device pins first S INIT NULL GPIO INIT NULL s GPIO INIT NULL NULL A E put your code here wi while 1 Q3 4 zi 2 freescale semiconductor Low level Drivers gt Quick Start Low level Drivers Full control over and full access to all processor resources Unifies access to peripheral memory space ioct1 call Registers are not accessed directly although this is still possible ioctlcalls are optimally compiled macros or functions ioctl SCI 0 SCI SET BAUDRATE SCI BAUD 9600 Module m Command to u Command identifier perform Parameter D ioctl SCI 0 SCI_SET_BAUDRA eP 000000E5 8654F0B000D0 000000 8 E708 rts W Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All 5 roduct or gt fr eescale service names are the property of their respective owners Freescale Semicon ndu ctor Inc 28 semiconductor Um Low level Drivers Why not to use direct access to peripheral registers e Most of ioctl calls are macroized to direct register access anyway either read write or bit set bit clear instructions used e Some registers do need special attention ioctl usage brings kind of abstraction and transparency to an application cod
28. nc All other product or gt freescale service names are the property of their respective owners Freescale Semiconductor Inc 2009 39 semiconductor Graphical Configuration Tool gt 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 v Debug appconfig h 000 1 Gra Be 6 yew Mode Gazer tiie ae OCCS Irena Coch ordo Uses gt Trimming 512 Load woth factory wake vereor ne CT onca E me Edt Wem Search mt ivoganmer Winder Boe KODA Sa EDD Ctri F10 invoked GCT bequency Pretcoler th fi h opens the appconfig Mach aae _ for a current project wa a OCCS Interrupts Loss of lock 0 cornet GA Name paste Disabled of lock 1 Loss of reference timer penod z D BP ox px E Lows of selesence dock Inkemagi enable z COP Watchdog X serene odre COP anin Wot Mode Metrowerks CodeWarrior DE appconfig h file Graphical Configuration Tool include appconfig h L 221 Read amp Write access to appconfig h defines used to initialize peripherals Se Freescale and the Freescale logo are trademarks of Freescale
29. nock Algorithm Demo freescale B i m At 1 2 3 Bowes Bg 1 un ee t a E wm im 4 9 pe 8 FR Opus Sereda FA Coral Speen m Cathe Enso u f A A recte recti H A 2 i i V t s i m 4 a ay x um a x s s 5 ADC fm Usage riega pal bal CPU Lond S nomen Bertman Tre 4 m 2 4 F st ne oomen maang e 44 s 2 7 Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or 2 freescale service names are the property of their respective owners Freescale Semiconductor Inc 2009 4 semiconductor GREED Nes As a Real time Monitor 22 eo Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or gt fr eesc a le service names are the property of their respective owners Freescale Semiconductor Inc 2009 5 semiconductor BREEN N 1 1 as a Real time Monitor gt Connects to an embedded application e Natively by SCI UART e JTAG EOnCE 56F8xxx only HCS08 HCS12 only e CAN Calibration Protocol custom CAN protocol Ethernet TCP IP Any of the above remotely over the network Enables access to a
30. pplication memory e Parses ELF application executable file e Parses DWARF debugging information in the ELF file Knows addresses of global and static C variables Knows variable sizes structure types array dimensions etc 4 Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or pe fr eesc a le TH service names are the property of their respective owners Freescale Semiconductor Inc 2009 6 semiconductor zi F2EELD N s0 as a Real time Monitor Displays the variable values in a range of formats Text tabular grid Variable name Value as hex dec or bin number Min max values Number to text labels Heal time waveforms Up to 8 variables simultaneously in an oscilloscope like graph High speed recorded data 7 Up to 8 variables in on board memory transient recorder Variable Watch Se Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or gt freescale service names are the property of their respective owners Freescale Semiconductor Inc 2009 7 semiconductor _ es zr EBELDXPEURESZIas a Real time Monitor Additional features Variable transformations Variable value can be transformed to the custom unit Variable transformations may reference other variable values Values are transformed back when writing a new value to the variable Applica
31. rademarks of Freescale Semiconductor Inc All other e or Service names are the property of their respective owners Freescale Semiconductor Inc 200 Configuration saved read from a single ANSI C header file GUI to configuration bits of all peripheral module registers 4 test projects appco hi fe Cdt View Module 216 911 178 Tuget XL Bus 1 CAN modde enable One sone per bt Mole pans now erustiind by GPIO pin pod Com C 200 stope in wai mode C Three sameler pera Pulli on PSC2 CAN1 2 IP Bus WokeUp enable x Loopback mode tow pass les eratio Literroriy mode Time Staro courier enable Acceptance fiters t t Mode Wscceptance 00 0 Mack biel dontcae IO make wo 0050 match i 9 Uni Sei 232383 cock oa cock 64545 2 D 21 parameters Smc SEG 77 E smh Baudiate 10018 ad T5602 9 Prescaler Drom Liser 15462 sw I 2 3 4 zl emet Sorcer Suae rient moe F irie FR Never ha 2 Bs freescale semiconductor gt CodeWarrior Integration Quick Start Environment e Quick Start project stationery is installed directly into the CW Support for CW debugger and Flash Programmer GCT invoked from CW IDE gt Other Tools e MPC500 MPC5500 support
32. ral modules etc Select project stationery MC56F8013 MC56F8322 MC56F8323 Fora given processor more than one EVB may exist differing in how the processor is connected H MC56F8346CB with external components S Msrai p amp sation Standalone C_application H MC56F8347 2 2 Freescale and the Freescale logo trademarks of Freescale Semiconductor Inc All 5 roduct or gt fr eescale 5 names are the property of their respective owners Freescale Semicon ndu ctor Inc 37 semiconductor LLL Project Stationery gt 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 4 Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or pe fr eesc a le TH service names are the property of their respective owners Freescale Semiconductor Inc 2009 38 semiconductor Configuration Se Freescale and the Freescale logo are trademarks of Freescale Semiconductor I
33. rpose I O Por CMPB pact tMPB paci SIM PCET 050000 GPIO General Purpose I O Por SIM PROT 0x0000 GPIO C General Purpose I O Por Es GPIO D General Purpose 1 0 Por PWM Internal Peripheral Source Select IPS r DAC and Timer Internal Peripheral Source Select IPS SIM_SDO poo PWM Pulse Width Modulator PSRCO Sample 0 result HLMT LLMT v Timer A1 Timer 1 pin z SIM_SD1 0 0000 CMP Analog Comparator PSCS input pin 1 _ Analog Comparator pia Timer A2 Timer 42 pin SIM IPSO 100002 Analog Comparator PSRC2 ADE Sample D result LM TALUMTI Timer pin SIM_IPS1 10 0000 ADC Analog to Digital Converter Comparator A output BLIGE DAC Digital to Analog Converter FAULT1 Comparator B output fitered DACO SYNC 0 output ii T DAC_0 Digital to Analog Convert FAULTZ FAULT2 input pin gt DACI SYNC PIT 0 output DAC 1 Digital to Analog Convert QSCI Queued Serial Communication I 8 SCL 0 Queued Serial Communical Peripheral Clock Select PCR the System Configuration SCIL 1 Queued Serial Communical Timer clock sourced from HS PERF 3x System Clock PCE SD and PCR registers protection EMT QSPI Queued Serial Peripheral InterF
34. s Freescale Semiconductor Inc 2009 14 semiconductor a SE PT ay a aaa PREEN Hl as a Selling Tool FreeMASTER helps Freescale marketers to sell our work FreeMASTER project can visualize any detail of how the embedded application works F Project FreeMaster fie 1 Yew Explorer Project Tools 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 You can siso order and purchase your development touts drectly from the Freescale Semiconductor ste through our Onine Semple Program allows you to order samples from our Web a FreeMASTER environment FreeMASTER helps Freescale E customers to sell their work _ d Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or gt fr eesc a le is service names are the property of their respective owners Freescale Semiconductor Inc 2009 15 semiconductor BREEN P RE H as Selling Tool 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
35. s makefile based tools Diab Green Hills Lauterbach Debugger Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or service names are the property of their respective owners Freescale Semiconductor Inc 2009 Metrowerks CodeWarrior main c Ol x1 ile Edit View Search Project Debug ProcessorExpert Data Visualization Window Help 2 181 x BHesBouoxhRQawewaSeR ERD el 0 df Path V AEMBSW EMBSW 102 stationery DSP56800E_Quick_Start MC56F80 main c application mcp SDM_pFlash B y Files Link Order Targets Freescale Semiconductor Inc xl c Copyright 2004 2005 Freescale semiconductor Inc c Copyright 2001 2004 Motorola Inc ALL RIGHTS RESERVED FELL EE EEE EEE E EEE E EEE ELLE EERE EEE ELE LEST EE EEE SEER E E TET PEE RR EEE HE ApplicationConfig Bl sppconfig h SystemConfig B startup c vectors c appconfig c inkerFiles SDM_pFlash cmd m C3 lib Drivers Peripherals amp C3 sci HE spi E Ex Support FreeMASTER Description Main application file generated automatically from the 05 56800 Quick start stationery File Name main h Target 56 8013 device EERIE EEE HOO YU HU He e eee include qs h I x include occs h include 5 5 inc
36. tion 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 the PC e Ability to protect memory regions Describing variables visible to FreeMASTER Declaring variables as read write to read only for FreeMASTER Access is guarded by the embedded side driver e 9 Freescale ar Freescale a ademarks E cale nd Inc All ei oduct 2 freescale service nam 2 espective Fre Semiconductor Inc 8 _ es 8 73 1 as a Real time Monitor gt Highlights FreeMASTER helps developers to debug or tune their applications Replaces debugger in situations when the processor core can not be simply stopped i e motor control Recorder may be used to visualize transitions in near 10 us resolution W 2 freescale Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All bag roduct or 2 semiconductor ervice names are the property of their respective owners Freescale Semicon inductor Inc 9 zi EEL PER Sz As a GUI for your Embedded Application 9 C4 Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or 10 gt freescale service names are the property of their respective owners Freescale Semiconductor Inc 2009 semiconductor P ChR
37. ween devices Freescale eats Freescale ademarks of Freescale Sorico o Inc All other r pro oduct o 2 freescale service nami espective own mere D Frecscae Semiconductor Inc 49 EE Silicon Selection You can access the knowledgebase in Processor Expert to find Freescale silicon that will meet your application needs Select CPU Parameters Overview in the Processor Expert View menu CPU Parameters Overview CPUs 64 of 889 E 5 x m mue s __ _ tan e e T tavo ial MCSSOBSLIEVTI 508 01040 2510 41 66 kHz 4010 105 C 28 3 22 16 5 18 4 Freducer MCSSOSSLIEMT Freescale 508 Oto 40 MHz 2510 41 66 kHz 40 to 125 C 3 22 18 518 4 reescale 2 2 to 30 MCSSOSSLBVTJ Freescale 508 Oto 40MHz 25 to 41 66 kHz 40 to 105 C 3 22 18 518 4 Family Minimal number of 10 ports Minimal ROM size MCSSO8SLEMTI Freescale 508 Oto 40 MHz 25 to 41 66 kHz 40 to 125 C 3 22 18 518 4 all 2 MCSSOSSLIEVTL Freescale HCS08 Oto 40MHz 25 to 41 66 kHz 40 to 105 C 3 8 12 5 18 4 NUM C MCSSOBSLIEMTL Freescale 508 01040 25 to 41 66 kHz 40 to 125 C 3 8 12 518 4 z MCSSOSSLEMTL Freescale 508 to 40MHz 25 to 41 66 kHz 40 to 105 C 3 18 12 518 4 e 508 Oto 40 MHz 25 to 41 66 kHz 40 to 125 C 3 6 12 5 1874 Dual clock kHz Min num of compare c
Download Pdf Manuals
Related Search
Related Contents
Garmin 10V Installation Instructions Perspectives offertes par la communication entre un modèle Freespirit 303130 Single Pages CFr.qxd Istruzioni per l`uso Vol.1 Oregon Scientific RMR329P User's Manual Copyright © All rights reserved.
Failed to retrieve file