Introduction
Total Page:16
File Type:pdf, Size:1020Kb
Introduction Purpose • This course highlights the compatibility between the S08, 8-bit S08 QE, 32-bit 32- bit V1 QE, and Coldfire V2 microcontrollers and reviews the strengths and applications of the 8bit and 32-bit processors. Objectives • Understand the benefits of software, peripheral, and pin compatibility. • Explain the compatibility between the S08, 8-bit S08 QE, 32-bit 32-bit V1 QE, and Coldfire V2 microcontrollers • Understand the progression up and down the microcontroller family. Content • 38 pages • 4 questions Learning Time • 60 minutes Welcome to the “QE128 Unprecedented Compatibility” course, one of an exciting series of courses offered by Freescale. This courses describes how Freescale has achieved unprecedented compatibility with its processor designs. This course highlights the compatibility between the S08, 8-bit S08 QE, 32-bit V1 QE, and Coldfire V2 microcontrollers and reviews the strengths and applications of the 8bit and 32-bit processors. 1 Microcontroller Family V2 32-bit V1 QE 8 bit QE S08 This course will highlight the compatibility between the S08, 8 bit QE, 32 bit QE and Coldfire V2 devices and the progression up and down the device family. The course will then conclude with a review of the strengths and applications for both the 8bit and 32-bit processors. 2 Compatibility We hate getting stuck! • Right solution? • Enough features? • Adequate performance? ►Freescale designers developed the revolutionary QE128 incorporating a few key fundamentals • Unprecedented compatibility between 8-bit and 32-bit • Ultra-low power • Ease of use ►By offering pin, peripheral and tool compatibility, the QE microcontrollers make migration between 8- and 32-bit as easy as swapping a chip 3 Everybody hates to get stuck. When you're designing a processor, you don't want to ask yourself: Did I pick the right solution? Do I have enough features? Do I have enough performance? Do I have enough horsepower to get the job done? This is why we've introduced the Flexis series of the QE128 microcontroller duo. The Flexis series offer unprecedented compatibility between an 8bit and 32-bit microcontrollers. We've improved ultra-low power performance of the microcontrollers, which makes these microcontrollers extremely easy to use and easy to migrate between the two. Part of that migration is offering pin, peripheral, and tool compatibility at an unprecedented level between 8 and 32 bit microcontrollers. 3 Pin Compatibility Pin compatibility— it’s more then just a pretty picture ►Flexis QE128 processors are pin-for-pin compatible ►QE128 EVB and Demo boards support both 8-bit and 32-bit QE128 family controllers so it makes changing them as easy as swapping a chip ►What’s in it for you? • One board design can support a series of products • Spend your development time writing new features not rewriting code for a new controller 4 The Flexis QE microcontrollers are pin-for-pin compatible. The Demo boards and EVB boards support both 8-bit and 32-bit QE128 family controllers, which makes it easy for these microcontrollers to use the same hardware. Swapping between the two chips is just a matter of pulling one part out and replacing it with the other. One of the benefits is that one board design supports a series of products. This means you can have a single board with single pin out. You can swap processors to reduce power consumption, reduce system cost, or improve performance and add features to your application. Also, with this level of compatibility, you spend your time developing new features instead of rewriting code for a new controller. This increases the amount of time you have available for improving the performance. 4 Tool Compatibility We didn’t stop at pin compatibility We’ve converged what is traditionally different • Same Debug interface—one software tool and one BDM cable for both microcontrollers • Boards—One design provides multiple product possibilities • CodeWarrior for Microcontrollers 6.0 Your C-code is recompiled with 4 clicks, 8-bit to 32-bit and back again • Initialization Tools Both the 8-bit and 32-bit QE processors are supported with Processor Expert’s graphical initialization tools 5 If you look at the traditional tool solutions from any software or any microcontroller vendor, you’ll notice that their 8bit and 32- bit development tools are usually completely different. This can result in a major learning curve when migrating between two cores. However, the Flexis QE microcontrollers are tool compatible and they use the same debug interface; there's one software tool and one hardware tool that supports both microcontrollers. So, there's no need to have extra hardware on your board to support two different microcontroller cores. With the CodeWarrior for Microcontrollers version 6.0, we have integrated all the features needed for both the 8bit and 32-bit microcontrollers. We have also created a migration tool that makes it extremely easy -- just four clicks -- to migrate your code between 8bit and 32 bit cores. Also, within this CodeWarrior tool are initialization tools that make it easy to initialize and set up all the peripherals onboard each chip. 5 Peripheral Compatibility How is all of this possible? ►Freescale designers found novel ways to integrate the 8-bit peripheral set with our new ColdFire V1 core • We use the same modules from the analog comparator to the timers ►Evaluate both Flexis controllers to 2xSCI 2x see which meets your needs KBI 2xSPI 2xI2C ACMP COP • Switch at a moments notice ColdFire® V1 Core 24 ch. Selection S08 Peripherals 12-bit 3 16-bit • Extra processing speed ADC timers S08 • Low power Flash Memory 8KB 128 KB SRAM • Flexis has your needs covered Power ICE + Mgmt 70 ICS+ULP BDM Control OSC (PMC) GPI/O 6 The Flexis QE microcontrollers also have peripheral compatibility. This is accomplished by integrating the 8bit peripheral set with the new ColdFire V1 core. So we are using the exact same peripheral modules from the analog comparator all the way up to the timer modules. So there isn’t a 32-bit version and an 8bit version. They are both the 8bit version of the peripherals. Thus, all code written to initialize, run, change, and so on is exactly the same. This allows the customer to evaluate both controllers to see which one meets their needs. Once you make a decision, if you decide that your requirements change, it's very easy to switch at the last minute. If you decide you need extra processing speed, you can easily migrate to the 32-bit. If you decide that you need to reduce the power consumption, you can go to the 8bit microcontroller. Basically, whatever the requirements of your system, the Flexis will have you covered. 6 Benefits of Compatibility Software Compatibility • Eliminate the need to rewrite code • One development tool supports two compilers • Switch between the two architectures using the same tool! Peripheral Compatibility • Peripheral specific code transfers seamlessly from one microcontroller to the other • Reduces overall learning curve involved when migrating to a higher performing or a lower power architecture Pin Compatibility • Enables a designer to design 1 platform for a series of scalable products • Have immediate access to higher performance, lower power, or lower cost with the flip of a chip • Development time drastically reduced and simplified So, what are the benefits of this high-level compatibility? Software compatibility, peripheral compatibility, and pin compatibility. Software compatibility means that you don’t have to rewrite code. You get a single development tool that supports two compilers, two completely different [MCU] cores and it makes the migration between these two cores extremely easy – it takes only four clicks to migrate between 8bit and 32-bit microcontrollers. Peripheral compatibility makes transitioning code almost negligible because the interfaces for the modules are identical from part to part. Pin compatibility means you have the same pin out in the same packages. This allows you to design one set of hardware that you can easily swap between 8bit and 32-bit so you immediately have access to higher performance or lower power. 7 Question Which of these compatibility features are offered by the Flexis microcontrollers? Select all that apply and then click Done. A. Pin compatibility B. Assembly code compatibility C. Tool compatibility D. Peripheral compatibility Done Take a moment now to answer this question about compatibility. Correct. The Flexis microcontrollers are pin, tool, and peripheral compatible. Pin compatibility makes transitioning code simple because the interfaces for the modules are identical from part to part. Tool compatibility means there's no need to have extra hardware to support two microcontroller cores. Peripheral compatibility means that the same peripheral modules are used from the analog comparator up to the timer modules. The Flexis microcontrollers are not assembly code compatible because they have different CPUs. 8 Microcontroller Family V2 32-bit V1 QE 8 bit QE S08 Now we're going to take a look at what needs to be done to move from the traditional S08 microcontroller to the 8-bit QE family. 9 V2 Platform 32-bit V1 QE 8 bit QE S08 HCS08 Core S08 Core • Most existing S08MCUs run at 10MHz CPU or 20MHz max bus speed • The 8-bit QE microcontroller runs at a BDC BKP maximum of 25MHz bus speed • Same S08 ISA HCS08 System Control • Added instructions for managing Resets and Interrupts extended memory map Modes of Operation CALL Power Management RTC COP LVD INT IRQ The first thing to note when moving from the S08 8bit to the 8-bit S08 QE is that the 8-bit S08 QE 128 family uses the S08 core. One difference between the two is that S08s typically run at either 10 or 20 MHz maximum bus speed, but the QE microcontrollers have a higher maximum speed of 25 MHz.