Lab Description: Follow the instructions in the lab tasks below to complete Problems 3 and 4 of Project 10 from the Digilent Real Digital website. These are two design problems involving finite state machine design and interfacing with seven-segment display. First start by analyzing the block diagram for Problem 3 of Project 10. Then, use VHDL to design each of the system components. You will need to use four separate design modules and instantiate each of these within a fifth design module for the overall system. For Problem 4 of Project 10, carefully read through the problem and the “Seven-Segment Display” section of the FPGA board’s user guide before carefully planning the design of this system. Lab Tasks: 1. Complete Problem 3 of Project 10 (a single-digit stopwatch): a. Pay particular attention to the block diagram displayed for this problem. Create each of the four components to this system: i. Seven-segment decoder: You will be able to reuse your design from Lab 2 ii. 4-bit counter: I recommend taking a look at the behavior binary counter illustrated in “Binary counters in VHDL” from Module 10 iii. Clock divider: You will be able to reuse your design from Lab 5. However, you will have to revise this design for task 2. For more information, I recommend taking a look at “Binary counters in VHDL” from Module 10 for information about clock dividers. Note: The stopwatch circuit will increment the digit once every second. Design your clock divider accordingly in order to meet this timing specification. Remember, the clock on the lab FPGA board (Spartan 3) has a frequency of 50 MHz. If you purchased your board, the FPGA Basys 3 or Nexys 4 DDR FPGA board has a frequency of 100 MHz. iv. Controller: This is the main component you will design using a finite state machine b. Use VHDL test benches to verify the correct operation of your 4-bit counter, clock divider (I suggest you use a small divider value for simulating so you do not have to simulate for a long duration), controller, and overall system (again, I suggest you use a small divider value for simulating) c. Ask the instructor to check your designs, simulation waveforms, and FPGA board implementation for your circuit 2. Complete Problem 4 of Project 10 (a multi-digit stopwatch): a. Note: The least-significant digit should change at a rate of once per millisecond. However, for our design, the most-significant bit will not change once per second since each digit will count from 0-F. b. For more information about the timing and pinouts of the seven-segment display, please refer to your board’s user guide from Digilent’s website. Or use this direct link to our lab’s Spartan 3 FPGA board’s user guide. Look for a heading named “Seven-Segment Display” for more information about the timing requirements. c. Use VHDL test benches to verify the correct operation of your system and its components (again, I suggest you use a small divider value for simulating) d. Ask the instructor to check your designs, simulation waveforms, and FPGA board implementation for your circuit 3. If you complete both of the tasks above, then you may continue and complete one or both of the following extra credit tasks: a. Decimal, Multi-Digit Stopwatch (extra credit task) You may complete this extra credit task instead of the hexadecimal, multi-digit stopwatch (lab task 2), or you may complete lab task 2 first, then complete this task i. Modify/create a multi-digit stopwatch so that only decimal numbers are displayed. The least-significant digit should change at a rate of once per millisecond and the most-significant bit will change once per second. This will now act like a real stopwatch. ii. Use VHDL test benches to verify the correct operation of your system and its components (again, I suggest you use a small divider value for simulating) iii. Ask the instructor to check your designs, simulation waveforms, and FPGA board implementation for your circuit iv. Answer the extra credit lab task A questions on the cover sheet. In addition, list any references you use for this extra credit task. b. A Blinking, Multi-Digit Stopwatch (extra credit task) You may complete this extra credit task by altering your design of the hexadecimal or decimal multidigit stopwatch i. Modify your multi-digit stopwatch so the seven-segment display will blink rapidly once the most-significant digit is 9 or greater (to signal the stopwatch is close to the maximum value). This is your chance to design the system you described in the discussion question on the cover sheet. You may choose an appropriate rate at which the seven-segment display will blink. ii. Use VHDL test benches to verify the correct operation of your system and its components (again, I suggest you use a small divider value for simulating) iii. Ask the instructor to check your designs, simulation waveforms, and FPGA board implementation for your circuit iv. Answer the extra credit lab task B questions on the cover sheet. In addition, list any references you use for this extra credit task.

