ESE 380 Lecture Notes - Lecture 5: Microcontroller, Eeprom, High-Level Programming Language

12 views8 pages

Document Summary

; configure i/o ports ldi r16, out ddrb, r16 ;portb - all bits configured as outputs ldi r16, sh out ddrd, r16 ;portd - all bits configured as inputs. ;continually input switch values and output value read to leds again: in r16, pind com r16 out portb, r16 ;output to leds value read from switches rjmp again. The only representation of a program that can be loaded into a computer"s memory and executed is machine language. An instruction is simply a group bit that tells the microcontroller what operation to perform. If a program is written in assembly language, it must be converted to machine code using an assembler. If a program is written in a high- level language it must be converted to machine code using a compiler. When instructions are being described, as in an instruction set summary or reference, a concise and unambiguous method of specifying the action carried out by each instruction"s execution is necessary.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents