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

  Characterization technology for nanomaterials

Calculate the reciprocal lattice of the body-centred cubic and Show that the reciprocal of the face-centred cubic (fcc) structure is itself a bcc structure.

  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.

  Design and modelling of adsorption chromatography

Design and modelling of adsorption chromatography based on isotherm data

  Application of mechatronics engineering

Write an essay on Application of Mechatronics Engineering

  Growth chracteristics of the organism

To examine the relationship between fermenter design and operating conditions, oxygen transfer capability and microbial growth.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Explain the difference in a technical performance measure

good understanding of Mil-Std-499 and Mil-Std-499A

  Electrode impedances

How did this procedure affect the signal observed from the electrode and the electrode impedances?

  Write a report on environmental companies

Write a report on environmental companies

  Scanning electron microscopy

Prepare a schematic diagram below of the major parts of the SEM

  Design a pumping and piping system

creating the pumping and piping system to supply cool water to the condenser

  A repulsive potential energy should be a positive one

Using the data provided on the webvista site in the file marked vdw.txt, try to develop a mathematical equation for the vdW potential we discussed in class, U(x), that best fits the data

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