Docsity

Efficiency and Planning in Microcontroller Design: Lecture Notes for CECS 347/L, Week 1, Study notes of Microprocessors

Toggle sidebar
bg1
CECS 347/L
Lecture Notes
Week #1
Chapter 1 Efficiency and Planning
I. Efficiency – Can be efficient by using a bigger CPU and processor or by careful
planning. “An efficient application of a microcontroller is a design with the
minimum of external hardware that still allows the software to keep up with all of
its tasks”
II. An Efficient Microcontroller
A. Software over hardware
B. Minimize I/O
C. Rely on hardware or other processors only when too busy
III. Efficient Electronic Hardware
A. Fewest voltages
B. Weigh relative currents and voltage requirements. Power is money
C. Conserve power by smart choices
D. Shut down when not needed
E. Availability
F. Stability and calibration
G. Develop to the eventual form – be aware of the final product packaging
and size
H. Fewest boards
IV. Efficient Software – “Efficient software is easy to understand software made up
of subroutines with tables, interpolation, and simplified calculations using the
smallest possible type of variables”
A. Easy to understand
B. Functions, functions, and more functions!
C. Only necessary precision
D. Tables over calculations
E. Real-time interrupt
F. Multitasking – never let your program get stuck in a routine or calculation
that can not be interrupted
V. Project Planning ----- EXAMPLE TRAFFICE LIGHT CONTROLLER -----
A. Plan First
B. The Decision Making Process
1. Identify the Problem – Make sure you are designing the solution to
the correct problem – Can you add ideas to improve or streamline
the solution
2. State the Goal of your work – make certain that both your
customer as well as yourself understand the goal or end product of
your work
3. Gather information –
pf2

Partial preview of the text

Download Efficiency and Planning in Microcontroller Design: Lecture Notes for CECS 347/L, Week 1 and more Study notes Microprocessors in PDF only on Docsity!

CECS 347/L

Lecture Notes

Week

Chapter 1 Efficiency and Planning

I. Efficiency – Can be efficient by using a bigger CPU and processor or by careful planning. “An efficient application of a microcontroller is a design with the minimum of external hardware that still allows the software to keep up with all of its tasks” II. An Efficient Microcontroller A. Software over hardware B. Minimize I/O C. Rely on hardware or other processors only when too busy III. Efficient Electronic Hardware A. Fewest voltages B. Weigh relative currents and voltage requirements. Power is money C. Conserve power by smart choices D. Shut down when not needed E. Availability F. Stability and calibration G. Develop to the eventual form – be aware of the final product packaging and size H. Fewest boards IV. Efficient Software – “Efficient software is easy to understand software made up of subroutines with tables, interpolation, and simplified calculations using the smallest possible type of variables” A. Easy to understand B. Functions, functions, and more functions! C. Only necessary precision D. Tables over calculations E. Real-time interrupt F. Multitasking – never let your program get stuck in a routine or calculation that can not be interrupted V. Project Planning ----- EXAMPLE TRAFFICE LIGHT CONTROLLER ----- A. Plan First B. The Decision Making Process

  1. Identify the Problem – Make sure you are designing the solution to the correct problem – Can you add ideas to improve or streamline the solution
  2. State the Goal of your work – make certain that both your customer as well as yourself understand the goal or end product of your work
  3. Gather information –

a. Research – Study prior technology/solutions, learn how the customer will use the product, b. User Interface i. Make it easy to use ii. Make it friendly iii. Visibility – keep main controls and displays up front, hide others iv. Feedback – provide feedback to user letting him/her know that work is in progress v. Mapping – use standard controls, function. Make the devices operation intuitive and logical

  1. Component analysis – study different solutions and the components required for each. Decide which areas are uncertain and spend more time there in the beginning.
  2. Generate Possible Solutions
  3. Constraints and Assumptions
  4. Choice
  5. Analysis of the chosen solution
  6. Synthesis
  7. Evaluation Recommendations
  8. Report Check the results VI. Hardware/software Tradeoffs VII. Hardware Planning VIII. Software Planning – develop an overall program structure and strategy A. Break up into tasks (things to be done) – light sequencer, timer, car switch detect, pedestrian switch detect, fail-safe check,,,,,, B. How will you manage tasks – purchase RTOS, write own, don’t use one because not needed IX. How busy is the processor? There are program available that will help determine or could write buffer task that program loops in when not busy. Bu counting the number of times it loops you will have some indication of how busy the processor is. X. System Integration – With new schematic, hardware layout, software how can it ever work and how does one troubleshoot? XI. Testing and Maintaining – on-board test point, self-test routines or access to RTOS through RS-232 port