SlideShare a Scribd company logo
I need help with this assignment, using atmel studio 7.0:
Place a list of ten numbers in data space. Retrieve the first number from the list, us ing indirect
addressing mode . Output the number to Port B . Assume that th is port ha s two common
cathode 7- segme nt LED s directly connected to it. You must output the code to display the
correct number on the LEDs. Because you will not be using the de cimal point on the 7- segment
LED, use it to enable each LED for 100ms , then switch to the other LED for 100ms . Connect a
push button switch to Port C pin 0 (use an internal pull -up resistor) . When this button is pushed
retrieve the next number from the list and display that on Port B . Continue until all 10 numbers
have been displayed. After all ten numbers have been displayed, start again at the beginning.
Solution
A)An embedded system is a product which uses a computer to run it but the product, itself, is not
a computer. This is a very broad and very general definition. Embedded systems programming,
therefore, consists of building the software control system of a computer-based product. ESP
encompasses much more than traditional programming techniques since it actually controls
hardware in advance of real time. ESP systems often have limitations on memory, speed, and
peripheral hardware. The goals of ESP programmers are to get the “maximum function and
features in the minimum of space and in minimum time”. Embedded systems are everywhere!
Name almost any appliance in your home or office and it may have a microprocessor or a
microcomputer to run it. A watch, microwave oven, telephone, answering machine, washer,
dryer, calculator, toy, robot, test equipment, medical equipment, traffic light, automobile
computer, VCR, CD player, DVD player, TV, radio, and printer all have computers in them to
run them. These examples of embedded systems are simple but the concept of embedded systems
applies to much larger systems as well. Overall, there are four levels of size, option, and
complexity in embedded systems. These levels are: 1) High Level 2) Medium Level 3) Low level
with hardware 4) Low level without hardware
A good example of a high level embedded system is an air-traffic control system. It would use a
main-frame computer with many terminals and many users on a timesharing basis. It would
connect to several smaller computers, run the radar, receive telemetry, get weather information,
have extensive communications sub-systems, and coordinate all of these function in an orderly,
systematic way. It is necessarily a highreliability system and may, therefore, have extensive
backup systems. It would have a custom-built operating system that would be completely
dedicated to controlling airtraffic. An example of a medium level embedded system is a typical
automatic teller machine (ATM) at any bank or bank terminal. It may use a more advanced
microprocessor with many peripheral functions. Consider that it contains a video terminal, a
keyboard, a card-reader, a printer, the money-dispensing unit, a modem, and many input/output
ports. The ATM probably doesn’t use a custom operating system but would use something off
the shelf, like Unix or Linux. The controlling software is probably written in a high-level
language like C or C++.
The appliances and other things given on page 11 are all examples of the lowlevel-with-hardware
embedded systems. They do not use microprocessors but do use microcontrollers, which are
complete computers on a single chip. Microcontrollers have a CPU, RAM, ROM, and, typically,
several peripheral hardware modules which are builtin and are under software control. The
PIC16F877 is such a microcontroller. Any of the example products and applications on page 11
could be controlled by the PIC. They could be programmed in C or C++ but care would be
needed so as not to use too much RAM or ROM inadvertently. The process or program also must
not need very high speed operation – it should not be timing-critical. More control, stability,
memory management, and speed can be gained by programming in assembly languages. The
programming at the low-level will interact with the hardware in much finer detail than in the
medium-level or the high-level systems. The low-level-without-hardware embedded systems are
almost identical to the low-level-with-hardware systems and can run exactly the same products,
devices, and applications. The differences which are present in the low-level-without-hardware
systems are that the microcontroller and the system have an absolute minimum of hardware
peripheral functions. At this level, the software must mimic the desired hardware peripheral
functions. This puts a much greater challenge on the ESP programmer. (Assembly language is a
MUST.) There are several characteristics in ESP that separate it from traditional programming
techniques. They are as follows: 1) ESP is all about process control and control systems. ESP is
what runs a given product. 2) ESP systems must run in “real-time”. The program must keep pace
or stay ahead of the real world and its timing. For example, a telephone answering machine may
use a complex algorithm to compress, expand, encode, and decode speech signals. The ESP
program must be able to run these processes as speech is coming in or going out. There must be
no delays. A traditional program would not be sensitive to the requirements of speed that are
needed here. 3) ESP software must run with infinity-loops. If they didn’t, the products could not
run at all! In contrast, infinity-loops are the cardinal sin of traditional programming. 4) ESP
software often uses “event-driven” techniques, especially at the lowlevels. These techniques are
highly structured and save operating time. Traditional programming may also use “event-driven”
techniques but it is not critical. 5) Low-level ESP software systems must sometimes mimic the
hardware that the product needs. There is no parallel to this in traditional programming. 6)
Embedded systems usually have far less memory than traditional programming environments.
This eliminates heavy nesting of subroutines and recursive subroutine calls.