Lab Description: Follow the instructions in the lab tasks below to complete Problems 3 and 4 of Project 10 from the Digilent Real Digital website. These are two design problems involving finite state machine design and interfacing with seven-segment display. First start by analyzing the block diagram for Problem 3 of Project 10. Then, use VHDL to design each of the system components. You will need to use four separate design modules and instantiate each of these within a fifth design module for the overall system. For Problem 4 of Project 10, carefully read through the problem and the “Seven-Segment Display” section of the FPGA board’s user guide before carefully planning the design of this system. Lab Tasks: 1. Complete Problem 3 of Project 10 (a single-digit stopwatch): a. Pay particular attention to the block diagram displayed for this problem. Create each of the four components to this system: i. Seven-segment decoder: You will be able to reuse your design from Lab 2 ii. 4-bit counter: I recommend taking a look at the behavior binary counter illustrated in “Binary counters in VHDL” from Module 10 iii. Clock divider: You will be able to reuse your design from Lab 5. However, you will have to revise this design for task 2. For more information, I recommend taking a look at “Binary counters in VHDL” from Module 10 for information about clock dividers. Note: The stopwatch circuit will increment the digit once every second. Design your clock divider accordingly in order to meet this timing specification. Remember, the clock on the lab FPGA board (Spartan 3) has a frequency of 50 MHz. If you purchased your board, the FPGA Basys 3 or Nexys 4 DDR FPGA board has a frequency of 100 MHz. iv. Controller: This is the main component you will design using a finite state machine b. Use VHDL test benches to verify the correct operation of your 4-bit counter, clock divider (I suggest you use a small divider value for simulating so you do not have to simulate for a long duration), controller, and overall system (again, I suggest you use a small divider value for simulating) c. Ask the instructor to check your designs, simulation waveforms, and FPGA board implementation for your circuit 2. Complete Problem 4 of Project 10 (a multi-digit stopwatch): a. Note: The least-significant digit should change at a rate of once per millisecond. However, for our design, the most-significant bit will not change once per second since each digit will count from 0-F. b. For more information about the timing and pinouts of the seven-segment display, please refer to your board’s user guide from Digilent’s website. Or use this direct link to our lab’s Spartan 3 FPGA board’s user guide. Look for a heading named “Seven-Segment Display” for more information about the timing requirements. c. Use VHDL test benches to verify the correct operation of your system and its components (again, I suggest you use a small divider value for simulating) d. Ask the instructor to check your designs, simulation waveforms, and FPGA board implementation for your circuit 3. If you complete both of the tasks above, then you may continue and complete one or both of the following extra credit tasks: a. Decimal, Multi-Digit Stopwatch (extra credit task) You may complete this extra credit task instead of the hexadecimal, multi-digit stopwatch (lab task 2), or you may complete lab task 2 first, then complete this task i. Modify/create a multi-digit stopwatch so that only decimal numbers are displayed. The least-significant digit should change at a rate of once per millisecond and the most-significant bit will change once per second. This will now act like a real stopwatch. ii. Use VHDL test benches to verify the correct operation of your system and its components (again, I suggest you use a small divider value for simulating) iii. Ask the instructor to check your designs, simulation waveforms, and FPGA board implementation for your circuit iv. Answer the extra credit lab task A questions on the cover sheet. In addition, list any references you use for this extra credit task. b. A Blinking, Multi-Digit Stopwatch (extra credit task) You may complete this extra credit task by altering your design of the hexadecimal or decimal multidigit stopwatch i. Modify your multi-digit stopwatch so the seven-segment display will blink rapidly once the most-significant digit is 9 or greater (to signal the stopwatch is close to the maximum value). This is your chance to design the system you described in the discussion question on the cover sheet. You may choose an appropriate rate at which the seven-segment display will blink. ii. Use VHDL test benches to verify the correct operation of your system and its components (again, I suggest you use a small divider value for simulating) iii. Ask the instructor to check your designs, simulation waveforms, and FPGA board implementation for your circuit iv. Answer the extra credit lab task B questions on the cover sheet. In addition, list any references you use for this extra credit task.

