Embedded System: Single-Chip Microcomputer (Microcontrollers, Mcus)
Total Page:16
File Type:pdf, Size:1020Kb
Embedded System: Single-chip Microcomputer (Microcontrollers, MCUs) z Embedded Systems are specialized or dedicated computers used to control appliances, devices and machines z Platforms that use embedded systems include consumer appliances, IT devices and industrial/commercial machines z Consumer: PDAs, game consoles, set top boxes, automotive control systems, home appliances z IT: Printers, copiers, faxes, teller machines, telecom switches and routers, modems, videoconferencing, disk controllers z Industrial/commercial: robotics, data acquisition, manufacturing control, process control, medical imaging and monitoring, aerospace, satellite systems, radar systems Steer-by-wire: a next-generation steering system in which there is no mechanical link between the vehicle's steering wheel and the front-wheel directional actuator. A “steer-by-wire” system has only electrical signal connection between the steering wheel sub-system and the steering power sub-systems. This approach has both advantages and disadvantages compared to conventional steering systems. Steer-by-wire advantages: - Modular steering sub-system design, simplifies the assembly, lower manufacturing cost - Software customizable to fit different machine needs - The injury risk caused by the steering column being thrust toward the driver in an accident will be diminished. - Interference with the driver during stability control and automatic steering can be avoided. The main disadvantage of SBW system: there is no direct mechanical feedback to the operator about the steering conditions, which must be emulated by an active control system. Other automobile applications include: • entertainment system • theft deterrent systems • climate control • dashboard display • traction control • navigation systems Electronic components and software will, to a large extent, shape tomorrow‘s vehicles (90% of vehicle innovations). Smart Kitchen z 1/3 of European consumers want technology to make home life easier and more fun z Two most desired smart products: - One-button washing machine - Intelligent oven z Consumers want technology to: - Reduce environmental waste - Save energy costs Smart Technology in the kitchen Smart tags play a crucial role, with every item of foodstuff identified through a tag. The system enables the kitchen's PC to recognise food as you take it out of the fridge or larder. The tags are used to supply information through which the smart kitchen can look up recipes from a centrally stored database, offering instructions through a display that is embedded in the counter or through a text-to- speech system. Other uses for the tags include providing packets that can deliver information to ovens or microwaves about cooking times, to bread maker to prepare bread and cake mixes according to the package instructions. Smart refrigerators can automatically replenish their stock. Bread Maker starts at a certain time of day, making it possible to wake up to freshly baked bread every morning! And network-enabled appliances to simplify kitchen and meal preparation tasks. Online Gaming z Online gaming set to become a significant part of the total games market z Console-based online gaming passed PC-based online gaming in 2003-2004 A Typical Embedded system: Global positioning system (GPS): Growth of Embedded Devices Embedded devices will be pervasive. On average, 3 embedded devices/person on the planet by 2011. As the following figure shows, the cumulative annual growth rate is 10.3%. What will be embedded? z Everything that is Now Electro-Mechanical, Machines (Nano-Machines) z Anything that communicates z Lots of stuff in our cars z Our Bodies: Pacemakers, De-Fibrillators, Insulin Dispensers z All sorts of interfaces, analog, speech, DNI (digital network interface), etc. Computers are, and will be, everywhere. The world itself is becoming more intelligent. Our infrastructure will have major software content and most of our access to information will be through embedded systems. Economics will inexorably drive deployment of more embedded systems. EVERY technology-driven and manufacturing business will need to become good at embedded system. The Internet is obviously another important factor in this trend Micro-controllers Micro-controllers includes CPU, ROM, RAM. It also integrates other peripherals such as timers, graphic displays, PWM, digital I/O, ADC, DAC, etc. as well as buses for communication: Ethernet, Firewire, USB, PCI etc. The goal is to have the whole system on chip (SoC) and no external hardware, i.e. to fit the application “perfectly” z CPU Bitwidths: 4 to 64 bits – Most common: 8 bit (4G units) , with 32-bit CPU growing fastest z Frequency: DC to 2 GHz (sometime the clock is run down to DC to save power) z Memory on chip: From 0.5 kB to 5 MB z Power: mW (and up) Example: Atmel AT91M42800A Example: Microchip PIC 12CE674 z ARM7TDMI 32-bit core z Memory arch: Harvard z Static design: 0 to 33 Mhz z Program memory: 2048 x 14 z Memory (OTP/Flash) – 8 kB SRAM on chip z EEPROM: 16 bytes – External memory interface, 8/16 bit z RAM: 128 bytes z interface ADC channels: 4 (8 bits) z Devices: 6 timers, 2 serial ports z I/O ports: 6 z JTAG debug interface z Timers: One 8-bit, One WDT z About 0.5 W power (watchdog timer) z About $18 USD z Clock: onchip crystal, 10MHz z 144 Pin package z Package: 8 pins (Pentium 4: 700 pins) z z One of 13 AT91variants Cost: <$1.00 (Pentium 4:>$200.00) JTAG started as a method of testing ICs. Eventually, the uses of JTAG expanded to include things like debugging software for embedded microcontrollers, thus reducing the need for in-circuit emulators. Common microcontrollers: Intel 8051, Motorola 68hc11, or Microchip PIC a full set of development tools at the price you can afford, and good documentation. Good for hobbyists. Intel 8051 and 8096 Family 8051: 8-bit math and control applications 8096: 16-bit high speed/high performance applications Piles of software, both commercial and free, are available for the 8051 line. Many manufacturers supply what must be a hundred different variants of this chip for any requirement. Includes ROM, RAM, I/O on a single chip, in addition to the processor Hardware features of 8051 - 64 KB Program memory address space - 64 KB Data memory address space - 4 KB on-chip ROM, 128 bytes of on-chip RAM - 12 MHz clock rate - serial I/O interface - Two 16-bit timer/counter - Extensive single-bit logic processing capabilities (210 bit-addressable locations) The 8051-family includes the ROM-less 8031, 8751 which has on-chip EPROM. Many other variations. Siemens’ 80515 is a superset of 8051 that includes additional timers, ports, and RAM along with an A/D converter. The 8052/8032 are enhanced version of 8051/8031, with additional on-chip RAM and an additional timer with powerful features. Hardware features of 8096 - Fast arithmetic capabilities (6.25 us Multiply and Divide) - High speed I/O (perform function relative to the timers without CPU intervention) - Pulse-width Modulated Output - 10-Bit A/D Converter with S/H - Maximum clock rate: 12MHz The 8096-family includes the 8796 (8 KB on-chip EPROM), 87196 (16 KB on-chip EPROM). The 8096 is designed for applications such as closed-loop servo control that requires high-speed I/O and computation capability. The PWM output is generated with no software intervention. This provides an effective motor speed control with very little software or hardware overhead. Development Processes Macro-assemblers (ASM-51, ASM-86, ASM-96) - language translators that produce relocatable object modules Linkers (RL-51, Link86/Loc86, RL-96) - link all the various object modules together - assign absolute addresses to segments Object to Hexadecimal converter (OH utility) - converts object code to standard HEX format that can be read by most EPROM programmers. - Burn your EPROM, pluck into your circuit and start up… Simulation − Instead of running a program in the actual MCU, you can run it using a computer program (such as on your PC) that simulates the CPU. − Can freely modify your program, examine and modify registers and data, set breakpoints. − However it only tests software. Critical time relationship between the program and the external hardware not tested In-circuit emulation - this involves a board that simulates the microprocessor or microcontroller - able to see what’s happening in the various registers, etc. - need a special card for each kind of processor: expensive! Note: • The programmers in the Lab can programme the following devices: Eproms (27xxx), EEPROMS (28xxx), microcontrollers (87xx), Proms, PLDs , FPGAs etc.. The lab only has the 48pins DIP adaptors. • The lab has the Emily51 simulator and the V'NICE52 emulator. Both are for the 8051 and 8052 families of processors (including 8031 and 8032). • Previous year students used the Atmel 8952 chip (some pieces left in the lab), which is compatible with the industry standard 80C51 and 80C52 instruction set and pin-out. SURVEY OF OTHER FAMILIES TABLE 15.3 SOME MANUFACTURERS OF 8-BIT MICROCONTROLLERS Manufacturer Web Site Advanced Micro Devices http://www.amd.com/ California Micro Devices http://www.calmicro.com/ Dallas Semiconductor Group http://www.dalsemi.com/ Fujitsu Microelectronics, Inc. http://www.fujitsu.com/ Harris Semiconductor http://www.semi.harris.com/ Hitachi America, Inc. http://www.hitachi.com/ Intel Corp. http://www.intel.com/ Mitsubishi Electric http://www.mitusbishi.com/ Motorola, Inc. http://www.mot.com/ National Semiconductor Corp. http://www.national.com/ NEC Electronics, Inc. http://www.nec.com/ Oki Semiconductors, Inc. http://www.oki.com/ Philips Components http://www.philips.com/ Rockwell International http://www.rockwell.com/ SGS-Thompson Microelectronics, Inc http://www.st.com/ Siemens Components, Inc. http://www.siemens.com/ Signetics Corp. http://www.signetics.co.kr/ Texas Instruments http://www.ti.com/ Toshiba America http://www.toshiba.com/ Zilog,Inc. http://www.zilog.com/ Look out for the annual edition of the EDN microprocessor directory.