EE344 Lab Assignment- External Internal Interrupt Experiment

Assignment Help Other Engineering
Reference no: EM132385497 , Length: 1 Page

EE344 Lab Assignment - External Internal Interrupt Experiment

Description: The PC13 pin on the STM32L475 IoT node demo kit is connected to a button, which the user can press to generate an interrupt to the MCU. Write a main program to perform the following operations:

  • Configure the PC13 pin for input and then uses it as EXTI13, make it to sense the rising edge.
  • Configure the PA0~PA7 pins for output and drive eight LEDs.
  • Configure PB0 pin for input and wire it to a switch so that it's voltage can be set to either GND or 3.3 V.
  • Declare a global variable count and initialize it to 0.
  • Enable the EXTI13 interrupt to the STM32L475, set its priority to 0, and also enable global interrupt.
  • Stay in an infinite loop to wait for the EXTI13 interrupt to occur.

An interrupt will be generated whenever the user press the button connected to the PB13 pin.

Write an interrupt service routine for EXTI13 to perform the following operations:

  • Clears the PIF13 flag (in EXTI_PR1 register)
  • Checks the voltage level on PB0 pin. If PB0 pin is at high level, the service routine increments the variable count and outputs its value to PA0~PA7 pins and return.
  • If the voltage level of PB0 pin is low, the service routine decrements the variable count and also outputs its value to PA0~PA7 and return.

Reference no: EM132385497

Questions Cloud

Find the average cost function : Find the average cost (AC) function. At what level of output, q, is average cost at its lowest. Derive the individual firm's supply curve
Develop a working framework to guide an hr function : Develop a working framework to guide an HR function to better align itself with the strategic business units of an organization. Further, use the same framework
How might you use self-disclosure as a strategy : Respond to at least two colleagues who suggested a different strategy and suggest different approaches to working with Helen
MITS5501 Software Engineering Methodology Assignment : MITS5501 Software Engineering Methodology Assignment Help and Solution - Victorian Institute of Technology, Australia. Case Study - City Glaziers
EE344 Lab Assignment- External Internal Interrupt Experiment : EE344 Lab Assignment - External Internal Interrupt Experiment. Write an interrupt service routine for EXTI13 to perform the operations
IS480 Advanced Database Management Assignment Problem : IS480 - Advanced Database Management Assignment, Homework Help - California State University, USA - Write a procedure to split a string
Discuss the logistics and materials handling : Visited Red Cross National Office in Perth - Discuss the logistics and materials handling, supply chain management, and inventory management
Review the literature on your chosen theories : Narrative theory in social work Review the literature on your chosen theories. Clearly name and provide an overview for each of the two theories chosen
Design criteria for strength and serviceability : ENS3245 Steel Design Project Assessment Help - Edith Cowan University, Australia - Design criteria for strength and serviceability referring AS/NZS 1170.0 Tab

Reviews

Write a Review

Other Engineering Questions & Answers

  The complete expression for the lowest-order tem

The complete expression for the lowest-order TEMo.o mode can be obtained by solving the paraxial wave equation.

  Series l-r and rc circuits

Construct the series L/R and RC circuits from this week's assignment in MultiSIM and perform Transient Analysis on each circuit to confirm your calculations. Use a 5% tolerance for all of the components.

  Ten factors to be considered when assessing the health risks

Outline at least ten factors to be considered when assessing the health risks from exposure to solvents in a factory producing home furniture with a range of painted and varnished finishes

  Development of a new complex system

List four pros and cons of incorporating some of the latest technology into the development of a new complex system. Give a specific example of each.

  Determine the magnitude of resulting forces

Knowing that the drill exerts a 12 N m · couple on the piece of plywood, determine the magnitude of the resulting forces applied to the nails if the are located

  What is the total delay and the maximum queue length

What is the total delay and the maximum queue length - the parking lot opens and processes vehicles at a rate of 12 per minute.

  Different sequence and timing for the motors

Set of 3 LEDs - one red, one yellow and one green. So turning an LED on represents the corresponding motor being turned on-Our task is to control the 3 motors

  Calculate required output by a single excavator

Calculate required output by a single excavator appropriate to this production and select an appropriate machine - calculate cycle times for trucks.

  Determine delay for the cases

An RC circuit used to produce time delay is shown in Figure. For a step input voltage vi(t) = 2u(t) and C = 10 mF, determine Tdelay for the following cases: (a) R = 100 kΩ; and (b) R = 1 MW. Sketch the output vo(t) versus time for cases (a) and (b..

  Find the worst-case values of the noise margins

Assuming that the inverter is in the logic-1 state 50% of the time and in the logic-0 state 50% of the time, find the average power dissipation in a typical circuit. The power supply is 5 V.

  Conventional otto cycle

Calculate the maximum pressure and temperature and the thermal efficiency of this cycle. Compare the results with those of a conventional Otto cycle having the same given variables.

  Discuss industrial application of instrumentation amplifiers

Instrumentation amplifiers are extensively used in a wide range of industrial applications. Identify and discuss an industrial application of instrumentation amplifiers.

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