aLec02_texas - Introduction to Embedded Microcomputer...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Introduction to Embedded Microcomputer Systems Lecture 2.1 Jonathan W. Valvano Recap Embedded system Microcontroller Data Flow graph Overview 9S12 programming TExaS simulator Top down design Introduction to 9S12 programming Registers Control unit ALU Bus interface unit Processor I/O Ports Microcontroller Electrical, mechanical, chemical, or optical devices Embedded system RAM ROM Address/data bus ADC Analog signals 9S12 DAC Register A, 8-bit number from 0 to 255 Z-bit, 0 means result not zero, 1 means result is zero $0240 is Port T, input/output port $0242 is the direction register for PortT (0=in, 1=out) $0800 to $3FFF is RAM, volatile, variables (DP512) $4000 to $FFFF is EEPROM, nonvolatile, program (DP512) ;template org $4000 main stop org $FFFE fdb main Short list of instructions to get started ldaa #10 ;make A=10 ldaa $0800 ;A=contents of memory staa $0800 ;store contents of A into mem deca ;A=A-1 lsra ;A=A/2 (shift right) lsla ;A=A*2 (shift left) adda #10 ;A=A+10 anda #$02 ;A=A&2 (logic and) eora #$08 ;A=A^8 (exclusive or) oraa #$03 ;A=A|3 (logic or) bra loop ;always jump to loop bne loop ;jump to loop if not zero beq loop ;jump to loop if zero stop Appendix 1. Embedded system development using TExaS A1.1. Introduction to TExaS Figure 2.1. Assembly language development process in TExaS. TExaS supports six phases of software development: • Defining the microcomputer type and memory configuration, • Writing the program source code using an editor, • Assembling source code and loading object code into memory, • Interfacing external components, • Debugging the program by running it on the interactive simulator
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/19/2010 for the course E E 16280 taught by Professor Valvano during the Fall '10 term at University of Texas at Austin.

Page1 / 3

aLec02_texas - Introduction to Embedded Microcomputer...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online