Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
learn:courses:unit-2-lab2b:start [2017/06/21 18:17] – [8.4. Testing] Marthalearn:courses:unit-2-lab2b:start [2021/10/13 22:18] (current) Arthur Brown
Line 25: Line 25:
 ===== 3. Equipment List ===== ===== 3. Equipment List =====
 ==== 3.1. Hardware ==== ==== 3.1. Hardware ====
-  - [[http://store.digilentinc.com/basys-mx3-pic32mx-trainer-board-recommended-for-embedded-systems-courses/|Basys MX3 trainer board]] +  - [[https://digilent.com/shop/basys-mx3-pic32mx-trainer-board-for-embedded-systems-courses/|Basys MX3 trainer board]] 
-  - [[http://store.digilentinc.com/usb-a-to-micro-b-cable/|Micro USB cable]]+  - [[https://digilent.com/shop/usb-a-to-micro-b-cable/|Micro USB cable]]
   - Workstation computer running Windows 10 or higher, MAC OS, or Linux   - Workstation computer running Windows 10 or higher, MAC OS, or Linux
-  - [[http://store.digilentinc.com/stepper-motor/|4 wire stepper motor]] +  - [[https://digilent.com/shop/stepper-motor/|4 wire stepper motor]] 
-  - [[http://store.digilentinc.com/5v-4a-switching-power-supply/|5V, 4A DC power supply]]+  - [[https://digilent.com/shop/5v-4a-switching-power-supply/|5V, 4A DC power supply]]
  
 In addition, we suggest the following instruments: In addition, we suggest the following instruments:
Line 40: Line 40:
   - [[http://www.microchip.com/xcdemo/xcpluspromo.aspx|XC32 Cross Compiler]]   - [[http://www.microchip.com/xcdemo/xcpluspromo.aspx|XC32 Cross Compiler]]
   - [[http://www.microchip.com/SWLibraryWeb/product.aspx?product=PIC32%20Peripheral%20Library|PLIB Peripheral Library]]   - [[http://www.microchip.com/SWLibraryWeb/product.aspx?product=PIC32%20Peripheral%20Library|PLIB Peripheral Library]]
-  - [[http://store.digilentinc.com/waveforms-2015-download-only/|WaveForms 2015]]+  - [[https://digilent.com/shop/software/digilent-waveforms/|WaveForms]]
  
  
Line 94: Line 94:
   - Concept maps   - Concept maps
     - Develop a Data flow diagram that relates slide switch inputs, push button inputs, and timer interrupts to stepper motor and seven segment LED outputs.     - Develop a Data flow diagram that relates slide switch inputs, push button inputs, and timer interrupts to stepper motor and seven segment LED outputs.
-    - Develop a state transition diagram similar to the one described in [[https://reference.digilentinc.com/learn/courses/unit-2/start|Unit 2]].+    - Develop a state transition diagram similar to the one described in [[/learn/courses/unit-2/start|Unit 2]].
     - Develop a control flow diagram that describes the total system operation. Background operations are represented separately from each foreground operation.     - Develop a control flow diagram that describes the total system operation. Background operations are represented separately from each foreground operation.
   - Review the pertinent schematic diagrams to determine the relevant IO pin assignments. Refer to Figs. A.3, A.4, and A.5 in Appendix A.   - Review the pertinent schematic diagrams to determine the relevant IO pin assignments. Refer to Figs. A.3, A.4, and A.5 in Appendix A.
Line 151: Line 151:
 | 1 0 0 0 0 0 0 0  | Up    | 16.0                                                               | | 1 0 0 0 0 0 0 0  | Up    | 16.0                                                               |
  
-**b.** Capture the WaveForms 2015 screen when slide switches are configured for 0x40 (SW6, and SW4 set high resulting in 10.00 RPM), as shown in Fig. A.1, when BTND push button is depressed.+**b.** Capture the WaveForms screen when slide switches are configured for 0x40 (SW6, and SW4 set high resulting in 10.00 RPM), as shown in Fig. A.1, when BTND push button is depressed.
  
  
Line 158: Line 158:
 ===== 9. Questions ===== ===== 9. Questions =====
   - How are you able to accurately determine the number of steps per revolution? How many steps occur in the phase period shown in Fig. 8.1?    - How are you able to accurately determine the number of steps per revolution? How many steps occur in the phase period shown in Fig. 8.1? 
-  - How many steps occur in the same phase period for the screen capture completed under Testing 1.b? 
   - From the expression that converts RPM to ms per step, what is the effect of using integer division on the actual stepper motor rotational speed?     - From the expression that converts RPM to ms per step, what is the effect of using integer division on the actual stepper motor rotational speed?  
   - What is the measured stepper motor maximum rotational speed?    - What is the measured stepper motor maximum rotational speed? 
   - Using the pin designated for LCD DB0 on the Basys MX3 processor board (PIC32 RE0), measure the minimum and maximum ISR execution time. Using the MPLAB stopwatch feature and the assembler code for the Timer 1 ISR prologue and epilogue (saving and restoring) times, what is the worst case ISR execution time?   - Using the pin designated for LCD DB0 on the Basys MX3 processor board (PIC32 RE0), measure the minimum and maximum ISR execution time. Using the MPLAB stopwatch feature and the assembler code for the Timer 1 ISR prologue and epilogue (saving and restoring) times, what is the worst case ISR execution time?
-  - Using the pin designated for LCD DB0 on the Basys MX3 processor board, measure the minimum and maximum background loop. What is the worst case response time for a user input measured in microseconds? Does this agree with measurements taken for 5 above+  - Using the pin designated for LCD DB0 on the Basys MX3 processor board, measure the minimum and maximum background loop. What is the worst case response time for a user input measured in microseconds?