More Related Content

PPT
Architecture offffffffffffff ESD-ppt.ppt
PDF
Basics of Embedded System
PPTX
Prerna sharma
PPTX
Introduction to Embedded Systems
PDF
es1-150721100817-lva1-app6891.pdf
PPT
Embedded system
PPT
Embeddedsystem
Architecture offffffffffffff ESD-ppt.ppt
Basics of Embedded System
Prerna sharma
Introduction to Embedded Systems
es1-150721100817-lva1-app6891.pdf
Embedded system
Embeddedsystem

Similar to I need help with this assignment, using atmel studio 7.0Place a l.pdf (20)

PPTX
Embedded systems
PPTX
introduction to embedded system presentation
PPTX
Embeddedsystems 091130091010-phpapp02
PPT
Embeddedsystem 110412132957-phpapp02
PPTX
Embedded systems - UNIT-1 - Mtech
PDF
mechatronics.pdf
PPTX
ESD unit 1.pptx
PDF
embeddedsystems-100429081552-phpapp01.pdf
PPTX
Introduction to Embedded system with its definition and applications
PPTX
E-m--be-dde-d -sy-s-te---m_Day_1_ES.pptx
PDF
Lecture on Embedded System, introduction, types
PPT
Introduction to embedded systems powerpoint
PPTX
Embedded Systems.pptx
PPTX
Embedded C.pptx
PDF
Report (2)
PPTX
Embedded system by abhishek mahajan
PPTX
Embedded system by abhishek mahajan
PPTX
Embedded system by abhishek mahajan
PPTX
1334420 634648164164717500
PDF
BEE 049- design of embedded system.pdf
Embedded systems
introduction to embedded system presentation
Embeddedsystems 091130091010-phpapp02
Embeddedsystem 110412132957-phpapp02
Embedded systems - UNIT-1 - Mtech
mechatronics.pdf
ESD unit 1.pptx
embeddedsystems-100429081552-phpapp01.pdf
Introduction to Embedded system with its definition and applications
E-m--be-dde-d -sy-s-te---m_Day_1_ES.pptx
Lecture on Embedded System, introduction, types
Introduction to embedded systems powerpoint
Embedded Systems.pptx
Embedded C.pptx
Report (2)
Embedded system by abhishek mahajan
Embedded system by abhishek mahajan
Embedded system by abhishek mahajan
1334420 634648164164717500
BEE 049- design of embedded system.pdf
Ad

More from michaelazach6427 (20)

