week6 - Assembly Language Programming Low level programming...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: Assembly Language Programming Low level programming of a microprocessor Primarily used with microcontrollers Small amount of memory available Need to efficient about programming Allows for fine tune controlling of devices Microcontrollers are used in many devices Thermastat Microwave oven Toaster Cars Dishwasher Software Basic Function of Processor: execute sequences of instructions Application Program {C, Fortran} Assembly Language Machine Code 0000 R3 = R1 + R2 0001 R4 = R3 - R5 0010 If (R4 == 0) goto 0100 0011 R4 = R4 * 2 0100 R5 = R4 - 3 0101 Goto 0000 Machine Code Assembly Language Structure of a Computer Central Processing Unit (CPU) Execution Unit Instruction Unit Functional Units and Registers Instruction fetch and interpretation FSM Processor Memory System Control Datapath Address Read/Write Data Control Signals Data Inputs Execution Cycle Computer Reset Instruction Fetch Instruction Decode Operand Fetch Execute Result Store Modify PC Datapath: PIC16C74 ALU (arithmetic logic unit): used to implement the various arithmetic and logic function R0 - RN (general purpose registers): hold temporary results (128 registers) W register: one operand of the ALU and possible location of the result (accumulator) ALU W register R0 R1 R2 RN Instr....
View Full Document

Page1 / 21

week6 - Assembly Language Programming Low level programming...

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

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