ECET 340 Week 7 iLab 7

ECET 340 Week 7 iLab 7

To Download This Material Click HERE: DOWNLOAD

Or Copy The Link:  http://www.fortuneofstudents.com/ecet-340-week-7-ilab-7/

Product Description

Advertisements

ECET 340 Week 7 HomeWork 7

ECET 340 Week 7 HomeWork 7

To Download This Material Click HERE: DOWNLOAD

Or Copy The Link:  http://www.fortuneofstudents.com/ecet-340-week-7-homework-7/

Product Description

  1. The movable part of the solenoid is the: +2 points
  2. Why is the 6N139 optoisolator used in the interfaces to devices such as large motors? +2 points
  3. Calculate the number of steps per revolution for a stepper motor with a step angle of 7.5°. +2 points
  4. How is stepper motor speed controlled? State any two ways a program can do this. +2 points
  5. For this problem, you should look at Figure 5A on the next page as a physical example of a stepper motor. It is an example of a stepper motor with four (4) magnetic windings which are connected via an interface circuit to the HCS12 Port T pins 4, 5, 6, & 7, with an armature (rotor) that has 12 poles (combined number of North and South magnetic poles). Notice how each step rotates the rotor 30 degrees, and notice the logic states on the Port T pins going from Step 1 to Step 2. To rotate the rotor 90 degrees, you would need three (3) steps (see figure 5A for explanation).
  6. Identify 2 major kinds of devices that can be used to interface a dc motor to the HCS12. +2 points
  7. Given that pulses need to be delivered to a specific dc motor at the rate of 12.5 kHz to avoid vibration, write down the C statements needed to output pulses from the HCS12 to drive the at 80% of its full drive level. +2 points
  8. An HCS12 timer input capture/output compare register (TC0) holds the value 0×498when timing the period between pulses coming in from a servomotor’s optical encoder (see Figure 8A below for setup of optical encoder). Assume the counter/timer is operating at 1.0us. The encoder wheel has 6 holes. Find the motor’s speed in RPM. Show work. +2 points
  9. Unidirectional dc motors often have high-voltage diode connected for reverse-bias across the motor’s input terminals. Explain why this is done. +2 points
  10. What advantages do dc motors offer over stepper motors? +2 points

ECET 340 Week 6 HomeWork 6

ECET 340 Week 6 HomeWork 6

To Download This Material Click HERE: DOWNLOAD

Or Copy The Link:  http://www.fortuneofstudents.com/ecet-340-week-6-homework-6/

Product Description

  1. What are the four main functions of the HC12 Timer unit?
  2. Two input capture events occur at counts 0×1037 and 0xFF20 of the free-running counter. How many counts (in decimal) have transpired between these two events?
  3. What is the maximum time possible before the free-running counter overflows when the e MHz?
  4. Two input capture events occur at 0×1037 and 0x002A. If the prescaler bits PR[2:1:0] are set to 101 and the e clock is 24 MHz, how much time as transpired between the two events?
  5. Calculate the count that should appear in the timer capture register TC0 if a 125 kHz rectangular wave is inputted on timer pin PT0 while TCTL4 is preset for falling edge detection. Assume a 24 MHz e-clock, TMSK2 was programmed with the value $02, and the count of the 1st edge event has already been subtracted off from TC0.
  6. Write down the name of the HC12 timer register that should be polled through software to determine whether or not an active input edge has been captured on one of the port T pins.
  7. What is the duty cycle of a signal produced by the PWM when and ?
  8. 28.0% b. 29.8% c. 50.0% d. 72.0%
  9. What values are required for period and duty cycle to generate a 6.0 kHz, 95% duty cycle waveform using the PWM function? Assume e-clock frequency is 24 MHz.
  10. What is the slowest clock signal that can be generated from the PWM output using the 16-bit counter mode with pre-scaling and scaling? Assume e-clock frequency is 24 MHz.
  11. Write down the C statements needed to program PWM channel 0 to output a 12.5 kHz left-aligned wave with 30% duty cycle. Assume e-clock frequency is 24 MHz.