checkyourstudy.com Whatsapp +919911743277
Define: 41 Things Philosophy is: 1. Ignorant 2. Selfish 3. Ironic 4. Plain 5. Misunderstood 6. A failure 7. Poor 8. Unscientific 9. Unteachable 10. Foolish 11. Abnormal 12. Divine trickery 13. Egalitarian 14. A divine calling 15. Laborious 16. Countercultural 17. Uncomfortable 18. Virtuous 19. Dangerous 20. Simplistic<br />21. Polemical 22. Therapeutic 23. “conformist” 24. Embarrassi ng 25. Invulnerable 26. Annoying 27. Pneumatic 28. Apolitic al 29. Docile/teachable 30. Messianic 31. Pious 32. Impract ical 33. Happy 34. Necessary 35. Death-defying 36. Fallible 37. Immortal 38. Confident 39. Painful 40. agnostic</br

Define: 41 Things Philosophy is: 1. Ignorant 2. Selfish 3. Ironic 4. Plain 5. Misunderstood 6. A failure 7. Poor 8. Unscientific 9. Unteachable 10. Foolish 11. Abnormal 12. Divine trickery 13. Egalitarian 14. A divine calling 15. Laborious 16. Countercultural 17. Uncomfortable 18. Virtuous 19. Dangerous 20. Simplistic
21. Polemical 22. Therapeutic 23. “conformist” 24. Embarrassi ng 25. Invulnerable 26. Annoying 27. Pneumatic 28. Apolitic al 29. Docile/teachable 30. Messianic 31. Pious 32. Impract ical 33. Happy 34. Necessary 35. Death-defying 36. Fallible 37. Immortal 38. Confident 39. Painful 40. agnostic

Ignorant- A person is said to be ignorant if he … Read More...
Book review The Shareholder Value Myth: How Putting Shareholders First Harms Investors, Corporations, and the Public by Lynn Stout Provide 1) a 900 word review of this book (word range 900-1,200) and 2) a 350 word reflection where you force yourself to relate the message of the book . As per the format of the review, I like the ones done by the folks of the WSJ. This is an example: http://forums.delphiforums.com/diversecity/messages?msg=17531.1264 or http://www.wsj.com/articles/book-review-how-adam-smith-can-change-your-life-by-russ-roberts-1413846808?KEYWORDS=book+reviews

Book review The Shareholder Value Myth: How Putting Shareholders First Harms Investors, Corporations, and the Public by Lynn Stout Provide 1) a 900 word review of this book (word range 900-1,200) and 2) a 350 word reflection where you force yourself to relate the message of the book . As per the format of the review, I like the ones done by the folks of the WSJ. This is an example: http://forums.delphiforums.com/diversecity/messages?msg=17531.1264 or http://www.wsj.com/articles/book-review-how-adam-smith-can-change-your-life-by-russ-roberts-1413846808?KEYWORDS=book+reviews

The Shareholder Value Myth: How Putting Shareholders First Harms Investors, … Read More...
Medications, either over-the-counter or medically prescribed, can Question 30 options: cause vitamin depletion interfere with vitamin absorption boost levels of B6 and B12 Both A and B

Medications, either over-the-counter or medically prescribed, can Question 30 options: cause vitamin depletion interfere with vitamin absorption boost levels of B6 and B12 Both A and B

info@checkyourstudy.com Medications, either over-the-counter or medically prescribed, can Question 30 … Read More...
“How to Date a Black girl, Brown girl, Halfie or White girl” written by Junot Diaz

“How to Date a Black girl, Brown girl, Halfie or White girl” written by Junot Diaz

A story “How to Date a Black girl, Brown girl, … Read More...
TEXT The sole text is Daniel Bonevac’s Today’s Moral Issues. This is an extremely accessible work that organizes the subject matter of ethics into well-structured units involving both general principles and focused ethical dilemmas. The instructor will guide the students through the pertinent readings and discussion topics. Exam #3: WAR ECONOMIC EQUALITY 1. Aquinas 5. Mill 2. Grotius 6. Hospers 3. Clausewitz 7. Anderson 4. Gandhi CONCERNING THE SHORT PAPER Choose one of our dilemma topics from our book as the focus of your short paper. If you have another topic in mind, please consult with me for permission. —length: 4 to 5 pages — format: typed —number of points: 10 — submission via Bb, under “Assignments” — Format: Microsoft Word — Line Spacing: Double-Spaced —Print: Black The following is merely a suggestion for the organization of the paper, but it might be useful as an indication of how it could look: a) Initial statement of your position concerning the moral dilemma; how to resolve it, how you plan to argue for/against it. b) Amplification of your position; your main points or position. c) Backup: some cited references and supporting evidence for your position. d) Your criticisms of alternative or contrary points of view. e) Your conclusion/summing up. Plagiarism is a serious breach of academic integrity. If you submit plagiarized materials you will receive a zero on the assignment. If you need an extension of the due date for the paper, please consult with me.

