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

  Distance affecting team dynamics and performance

The Vigilance Project-Case Overview 2 © 2008 SHRM. Peter G. Dominick, Ph.D. Case Overview/Synopsis This case follows a project team as they work to implement a safety database tracking system within a major international pharmaceutical company. Th..

  Identify the steps involved in system modifications

How are design changes initiated? How are priorities established? How are design changes implemented? Identify the steps involved in system modifications.

  Develop flowchart for any major software component of system

Develop a flowchart for any major software component of the system (Must be detailed and ready to be programmed). Code of critical blocks of software may be submitted next week.

  Determine the natural frequencies of a beam

The aim of the experiment is to determine the natural frequencies of a beam mounted on two springs, which may be considered as a system with two degrees of freedom

  What externalities are associated with driving

A writer for the Economist magazine disputed Cassidy's argument with the following comment: "I hate to belabour the point, but driving, as it turns out, is associated with a number of negative externalities." What externalities are associated with..

  Describe specific engineering and manufacturing process plan

Describe specific engineering and manufacturing process planned to be used in the development of the new technology or application. Potential defects and that cause deviations in the development process.

  Construct a truth table for each of the simplified equations

5-7. Write the Boolean equation for the circuits of Figure P5-7. Simplify the equations, and draw the simplified logic circuit.

  Traffic signal controller for a crossroads

Problem: Design, using an ASM chart, a traffic signal controller for a crossroads. The signals change only when a car is detected in the direction with a red signal.

  Develop your own timing diagram for a memory read

Develop your own timing diagram for a memory read that is analogous to the write diagram for picture below. You can use whatever control lines you want.

  The maximum value of a binary counter

Question 1: How many address bits are needed to select all locations in a 256 x 8 memory? Question 2: Assume a 16Kx8 memory is designed using 4Kx1 RAM chips. How many address lines can be directly connected to each 4K RAM chip?

  Calculate volumetric flow rate and mass flow rate

Calculate the volumetric flow rate and the mass flow rate(ENMIN 5023 Mine Ventilation)- determine the average flow velocity of the air and the air quantity flowing -  what particular precautions have to be taken when undertaking such a traverse?

  Food nano technology and emulsion technology due dateformat

due date ltbrgtformat individual work ? written literature review ltbrgtlength 2000 words ltbrgtdescription the major

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