PDF
Compare and contrast protein import into the ER and into the nucleus.pdf
PDF
Discuss some of the various ways MySQL allows you to explore a datab.pdf
PDF
Dimitri and Rita eat some donuts for breakfast and then spend the mo.pdf
PDF
detail the importance of cell culture to the field of virologySo.pdf
PDF
Ageism disproportionately affects women since they outlive me. T.pdf
PDF
Could you please help me on this questionThe duty cycle of a conv.pdf
PDF
A random sample of five observations from the first population resul.pdf
PDF
Biomembranes contain many different types of lipid molecules. What a.pdf
PDF
2. The Lorenz curve measures inequality in person income distributio.pdf
PDF
1.) In some forms of epigenetic modification, when a gene is “marked.pdf
PDF
Will th ebelow code work andif not please help me fix it. Basically .pdf
PDF
The visual system that a mountain biker would use to identify changes.pdf
PDF
Which of the following is NOT a benefit of breathing through the nose.pdf
PDF
Which is not a secure MAC address learning for port securityA. St.pdf
PDF
what is the transport process for a methane gas leakSolutionS.pdf
PDF
Summarize the article Trading liberty for illusions by Wendy Kam.pdf
PDF
what is a shared derived charterer and how is it useful for construc.pdf
PDF
TF Unsaturated fatty acids have double or triple bonds creative kin.pdf
PDF
samples, then compuie ine im samples, then cop me 9. Patient Waiting .pdf
PDF
The figure below shows two normal distributions. A and B. The distrib.pdf
Compare and contrast protein import into the ER and into the nucleus.pdf
Discuss some of the various ways MySQL allows you to explore a datab.pdf
Dimitri and Rita eat some donuts for breakfast and then spend the mo.pdf
detail the importance of cell culture to the field of virologySo.pdf
Ageism disproportionately affects women since they outlive me. T.pdf
Could you please help me on this questionThe duty cycle of a conv.pdf
A random sample of five observations from the first population resul.pdf
Biomembranes contain many different types of lipid molecules. What a.pdf
2. The Lorenz curve measures inequality in person income distributio.pdf
1.) In some forms of epigenetic modification, when a gene is “marked.pdf
Will th ebelow code work andif not please help me fix it. Basically .pdf
The visual system that a mountain biker would use to identify changes.pdf
Which of the following is NOT a benefit of breathing through the nose.pdf
Which is not a secure MAC address learning for port securityA. St.pdf
what is the transport process for a methane gas leakSolutionS.pdf
Summarize the article Trading liberty for illusions by Wendy Kam.pdf
what is a shared derived charterer and how is it useful for construc.pdf
TF Unsaturated fatty acids have double or triple bonds creative kin.pdf
samples, then compuie ine im samples, then cop me 9. Patient Waiting .pdf
The figure below shows two normal distributions. A and B. The distrib.pdf
Ad

Recently uploaded (20)

PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Computing-Curriculum for Schools in Ghana
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
IGGE1 Understanding the Self1234567891011
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PPTX
Introduction to Building Materials
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
advance database management system book.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Hazard Identification & Risk Assessment .pdf
Chinmaya Tiranga quiz Grand Finale.pdf
Computing-Curriculum for Schools in Ghana
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
IGGE1 Understanding the Self1234567891011
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Final Presentation General Medicine 03-08-2024.pptx
UNIT III MENTAL HEALTH NURSING ASSESSMENT
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
Introduction to Building Materials
LDMMIA Reiki Yoga Finals Review Spring Summer
Weekly quiz Compilation Jan -July 25.pdf
Paper A Mock Exam 9_ Attempt review.pdf.
Practical Manual AGRO-233 Principles and Practices of Natural Farming
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
advance database management system book.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Hazard Identification & Risk Assessment .pdf

