DOC PREVIEW
U of U ECE 3720 - Microcomputer-Based Systems
Pages 12

This preview shows page 1-2-3-4 out of 12 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 12 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Slide 1'&$%ECE/CE 3720: Embedded System Design(ECE 6960/2 and CS 6968)Chris J. MyersLecture 1: Microcomputer-Based SystemsSlide 2'&$%Embedded Computer Systems• An embedded computer system is a system that includes amicrocomputer configured to perform a dedicated application.• Software is typically fixed into ROM and not user accessible.• Microcomputer is embedded, or hidden, inside the device.• Typical automobile contains an average of 10 microcomputers.• Upscale homes may have as many as 150 microcomputers.• Average consumer interacts with µ-controllers 300 times/day.1Slide 3'&$%Examples of Embedded Computer SystemsSlide 4'&$%Examples of General-Purpose Computer Systems2Slide 5'&$%Real-Time Interfacing• Microcomputers accepts inputs, perform calculations, andgenerate outputs.• Real-time systems have an upper bound on the time requiredto perform the input/calculation/output sequence.• Must learn features built into microcomputers to handle time.• An interface is the hardware and software that allow thecomputer to communicate with the external hardware.• Must learn how to interface many types of inputs and outputsin both digital and analog form.Slide 6'&$%Chip Peripherals and Timer Features• Microcontrollers support many I/O features:– Synchronous Serial Peripheral Interface (SPI)– Asynchronous Serial Communication Interface (SCI)– Analog-to-digital (ADC) converters– Fixed period rate interrupts– Computer Operating Properly (COP) protection– Pulse accumulator for external event counting– Pulse-width-modulations (PWM) outputs– Event counter system for advanced timer operations– Input capture used for period and pulse width measurement– Output capture used for generating signals and frequencymeasurement3Slide 7'&$%Microcomputer ArchitecturesCompany ProductsMotorola 68HC05, 68HC08, 68HC11, 68HC12, 68HC16,68K, MCORE, Coldfire, PowerPCIntel 8051, 80251, 8096, 80296Philips 8051Hitachi H8NEC 78KMitsubishi 740, 7600, 7700, M16CSiemens C500, C166, TricoreMicrochip PIC12, PIC16, PIC17Slide 8'&$%Choosing a Microcomputer• Many factors to consider when selecting a microcomputer:– Labor, material, manufacturing, maintenance costs.– ROM, RAM, and EEPROM size.– Speed and I/O bandwidth requirements for application.– 8-,16-, or 32-bit data size.– Numerical or other special operations required.– Number of parallel and serial ports needed.– Timer, PWM, and ADC requirements.– Package size and environmental issues.– Second source availability.– Availability of compilers, simulators, and emulators.– Power requirements.4Slide 9'&$%MC68HC11 Architecture• CPU optimized for low power and operation up to 4 MHz.• Uses either two separate 8-bit accumulators (A,B) or onecombined 16-bit accumulator (D).• Has two 16-bit index registers (X,Y).• Has powerful bit-manipulation instructions.• Supports 16-bit add/subtract, 16 × 16 integer divide, 16 × 16fractional divide, and 8 × 8 unsigned multiply.• Lends itself to C compiler implementations.Slide 10'&$%MC68HC11 Family• A series - basic model.• D series - economical alternative, less memory, peripherals.• E series - has wide range of I/O capabilities.• F series - higher speed, extra I/Os.• G series - 10-bit ADC and better timer systems.• K series - high speed, larger memories, MMU, and PWM.• L series - high speed, low power, static design.• M series - has math coprocessor and four channel DMA.• P series - power-saving PLL and 3 SCI ports.5Slide 11'&$%MC68HC11E Block DiagramSlide 12'&$%Operating Modes• The 6811 can operate in one of four modes:– Single-chip mode uses internal memory for program & data.– Expanded mode allows for use of external memory.– Bootstrap mode used to load programs into RAM.– Test mode used by Motorola to test the chip is operational.6Slide 13'&$%Address Map for MC68HC11E1CP2Address (hex) Size Device Contents0000 to 01FF 512 RAM Variables and stack1000 to 103F 64 I/OB600 to B7FF 512 EEPROM Program and constantsSlide 14'&$%MC68HC11 Registers7Slide 15'&$%Assembly Language• Assembly language instructions have four fields:Label Opcode Operand(s) Commenthere ldaa 100 RegA = [100]• Assembly instructions are translated into machine code:Object code Instruction Comment$86 $64 ldaa 100 RegA = [100]Slide 16'&$%MC68HC11 Addressing Modes• Inherent addressing mode (INH)• Immediate addressing mode (IMM)• Direct page addressing mode (DIR)• Extended addressing mode (EXT)• Indexed addressing mode (IND)• PC relative addressing mode (REL)8Slide 17'&$%Inherent Addressing Mode• Has no operand field.Obj code Op Comment$1B aba RegA = RegA + RegBSlide 18'&$%Immediate Addressing Mode• Uses a fixed constant.• Data is included in the machine code.Obj code Op Operand Comment$8E00FF lds #$00FF Initialize stack9Slide 19'&$%Direct Page Addressing Mode• Uses an 8-bit address to access from addresses 0 to $00FF.Obj code Op Operand Comment$9632 ldaa 50 RegA = [$0032]Slide 20'&$%Extended Addressing Mode• Usss a 16-bit address to access all memory and I/O devices.Obj code Op Operand Comment$B71004 staa $1004 [$1004] = RegAObj code Op Operand Comment$FE8000 ldx $8000 RegX = [$8000]10Slide 21'&$%Indexed Addressing Mode• Uses an 8-bit unsigned offset with either RegX or RegY.Obj code Op Operand Comment$A704 staa 4,X [X+4] = RegASlide 22'&$%PC Relative Addressing Mode• Used for branch and branch-to-subroutine instructions.• Assume branch located at $F880.Obj code Op Operand Comment$8105 cmpa #5 Compare RegA to 5$25BE blo $F840 goto $F840 if RegA<511Slide 23'&$%Instruction Types• Data movement• Clear/set• Arithmetic and comparisons• Logical operations• Data test and bit manipulation• Shift and rotate• Branch, jump, and subroutine calls• Interrupt handling• MiscellaneousSlide 24'&$%Load and Store Instructions• Used to move data to (from) registers from (to) memory.• Load instructions are: ldaa, ldab, ldd, lds, ldx, and ldy.• Load addressing modes are: IMM, DIR, EXT, IND.• Store instructions are: staa, stab, std, sds, sdx, and sdy.• Store addressing modes are: DIR, EXT, IND.• Examples:Obj code Op Operand Comment$86FF ldaa #$FF IMM$9725 staa $25 DIR$F60025 ldab $0025 EXT$ED05 std $05,X IND$FCC025 ldd $C025 EXT12Slide 25'&$%Other Data Movement Instructions• Push and pull instructions used to put data onto and take dataoff of the stack.– psha, pshb, pshx, pshy, pula, pulb, pulx, puly (all INH).• Transfer


View Full Document

U of U ECE 3720 - Microcomputer-Based Systems

Course: Ece 3720-
Pages: 12
Download Microcomputer-Based Systems
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Microcomputer-Based Systems and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Microcomputer-Based Systems 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?