You are on page 1of 17

ECET 340 CART EXPECT SUCCESS \ECET340CA

RTDOTCOM
FOR MORE CLASSES VISIT
www.ecet340cart.com

ECET 340 ENTIRE COURSE

ECET 340 Week 1 HomeWork 1

ECET 340 Week 1 iLab 1

ECET 340 Week 2 HomeWork 2

ECET 340 Week 2 iLab 2

ECET 340 Week 3 HomeWork 3

ECET 340 Week 3 iLab 3

ECET 340 Week 4 HomeWork 4

ECET 340 Week 4 iLab 4

ECET 340 Week 5 HomeWork 5

ECET 340 Week 5 iLab 5

ECET 340 Week 6 HomeWork 6

ECET 340 Week 6 iLab 6

ECET 340 WEEK 1 HOMEWORK 1

1. Give three examples each of internal and external periphe


ral devices as referenced to the HCS12 microcontroller and n
ot an entire PC. (2 points)

2. Given the requirements of each signals destination must


match the capabilities of the signals source, name some of t
he electrical signal parameters that must be considered whe
n designing an interface between two different hardware co
mponents. (2 points)

ECET 340 WEEK 1 ILAB 1

OBJECTIVES:
To become familiar with Microcontroller MC9S12 parallel por
ts and how simple input and output devices are interfaced th
rough them.
To learn how to program I/O instructions in C language.
To learn how to organize a program to read data from input
ports, process the data, and display the result on a simple ou
tput device.

ECET 340 WEEK 2 HOMEWORK 2

1. Where does program control transfer to when an interrupt


occurs? +2 points
2. Which one of the following Interrupts has highest priority?
+2 points
3. RAM Vector table addresses $3E52 belongs to which interr
upt? +2 points
4. Before exiting an ISR, the programmer should use which c
ommand? +2 points
5. In which one of the following sequences is the stack pulle
d by rti? +3 points
6. Given the starting address for the TC0 Interrupt is to beco
me $5000. Write the assembly instruction necessary to place
this ISR address into the interrupt vector table and then unm
ask the interrupt (assembly only). +3 points

ECET 340 WEEK 2 ILAB 2

ECET 340 Week 2 iLab 2

ECET 340 WEEK 3 HOMEWORK 3

1. Sketch a circuit that can be used to debounce a pushbutto


n and explain how it works. (4 points max)
2. In Figure 7.32 on page 339 of the Huang textbook, if the ro
w has and the columnsare , which key is pressed? (2 points
max)
3. In Figure 7.32 on page 339 of the Huang textbook, explain
why the 10k resistors ties to VCC are required. (2 points ma
x)

ECET 340 WEEK 3 ILAB 3

SOLVED ECET 340 iLAB3


OBJECTIVES:
To learn the basic operation of a keypad.
To understand how to interface a keypad to a microprocesso
r.
To learn how to program a keypad driver in C language.
To learn how to program a keypad activated interrupt that id
entifies the key being pressed and displays or otherwise retu
rns its value to the main program.

ECET 340 WEEK 4 HOMEWORK 4

1. Determine the conversion time for an ADC0804 (8-bit), wh


ere 66 clocks per bit are required, if its clock frequency is 50
kHz.
2. If an 8-bit SAR has Vref = 10 V, what is the binary value for
an input voltage of 7.28 V?
3. What is the percent error for the binary answer found in
Problem #2?
4. Given an 24 MHz bus speed. Write down the line(s) of inst
ruction which set the ATD1 unit for 2MHz conversion frequen
cy, 10-bit resolution and 8 A-to-D clocks per sample time.

ECET 340 WEEK 4 ILAB 4

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

ECET 340 WEEK 5 HOMEWORK 5

1. Explain, briefly, why an analog restoring filter is sometime


s used at the output of a DAC.
2. Give 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 D
AC. Show work.
4. Use the internet to locate the data sheet for an MC1408 D
AC. From it find, for the MC1408-7 version, the following:
a. The settling time
b. Accuracy at full scale output current (1.99 mA), 25C

ECET 340 WEEK 5 ILAB 5

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 I


nterface (SPI)

to transfer data, and commands between the HCS12, and the D


AC

peripheral.

Deliverables

For this lab, the deliverables include the cover sheet,

filled-in sections of the lab report, photographs (online), or inst


ructor

sign-offs (onsite), and answers to the questions. The cover shee


t must be

completed in typed format.

ECET 340 WEEK 6 HOMEWORK 6 (DEVRY)

1. What are the four main functions of the HC12 Timer unit?
2. Two input capture events occur at counts 0x1037 and 0xF
F20 of the free-running counter. How many counts (in decim
al) have transpired between these two events?
3. What is the maximum time possible before the free-runni
ng counter overflows when the e MHz?
4. Two input capture events occur at 0x1037 and 0x002A. If t
he 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?

ECET 340 WEEK 6 ILAB 6 (DEVRY)

ECET 340 Week 6 iLab 6 (Devry)

ECET 340 WEEK 7 HOMEWORK 7 (DEVRY)

1. The movable part of the solenoid is the: +2 points


2. Why is the 6N139 optoisolator used in the interfaces to de
vices 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 way
s a program can do this. +2 points

ECET 340 WEEK 7 ILAB 7

ECET 340 Week 7 iLab 7

ECET 340 CART EXPECT SUCCESS \ECET340CA


RTDOTCOM
FOR MORE CLASSES VISIT
www.ecet340cart.com

You might also like