TEXT The sole text is Daniel Bonevac’s Today’s Moral Issues. This is an extremely accessible work that organizes the subject matter of ethics into well-structured units involving both general principles and focused ethical dilemmas. The instructor will guide the students through the pertinent readings and discussion topics. Exam #3: WAR ECONOMIC EQUALITY 1. Aquinas 5. Mill 2. Grotius 6. Hospers 3. Clausewitz 7. Anderson 4. Gandhi CONCERNING THE SHORT PAPER Choose one of our dilemma topics from our book as the focus of your short paper. If you have another topic in mind, please consult with me for permission. —length: 4 to 5 pages — format: typed —number of points: 10 — submission via Bb, under “Assignments” — Format: Microsoft Word — Line Spacing: Double-Spaced —Print: Black The following is merely a suggestion for the organization of the paper, but it might be useful as an indication of how it could look: a) Initial statement of your position concerning the moral dilemma; how to resolve it, how you plan to argue for/against it. b) Amplification of your position; your main points or position. c) Backup: some cited references and supporting evidence for your position. d) Your criticisms of alternative or contrary points of view. e) Your conclusion/summing up. Plagiarism is a serious breach of academic integrity. If you submit plagiarized materials you will receive a zero on the assignment. If you need an extension of the due date for the paper, please consult with me.

Non-violence as a rule of love   The mainly essential … Read More...
MAE 214 – Fall 2015 Homework 3 Due: October 1, 2015 – Thursday by 1:00 p.m. Total Problems: 4 (including Extra Credit), Total Points: 105 1. Make a solid works part model from the given figure below. All dimensions are in millimeters. All sketches must be fully defined. Also create a drawing sheet and dimension it as shown. You can use a hole call out option under annotation to dimension a counter bore hole. (30 points) Save your part files as follows: My Documents/Homework 3 Folder/Prob1_LastName.SLDPRT My Documents/ Homework 3 Folder/Prob1_LastName.SLDDRW 2. Make a solid works part of the given figure below and also make a drawing sheet – front, top and right side views using 3rd angle projection method. Dimension the views with appropriate dimension technique. All dimensions are in mm. (30 points) Save your part file and drawing sheet as follows: Documents/Homework 3 folder/Problem 2_Last Name.SLDPRT Documents/Homework 3 folder/Problem 2_Last Name.SLDDRW 3. Make a solid works part file for the given figure below. All sketches must be fully defined. Your design tree menu must have advanced features i.e. plane, mirror, and fillet. The spot facing (SF) must be defined in a problem. The inclined cut must be created with an offset sketch and extrude cut or a suitable sketch that uses “up to surface” option. (40 points) Your part model must stick to the isometric view as it is shown here. Save your part file into: My documents/Homework 3 Folder/Problem3_Last Name.SLDPRT Given: A = 76 B = 127 Unit: MMGS ALL ROUNDS (FILLET) EQUAL 6 MM 4. (Extra Credit) Make a solid works part from the given figure below. All sketches must be fully defined. Save your part file to Documents/Homework3 Folder/Prob#4_Last Name.SLDPRT All dimensions are in millimeters. (5 points)

MAE 214 – Fall 2015 Homework 3 Due: October 1, 2015 – Thursday by 1:00 p.m. Total Problems: 4 (including Extra Credit), Total Points: 105 1. Make a solid works part model from the given figure below. All dimensions are in millimeters. All sketches must be fully defined. Also create a drawing sheet and dimension it as shown. You can use a hole call out option under annotation to dimension a counter bore hole. (30 points) Save your part files as follows: My Documents/Homework 3 Folder/Prob1_LastName.SLDPRT My Documents/ Homework 3 Folder/Prob1_LastName.SLDDRW 2. Make a solid works part of the given figure below and also make a drawing sheet – front, top and right side views using 3rd angle projection method. Dimension the views with appropriate dimension technique. All dimensions are in mm. (30 points) Save your part file and drawing sheet as follows: Documents/Homework 3 folder/Problem 2_Last Name.SLDPRT Documents/Homework 3 folder/Problem 2_Last Name.SLDDRW 3. Make a solid works part file for the given figure below. All sketches must be fully defined. Your design tree menu must have advanced features i.e. plane, mirror, and fillet. The spot facing (SF) must be defined in a problem. The inclined cut must be created with an offset sketch and extrude cut or a suitable sketch that uses “up to surface” option. (40 points) Your part model must stick to the isometric view as it is shown here. Save your part file into: My documents/Homework 3 Folder/Problem3_Last Name.SLDPRT Given: A = 76 B = 127 Unit: MMGS ALL ROUNDS (FILLET) EQUAL 6 MM 4. (Extra Credit) Make a solid works part from the given figure below. All sketches must be fully defined. Save your part file to Documents/Homework3 Folder/Prob#4_Last Name.SLDPRT All dimensions are in millimeters. (5 points)

