What setting should ddrb have

Assignment Help Other Engineering
Reference no: EM131452905

Assignment

1. PORTB of an HCS12 is wired up so that bits 1 and 2 are connected to outputs and bit 0 is connected to an input. The input is wired to a switch, and the input is 0 if the switch is pressed and 1 if the switch is released. The two outputs are LEDs, and are wired so that writing a 0 turns OFF the LED and writing a 1 turn ON the LED.The schematic is shown below.

324_PORT.jpg

a. What setting should DDRB have?

b. Draw a flowchart to do the following: Test the input bit. If the switch is pressed, turn on both LEDs. If the switch is released, turn off both LEDs.

c. Write a subroutine to implement the flowchart. PORTB is at memory address $0001.

2. The HCS12 has several interrupt sources, almost all of which can be controlled via the I flag in the condition-code register.

a. Is the I flag active-high or active-low? That is, which state of the I flag indicates that interrupts are enabled?
b. Which instruction makes the interrupt flag active (enables interrupts)?

3. Watch the Podcast about digital interfacing, and answer the following short questions.

a. An HCS12 uses 5 Volts and is driving an LED. When the LED is on, it has a forward voltage of 1.8 Volts and draws 18 mA. What size current-limit resistor is needed?

b. What part turns on and off inside a relay in order to operate the switch?

c. Name an example of a chip or device that has enough drive strength to operate a relay that requires 100 mA of coil current.

d. Name an example of a device that protects circuits from too much current.

Reference no: EM131452905

Questions Cloud

What is an employee assistance program : What is an Employee Assistance Program (EAP)? How can an EAP be used to positively manage employee relations and performance
How many presses are needed : A stamping plant must be designed to supply an automotive engine plant with sheet metal stampings. The plant will operate one 8-hr shift.
Describe ocbc unique approach to talent management : Describe OCBC's unique approach to talent management and development.
Determine the number of forging cells : A new forging plant must supply parts to the automotive industry. Because forging is a hot operation, the plant will operate 24 hr/day.
What setting should ddrb have : What setting should DDRB have? What part turns on and off inside a relay in order to operate the switch? Name an example of a device that protects circuits.
Argue for or against the limitation of speed limits : PSCI 2231 : Write a composition using one of the topics listed below. Your composition needs to be three to five paragraphs long.
Method for making wise decisions in the face of uncertainty : Comment on the statement bringing out clearly how does statistics help in business decision-making.
What is the utilization during peak hours : An AS/RS is used for work-in-process storage in a manufacturing facility. The AS/RS has five aisles, each aisle being 120 ft long and 40 ft high.
Describe concepts as if you were explaining them to a friend : Describe the concepts as if you were explaining them to a friend. How will you use the concepts in the class or in your personal or professional life?

Reviews

Write a Review

Other Engineering Questions & Answers

  Explain lzss compression and what are the improvements of

Explain LZSS compression and what are the improvements of LZSS on LZ77

  Use superposition to calculate the dc voltage

Wire the circuit and connect a scope probe at X, be sure to DC couple the input and set the ground level at the bottom of the scope display, then sketch the results.

  Non-linear temperature logging circuit

Design a non-linear temperature logging circuit and specify the technical specification of the resistors, capacitors etc. The components for the circuit: temperature sensor, analogue-to-digital converter, Ethernet or USB port, memory, microcontroller..

  Design a circuit that implements comparator using sop form

ECE 171- Design a circuit that implements the comparator using SOP form. Be sure to show truth tables, K-maps, and reduced equations. Describe your circuit using a Verilog behavioral dataflow description and simulate it by writing a testbench.

  Find the natural frequencies and modes

ENME352-16B: Dynamics Assignment - Find the first three roots of the above equation using a MATLAB program and solve the problem to compare with Amy's and Barry's models and comment on your findings

  Prepare a project charter and a project definition document

For your project prepare a Project charter and a project definition document. Condition - Use the forms provided in this section. Make sure your project is explained clearly and you include the estimated budget and risk listing.

  What would be purpose of connecting a parallel-tuned circuit

Which of the following is a disadvantage of using a resistor in place of an inductor in a power-supply filter - What would be the purpose of connecting a parallel-tuned circuit into an antenna circuit?

  Compute the allowable downward and upward load

These piles have been designed without the benefit of any onsite static load tests, dynamic tests or indicator piles, but a wave equation analysis has been performed. Using the Dennis and Olson method, compute the allowable downward and upward loa..

  Determine the mass of pressurant

Now, assuming the monoprop system utilizes regulated Helium pressurant (Rgas = 2080 J/kg-K) with a maximum beginning of life operating pressure of 27.6 MPa and temperature of 323K, and corresponding EOL limits of 689 kPa and 293K, respectively, det..

  Calculate the gasoline savings

How much gasoline do vehicles with the following fuel efficiencies consume in one year? Calculate the gasoline savings, in gallons per year, created by the following two options. Show all your work, and draw boxes around your answers.

  Explain why integral action requires anti-windup

Assignment CS2 - Control Systems Design and Analysis - What will be the system type number a if PID controller is used on this plant? For zero steady state error (to unity step references) for this plant, is an integrator required in the controller..

  Find the system differential equation

Given the transfer function for a system with zero initial conditions: H(s) = 1/(s2+10s+21) Find the system differential equation. Draw a Block Diagram realization of the system (notation: input x(t) = uin(t))

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd