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

  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