SlideShare a Scribd company logo
1 of 2
Download to read offline
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

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

Networking and Computer Troubleshooting
Networking and Computer TroubleshootingNetworking and Computer Troubleshooting
Networking and Computer TroubleshootingRence Montanes
 
Density based traffic light controlling (2)
Density based traffic light controlling (2)Density based traffic light controlling (2)
Density based traffic light controlling (2)hardik1240
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systemskondalarao7
 
Parallel port programming
Parallel port programmingParallel port programming
Parallel port programmingmangal das
 
System Software ( Os )
System Software ( Os )System Software ( Os )
System Software ( Os )Paula Smith
 
Iot based garbage monitoring system
Iot based garbage monitoring systemIot based garbage monitoring system
Iot based garbage monitoring systemankitguptakishu
 
BEE 049- design of embedded system.pdf
BEE 049- design of embedded system.pdfBEE 049- design of embedded system.pdf
BEE 049- design of embedded system.pdfabdisahirko
 
Embedded system
Embedded systemEmbedded system
Embedded system12lakshmi
 
embeddedsystemspresentation-140524063909-phpapp01.pdf
embeddedsystemspresentation-140524063909-phpapp01.pdfembeddedsystemspresentation-140524063909-phpapp01.pdf
embeddedsystemspresentation-140524063909-phpapp01.pdfAshwin180668
 
Mini final docmtn final
Mini final docmtn finalMini final docmtn final
Mini final docmtn finalAyesha Mubeen
 

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

Networking and Computer Troubleshooting
Networking and Computer TroubleshootingNetworking and Computer Troubleshooting
Networking and Computer Troubleshooting
 
Embeddedsystems 091130091010-phpapp02
Embeddedsystems 091130091010-phpapp02Embeddedsystems 091130091010-phpapp02
Embeddedsystems 091130091010-phpapp02
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Density based traffic light controlling (2)
Density based traffic light controlling (2)Density based traffic light controlling (2)
Density based traffic light controlling (2)
 
embedded systems
embedded systemsembedded systems
embedded systems
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
 
Parallel port programming
Parallel port programmingParallel port programming
Parallel port programming
 
System Software ( Os )
System Software ( Os )System Software ( Os )
System Software ( Os )
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Iot based garbage monitoring system
Iot based garbage monitoring systemIot based garbage monitoring system
Iot based garbage monitoring system
 
Smart home automation system
Smart home automation systemSmart home automation system
Smart home automation system
 
BEE 049- design of embedded system.pdf
BEE 049- design of embedded system.pdfBEE 049- design of embedded system.pdf
BEE 049- design of embedded system.pdf
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Embedded System Presentation
Embedded System PresentationEmbedded System Presentation
Embedded System Presentation
 
embeddedsystemspresentation-140524063909-phpapp01.pdf
embeddedsystemspresentation-140524063909-phpapp01.pdfembeddedsystemspresentation-140524063909-phpapp01.pdf
embeddedsystemspresentation-140524063909-phpapp01.pdf
 
Project report
Project reportProject report
Project report
 
C with lab
C with labC with lab
C with lab
 
How to-smart-home-pdf-or
How to-smart-home-pdf-orHow to-smart-home-pdf-or
How to-smart-home-pdf-or
 
Mini final docmtn final
Mini final docmtn finalMini final docmtn final
Mini final docmtn final
 

More from michaelazach6427

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

More from michaelazach6427 (20)

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

Recently uploaded

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 

Recently uploaded (20)

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 

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.