ECET 340 Week 5 iLab 5

ECET 340 Week 5 iLab 5

To Download This Material Click HERE: DOWNLOAD

Or Copy The Link:  http://www.fortuneofstudents.com/ecet-340-week-5-ilab-5/

Product Description

Scenario/Summary

This week’s lab covers two areas, conversion of digital HCS12 signals to an analog format, and the use of a Serial Peripheral Interface (SPI) to transfer data, and commands between the HCS12, and the DAC  peripheral.

Deliverables

For this lab, the deliverables include the cover sheet, filled-in sections of the lab report, photographs (online), or instructor
sign-offs (onsite), and answers to the questions. The cover sheet must be completed in typed format.

L A B S T E P S

STEP 1: Download the
Lab

Download Lab 5 located in DocSharing and save it to your PC.

STEP 2: Predict the Results of Waveform
Generation Program

Study the 340_lab5_1 program and predict the performance, and  outputs of the code. Answer the questions in Part A, Step 2.

STEP 3: Run the Waveform Generation
Program

Use the 340_lab5_1 program to load the Dragon12 board and verify the operation. Photograph your circuit with an oscilloscope attached (online), or obtain your instructor’s sign-off (onsite).

STEP 4: Design Project

Modify the software to produce, either a square wave, or sawtooth wave based on user input. Photograph your circuit with an oscilloscope attached to show both waveforms (online), or obtain your instructor’s sign-off (onsite).

STEP 5: Answer the Questions

There are two questions that must be answered in this lab.

STEP 6: Complete the Cover
Sheet

Type the required information onto the cover sheet.

STEP 7: Submit Your Deliverables

See Syllabus/Due Dates for Assignments & Exams for due date information.

ECET 340 Week 5 HomeWork 5

ECET 340 Week 5 HomeWork 5

To Download This Material Click HERE: DOWNLOAD

Or Copy The Link:  http://www.fortuneofstudents.com/ecet-340-week-5-homework-5/

Product Description

  1. Explain, briefly, why an analog restoring filter is sometimes used at the output of a DAC.
  2. Given Iref = 2 mA for a DAC1408 IC, find Iout for the input 1110 1110
  3. Find the number of discrete voltages output by a 12-bit DAC. Show work.
    4. Use the internet to locate the data sheet for an MC1408 DAC. From it find, for the MC1408-7 version, the following:
  4. The settling time
  5. Accuracy at full scale output current (1.99 mA), 25ºC
  6. Output current range when -7V < vee=””>< -15v=”” is=”” used.=””>
  7. Assume that an MC1408 DAC is attached to Port T of an HC12 Microprocessor as shown below. Verify that the program below outputs 8 different values to the DAC and determine the output voltage (Vout) after each output operation. Show your work in the space below
  8. How does the SCI system achieve synchronization between the transmitter and receiver?
  9. The SCI1 serial port is initialized for 8 data bits, 1 stop bit and 2400 baud. How much time is required to data transfer 3000 characters?
    8. Why is the maximum data rate of the SPI system faster than the SCI system?
  10. Discuss the advantages and disadvantages of the SCI versus SPI data transfers.
  11. Provide the C language code to set the SPI to the lowest frequency.

ECET 340 Week 4 iLab 4

ECET 340 Week 4 iLab 4

To Download This Material Click HERE: DOWNLOAD

Or Copy The Link:  http://www.fortuneofstudents.com/ecet-340-week-4-ilab-4/

Product Description

  1. OBJECTIVES:
  2. To learn how to use A-to-D converters to digitize signals from analog input devices.
  3. To learn how to write a C language program that samples the data from an analog device, digitizes it and formats it for output on an LCD.
  4. To become more proficient in programming displays for real-time operation.