1 BACKGROUND The new generation of enhanced mid core PICs such as the 16F1847 and the 12F1840 have an inbuilt temperature sensor. This sensor consists of a current source which flows through four diodes in series and the voltage drop across the diodes which is proportional to temperature can be measured by internally connecting the sensor to the ADC and determining the temperature based on the ADC value In this assignment the temperature sensor is used to create a simple thermometer application and to create an alarm should the sensor go outside the set value. Assignment Details 1) Determine the register settings needed to switch the sensor on and connect the temperature sensor to the ADC. Using appropriate values for Vref+ and Vref- display the ADC count value on the 7 segment display. 2) With reference to Microchip Application Note AN1333, “Use and Calibration of the Internal Temperature Indicator” (DS01333) determine an appropriate algorithm to convert from the ADC value to the temperature in degrees centigrade and implement it using a lookup table or otherwise. Display this value on the 7 segment display. Additional marks will be given for accuracy, calibration and averaging the temperature readings to give a more accurate, and a more stable temperature reading. . 2 In order to meet the specification the following will be required. i) Selection of appropriate microcontroller to meet the requirement of the task. ii) Development of an assembly language program to control the operation of the embedded system. iii) Thorough testing to ensure correct operation of the system. iv) Produce a project report to evidence all of the above. Follow Report Requirements (20 pages max) 1) Introduction – Clearly state the scope and aims and objectives of the project: Include Aims and Objectives, i.e. break down the project into smaller attainable aims and objectives for example one objective could be to develop a program to control the LED display. If all objectives are met then the overall project should have been completed. 2) Theory – Include any relevant theory 3) Procedure, Results Discussion – The report should show a methodical, systematic design approach. The microcontroller kits in the laboratory can be used as the hardware platform, however circuit diagrams should be included in the report and explanations of operation is expected. 4) Include flowcharts and detailed explanations of software development. Include appropriate simulation screen shots. Show and discuss results e.g. ADC program, LED program, etc. Include final/complete program. Were results as expected, do they compare favourably with simulated results, what could be done to improve the operation and accuracy of the system? 5) Conclusion – Reflect back on the original aims and objectives. Were they met if not why not? What further work could be carried out to meet aims and objectives etc? 3 Marks ALLOCATION Marks are allocated for the given activities as follows: MARK (%) PROJECT WORK 60 PROJECT REPORT 30 PRESENTATION MARK 10 ______ Total 100 The marks awarded for the microcontrollers in embedded system module will be made up as follows:- PROJECT MARK Have all of the specifications been met? Correct Register settings to switch on sensor and connect temperature sensor to ADC 5% Display two different characters on the 7 segment display 5% Display the ADC count value on the 7 segment display 10% Display the temperature on the seven segment display 20% Calibration 10% Accuraccy 10% Total 60% REPORT MARK Introduction and Theory 5% Procedure, Results and Discussion 20% Report Presentation 5% Total 30% PRESENTATION (POWER POINT) & DEMO Demonstration 10% Total 10% TOTAL 100% 4 Schematic for the Assignment Seven Segment Display Code ;************************************************ ;Appropriate values to illuminate a seven segment display ;with numbers 0 – 9 are extracted from a look up table ;and output on PORTB. ;A software delay is incorporated between displaying ;successive values so that they can be observed. ;(This program is useful demonstrating software delays, ; and look up tables. ; ;************************************************ ; list p=16F1937A #include <p=16f1937.inc> ; ; ****** PROGRAM EQUATES ****** ; temp equ 0x20 value equ 0x21 outer equ 0x22 RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 a b c d e f g dp RA1 RA0 +5V 16F84 VDD Vss 220Ω x 8 CA2 CA1 100K x 2 5K6 5K6 +5V +5V a b c d e f g a b c d e f g middle equ 0x23 inner equ 0x24 w equ 0 f equ 1 ; ; ; ****** MAIN PROGRAM ****** ; org 0x00 banksel PORTB clrf PORTB banksel ANSELB clrf ANSELB clrf ANSELA banksel TRISB movlw 0x00 ;Set port b all outputs movwf TRISB movlw 0x00 ;Set port a all inputs movwf TRISA banksel PORTB ; movlw 0x00 movwf PORTB ;turn off display ; ; ; **** DISPLAY COUNT SEQUENCE *** ; display movlw 0x00 ;Use value as a counter ie movwf value ;value is incremented every begin movf value,w ;time a value is extracted from table bsf PORTA,0 ;turn on LSB display call get ;call subroutine to get value movwf PORTB ;output value to portb call wait ;call delay subroutine incf value ;increment counter btfsc value,3 ;test to see if counter = %1010 btfss value,1 ;if not get next value, if yes goto begin ; goto display ;go to display again ; ; **** LOOK UP TABLE FOR VALUES **** ; get brw ;look up table to illuminate retlw 0xc0 ;the numbers 0 – 9 on seven segment retlw 0xf9 ;display (outputs from port are retlw 0xa4 ;active low retlw 0xb0 retlw 0x99 retlw 0x92 retlw 0x82 retlw 0xf8 retlw 0x80 retlw 0x90 ; ; **** TIME DELAY ROUTINE **** ; ( THREE NESTED LOOPS ) ; wait ;delay subroutine movlw 0x02 ;-outer loop movwf outer ; wait3 movlw 0 xff ; -middle loop movwf middle wait2 movlw 0xff ;-inner loop movwf inner wait1 decfsz inner,f goto wait1 ;-inner loop decfsz middle,f goto wait2 ;-middle loop decfsz outer,f goto wait3 ;-outer loop return end

1 BACKGROUND The new generation of enhanced mid core PICs such as the 16F1847 and the 12F1840 have an inbuilt temperature sensor. This sensor consists of a current source which flows through four diodes in series and the voltage drop across the diodes which is proportional to temperature can be measured by internally connecting the sensor to the ADC and determining the temperature based on the ADC value In this assignment the temperature sensor is used to create a simple thermometer application and to create an alarm should the sensor go outside the set value. Assignment Details 1) Determine the register settings needed to switch the sensor on and connect the temperature sensor to the ADC. Using appropriate values for Vref+ and Vref- display the ADC count value on the 7 segment display. 2) With reference to Microchip Application Note AN1333, “Use and Calibration of the Internal Temperature Indicator” (DS01333) determine an appropriate algorithm to convert from the ADC value to the temperature in degrees centigrade and implement it using a lookup table or otherwise. Display this value on the 7 segment display. Additional marks will be given for accuracy, calibration and averaging the temperature readings to give a more accurate, and a more stable temperature reading. . 2 In order to meet the specification the following will be required. i) Selection of appropriate microcontroller to meet the requirement of the task. ii) Development of an assembly language program to control the operation of the embedded system. iii) Thorough testing to ensure correct operation of the system. iv) Produce a project report to evidence all of the above. Follow Report Requirements (20 pages max) 1) Introduction – Clearly state the scope and aims and objectives of the project: Include Aims and Objectives, i.e. break down the project into smaller attainable aims and objectives for example one objective could be to develop a program to control the LED display. If all objectives are met then the overall project should have been completed. 2) Theory – Include any relevant theory 3) Procedure, Results Discussion – The report should show a methodical, systematic design approach. The microcontroller kits in the laboratory can be used as the hardware platform, however circuit diagrams should be included in the report and explanations of operation is expected. 4) Include flowcharts and detailed explanations of software development. Include appropriate simulation screen shots. Show and discuss results e.g. ADC program, LED program, etc. Include final/complete program. Were results as expected, do they compare favourably with simulated results, what could be done to improve the operation and accuracy of the system? 5) Conclusion – Reflect back on the original aims and objectives. Were they met if not why not? What further work could be carried out to meet aims and objectives etc? 3 Marks ALLOCATION Marks are allocated for the given activities as follows: MARK (%) PROJECT WORK 60 PROJECT REPORT 30 PRESENTATION MARK 10 ______ Total 100 The marks awarded for the microcontrollers in embedded system module will be made up as follows:- PROJECT MARK Have all of the specifications been met? Correct Register settings to switch on sensor and connect temperature sensor to ADC 5% Display two different characters on the 7 segment display 5% Display the ADC count value on the 7 segment display 10% Display the temperature on the seven segment display 20% Calibration 10% Accuraccy 10% Total 60% REPORT MARK Introduction and Theory 5% Procedure, Results and Discussion 20% Report Presentation 5% Total 30% PRESENTATION (POWER POINT) & DEMO Demonstration 10% Total 10% TOTAL 100% 4 Schematic for the Assignment Seven Segment Display Code ;************************************************ ;Appropriate values to illuminate a seven segment display ;with numbers 0 – 9 are extracted from a look up table ;and output on PORTB. ;A software delay is incorporated between displaying ;successive values so that they can be observed. ;(This program is useful demonstrating software delays, ; and look up tables. ; ;************************************************ ; list p=16F1937A #include ; ; ****** PROGRAM EQUATES ****** ; temp equ 0x20 value equ 0x21 outer equ 0x22 RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 a b c d e f g dp RA1 RA0 +5V 16F84 VDD Vss 220Ω x 8 CA2 CA1 100K x 2 5K6 5K6 +5V +5V a b c d e f g a b c d e f g middle equ 0x23 inner equ 0x24 w equ 0 f equ 1 ; ; ; ****** MAIN PROGRAM ****** ; org 0x00 banksel PORTB clrf PORTB banksel ANSELB clrf ANSELB clrf ANSELA banksel TRISB movlw 0x00 ;Set port b all outputs movwf TRISB movlw 0x00 ;Set port a all inputs movwf TRISA banksel PORTB ; movlw 0x00 movwf PORTB ;turn off display ; ; ; **** DISPLAY COUNT SEQUENCE *** ; display movlw 0x00 ;Use value as a counter ie movwf value ;value is incremented every begin movf value,w ;time a value is extracted from table bsf PORTA,0 ;turn on LSB display call get ;call subroutine to get value movwf PORTB ;output value to portb call wait ;call delay subroutine incf value ;increment counter btfsc value,3 ;test to see if counter = %1010 btfss value,1 ;if not get next value, if yes goto begin ; goto display ;go to display again ; ; **** LOOK UP TABLE FOR VALUES **** ; get brw ;look up table to illuminate retlw 0xc0 ;the numbers 0 – 9 on seven segment retlw 0xf9 ;display (outputs from port are retlw 0xa4 ;active low retlw 0xb0 retlw 0x99 retlw 0x92 retlw 0x82 retlw 0xf8 retlw 0x80 retlw 0x90 ; ; **** TIME DELAY ROUTINE **** ; ( THREE NESTED LOOPS ) ; wait ;delay subroutine movlw 0x02 ;-outer loop movwf outer ; wait3 movlw 0 xff ; -middle loop movwf middle wait2 movlw 0xff ;-inner loop movwf inner wait1 decfsz inner,f goto wait1 ;-inner loop decfsz middle,f goto wait2 ;-middle loop decfsz outer,f goto wait3 ;-outer loop return end

No expert has answered this question yet. You can browse … Read More...