PDF Archive

Easily share your PDF documents with your contacts, on the Web and Social Networks.

Send a file File manager PDF Toolbox Search Help Contact



DEVRY ECET 340 Week 1 HomeWork 1 .pdf


Original filename: DEVRY ECET 340 Week 1 HomeWork 1.pdf
Author: Minu

This PDF 1.5 document has been generated by Microsoft® Office Word 2007, and has been sent on pdf-archive.com on 10/03/2016 at 06:13, from IP address 43.224.x.x. The current document download page has been viewed 236 times.
File size: 341 KB (2 pages).
Privacy: public file




Download original PDF file









Document preview


ECET 340 Week 1 HomeWork 1

Check this A+ tutorial guideline at
http://www.assignmentcloud.com/ecet-340devry/ecet-340-week-1-homework-1
1. Give three examples each of internal and external peripheral devices as referenced to the
HCS12 microcontroller and not an entire PC. (2 points)
2. Given “the requirements of each signal‟s destination must match the capabilities of the
signal‟s source,” name some of the electrical signal parameters that must be considered
when designing an interface between two different hardware components. (2 points)
3. Write down the instructions needed to program PORT A for pins PA7, PA4-PA0 as
inputs and PA6-PA5 as outputs. Answer should be a valid C language statement. (2 points)
4. Write an instruction sequence to output the value $35 to PORT P. Use the C language
only when writing your answer; - no assembly language. (2 points)
5. Write an instruction sequence to configure Port H for input, read in the current signal
levels on the Port H pins, and store the value to a C variable called data1. Use the C
language only when writing your answer, no assembly language. Also make sure to set the
data direction register appropriately in your answer. (2 points)
6. Write a short program in C language which reads in the bits on port H, inverts the bits
and adds 1 to the result, and then outputs the result onto port P. Be sure to include port
initializations and variable declarations in your code. (2 points)
7. Using only Ports B, H, & J, (see Figure 1} write C code to read in the value from dip
switch 1 (SW1) {all 8 bits}, invert the bits, and then display the results on the 8 LEDs
driven by Port B (see Figure 3). When the value is a „1‟, the LED is ON, and when it is a
„0‟, the LED is off. See how SW1 is connected to Port H (see Figure 2), and how the LEDs
are connected to Port J (see Figure 3) (2 points)

8. What maximum current will be drawn from the 5V output of a peripheral device
connected to an HCS12 input port? What input resistance does this represent? Please note
the problem states connected to an HCS12 “input port”. (3 points)
9. Given an LED with a forward drop of 1.5V and an operating current of 10 mA, design
the interface to the HCS12 showing your calculations. (3 points)

For more classes visit

http://www.assignmentcloud.com


DEVRY ECET 340 Week 1 HomeWork 1.pdf - page 1/2
DEVRY ECET 340 Week 1 HomeWork 1.pdf - page 2/2

Related documents


PDF Document devry ecet 340 week 1 homework 1
PDF Document devry ecet 340 week 1 homework 1
PDF Document devry ecet 340 week 7 homework 7
PDF Document devry ecet 340 week 7 homework 7
PDF Document devry ecet 340 week 4 homework 4
PDF Document devry ecet 340 week 4 homework 4


Related keywords