I need help with this assignment, using atmel studio 7.0Place a l.pdf

  • 1. I need help with this assignment, using atmel studio 7.0: Place a list of ten numbers in data space. Retrieve the first number from the list, us ing indirect addressing mode . Output the number to Port B . Assume that th is port ha s two common cathode 7- segme nt LED s directly connected to it. You must output the code to display the correct number on the LEDs. Because you will not be using the de cimal point on the 7- segment LED, use it to enable each LED for 100ms , then switch to the other LED for 100ms . Connect a push button switch to Port C pin 0 (use an internal pull -up resistor) . When this button is pushed retrieve the next number from the list and display that on Port B . Continue until all 10 numbers have been displayed. After all ten numbers have been displayed, start again at the beginning. Solution A)An embedded system is a product which uses a computer to run it but the product, itself, is not a computer. This is a very broad and very general definition. Embedded systems programming, therefore, consists of building the software control system of a computer-based product. ESP encompasses much more than traditional programming techniques since it actually controls hardware in advance of real time. ESP systems often have limitations on memory, speed, and peripheral hardware. The goals of ESP programmers are to get the “maximum function and features in the minimum of space and in minimum time”. Embedded systems are everywhere! Name almost any appliance in your home or office and it may have a microprocessor or a microcomputer to run it. A watch, microwave oven, telephone, answering machine, washer, dryer, calculator, toy, robot, test equipment, medical equipment, traffic light, automobile computer, VCR, CD player, DVD player, TV, radio, and printer all have computers in them to run them. These examples of embedded systems are simple but the concept of embedded systems applies to much larger systems as well. Overall, there are four levels of size, option, and complexity in embedded systems. These levels are: 1) High Level 2) Medium Level 3) Low level with hardware 4) Low level without hardware A good example of a high level embedded system is an air-traffic control system. It would use a main-frame computer with many terminals and many users on a timesharing basis. It would connect to several smaller computers, run the radar, receive telemetry, get weather information, have extensive communications sub-systems, and coordinate all of these function in an orderly, systematic way. It is necessarily a highreliability system and may, therefore, have extensive backup systems. It would have a custom-built operating system that would be completely dedicated to controlling airtraffic. An example of a medium level embedded system is a typical automatic teller machine (ATM) at any bank or bank terminal. It may use a more advanced
  • 2. microprocessor with many peripheral functions. Consider that it contains a video terminal, a keyboard, a card-reader, a printer, the money-dispensing unit, a modem, and many input/output ports. The ATM probably doesn’t use a custom operating system but would use something off the shelf, like Unix or Linux. The controlling software is probably written in a high-level language like C or C++. The appliances and other things given on page 11 are all examples of the lowlevel-with-hardware embedded systems. They do not use microprocessors but do use microcontrollers, which are complete computers on a single chip. Microcontrollers have a CPU, RAM, ROM, and, typically, several peripheral hardware modules which are builtin and are under software control. The PIC16F877 is such a microcontroller. Any of the example products and applications on page 11 could be controlled by the PIC. They could be programmed in C or C++ but care would be needed so as not to use too much RAM or ROM inadvertently. The process or program also must not need very high speed operation – it should not be timing-critical. More control, stability, memory management, and speed can be gained by programming in assembly languages. The programming at the low-level will interact with the hardware in much finer detail than in the medium-level or the high-level systems. The low-level-without-hardware embedded systems are almost identical to the low-level-with-hardware systems and can run exactly the same products, devices, and applications. The differences which are present in the low-level-without-hardware systems are that the microcontroller and the system have an absolute minimum of hardware peripheral functions. At this level, the software must mimic the desired hardware peripheral functions. This puts a much greater challenge on the ESP programmer. (Assembly language is a MUST.) There are several characteristics in ESP that separate it from traditional programming techniques. They are as follows: 1) ESP is all about process control and control systems. ESP is what runs a given product. 2) ESP systems must run in “real-time”. The program must keep pace or stay ahead of the real world and its timing. For example, a telephone answering machine may use a complex algorithm to compress, expand, encode, and decode speech signals. The ESP program must be able to run these processes as speech is coming in or going out. There must be no delays. A traditional program would not be sensitive to the requirements of speed that are needed here. 3) ESP software must run with infinity-loops. If they didn’t, the products could not run at all! In contrast, infinity-loops are the cardinal sin of traditional programming. 4) ESP software often uses “event-driven” techniques, especially at the lowlevels. These techniques are highly structured and save operating time. Traditional programming may also use “event-driven” techniques but it is not critical. 5) Low-level ESP software systems must sometimes mimic the hardware that the product needs. There is no parallel to this in traditional programming. 6) Embedded systems usually have far less memory than traditional programming environments. This eliminates heavy nesting of subroutines and recursive subroutine calls.