aLec02_texas - Introduction to Embedded Microcomputer...

Info iconThis preview shows pages 1–3. 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) $2000 to $3FFF is RAM, volatile, variables (DG128) $4000 to $FFFF is EEPROM, nonvolatile, program (DG128) ;template org $4000 main stop org $FFFE fdb main Short list of instructions to get started ldaa #10 ;make A=10 ldaa $2000 ;A=contents of memory staa $2000 ;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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Introduction to Embedded Microcomputer Systems Lecture 2.2 Jonathan W. Valvano Appendix 1. Embedded system development using TExaS A1.1. Introduction to TExaS $4000 CF4000 $4003 180B800242 $4008 1D024080 $400C CC115C $400F 7C0800 $4012 B60240 $4015 847F $4017 B1402B $401A 26EC $401C FE0800 $401F 09 $4020 7E0800 $4023 26ED $4025 1C024080 $4029 20E1 $402B 23 $FFFE 4000 PTT equ $0240 DDRT equ $0242 org $0800 cnt rmb 2 org $4000 main lds #$4000 movb #$80,DDRT
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/28/2011 for the course EE 16345 taught by Professor Yerraballi during the Spring '11 term at University of Texas at Austin.

Page1 / 4

aLec02_texas - Introduction to Embedded Microcomputer...

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

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