Skip to main content

Questions tagged [interrupts]

A mechanism for the control of program flow in a computer. When interrupted a computer saves its present operational state and changes to executing code (interrupt handler) that is dependent upon which interrupt was generated. Interrupts can be either hardware- or software-sourced; software-sourced interrupts are called traps. It is an alternate mechanism to polling and is the basis around which most I/O, multitasking and control is implemented.

1 vote
1 answer
73 views

Why aren't nested interrupts working on the R5F core on the AM2434/AM6442 when using VIM?

QUESTION: Why aren't nested interrupts working on the R5F core on the AM2434/AM6442 when using VIM? This question is not about someone reviewing my code. It's about trying to understand the ARM R5F ...
user4574's user avatar
  • 13.5k
5 votes
1 answer
552 views

Efficiency of interrupts sharing the same Interrupt Service Routine

In an experimental project using an AVR64EA MCU, I've wired two external interrupts to pins of the same port. The ISR looks like this: ...
Torsten Römer's user avatar
0 votes
1 answer
87 views

STM32 UART in Interrupt mode misses data?

I am working with STM32F7 mcu running at 160 MHz, I am also running UART at 160 MHz in interrupt mode to receive data, but in DMA mode to send data. My program also runs 3 SPI and 1 I2C in DMA mode to ...
Dominykas's user avatar
  • 515
-1 votes
1 answer
67 views

Integrating Polling-Based Modules with UART Interrupt Communication on STM32 – Any Risks? [closed]

I'm developing a project using an STM32 Nucleo board. At the core of this project is a UART-based communication protocol running in interrupt (IT) mode — not polling or DMA. This protocol is ...
durna's user avatar
  • 21
3 votes
2 answers
232 views

ARM clock interrupts phase/offset

I am currently learning about interrupts in STM32 processors (STM32H7) and NVIC etc. I understand that clocks can be configured so that periodically, an interrupt will fire with a certain priority. ...
HazCam's user avatar
  • 33
0 votes
0 answers
80 views

SysTick interrupt setup that wakes CPU from WFI low-power state

I am learning how to set up interrupt and low-power features on STM32F446RE Nucleo board. So far I managed to configure interrupt of general-purpose timer (TIM3) and successfully wake ARM CPU on the ...
T.H.'s user avatar
  • 101
0 votes
2 answers
300 views

Every possible error handlers in stm32

After releasing a firmware update for my custom device, I started noticing that some units were failing to operate correctly. I discovered that writing to the flash memory while the system voltage is ...
Wadeva's user avatar
  • 3
1 vote
1 answer
93 views

STM32, the program does not enter the "IF" condition to check pin state

I'm new to STM32, and I want to write a function that will check if the sensor (DHT11) has sent data. I set PA6 to OUTPUT mode and hold low for at least 18ms (according to datasheet), and then release ...
Hellios's user avatar
  • 13
2 votes
0 answers
111 views

Orange Pi CM4 with MCP2515 freeze after 1st frame

I need to add CAN-BUS transmission to the Orange Pi CM4. I found an MCP2515 module and connected it to the Orange Pi. I also found the DTB file configuration to enable the MCP2515 module. The MCP2515 ...
Peter's user avatar
  • 129
0 votes
3 answers
219 views

Is it necessary to store the stack pointer when context switching due to interrupts?

When an interrupt occurs, the current program context is pushed onto the stack and the interrupt starts running. After the interrupt finishes its execution, the hardware knows how many addresses to ...
Ali Asgar 3's user avatar
0 votes
2 answers
264 views

Can an ISR "interrupt" an atomic operation? [closed]

Can an ISR "interrupt" an atomic operation? Here's an example where this would matter: I want to send data from an ISR to my main program. To do so, I'm using the ...
gbt's user avatar
  • 721
1 vote
4 answers
230 views

Atmega328p stops mid instruction when in interrupt

I want to make a basic temperature/humidity/CO2 controller with a SDC41 sensor and i want to use an INT0 interrupt to switch from normal controller mode to menu mode to change set values. When i press ...
Stefan Manolescu's user avatar
0 votes
0 answers
78 views

Using two UARTs to receive causes one UART to save data from another

I am working with the STM32-H7 microcontroller and am attempting to receive bytes from another microcontroller and then printing to Putty using the USB UART. I am using USART 2 and 6 with interrupts ...
yui1236's user avatar
0 votes
1 answer
106 views

Is parallel buffering with ISR possible?

Speaking generally, given a time-critical module and an MCU (act as buffer),. If we look at the datasheet of the module, we know the timing diagram. Then, it's possible we can read the module through ...
Muhammad Ikhwan Perwira's user avatar
6 votes
9 answers
2k views

Is it a good idea to perform I2C Communication in the ISR?

I am working with an I2C based sensor. The requirement is that whenever some new data is ready, it generates an interrupt (hey, new data is ready, aka RDY.) What I have implemented currently is, I ...
stack-overflow---'s user avatar

15 30 50 per page
1
2 3 4 5
59