I made this circuit: [login to view URL]
And this code: [login to view URL]
There's a led in PB1 and a button in PB3. When the button is pressed, PB3 pin change its state from high level to low level, this produces an external interrupt. The code of this interrupt, makes the led turn on for 100ms.
But this code, turn ON the led everytime the button is pressed/released, that means everytime PB3 change its state.
TASK:
I want the led to be turned ON, just when the button is released. (Make this by using interruptions)
Hello Dear,
I am an expert with more than 15 years of experience in the field of embedded systems, electronics and programming. I have all the development tools and hardware to develop the solution.
Regards
Ch
FREELANCER RECOMMENDED
------------------------------------------------------
Can help... I am an Expert... Lets Start!
Please start a Discussion with me and we can get started from there...
Please check the past projects I have handled and check my reviews for what employers have to say about my work... Can start right now...
hi, solution
change this line
MCUCR &= ~(1<<ISC01) | ~(1<<ISC00); // Trigger INT0 on rising edge
to
MCUCR &= ~(1<<ISC01) | ~(0<<ISC00); // Trigger INT0 on rising edge
let me know
buenas,
tener delay en el ISR es mala idea, la mejor opción es usar una variable para detectar el cambio y hacer el resto en otra parte del código... incluyendo el filtro para el botón.
Puedo solucionar el problema y entregar el código.
un saludo,
Gabriel
Hi there. Having worked with Atmel AVR controllers quite a lot, I feel like this feature will be quite simple to implement and I will ideally provide the completed program in under a day. Please feel free to contact me for further details about my skills and qualifications. Thank you.
Hello! My name is Jackie. Currently, I am working as an embedded programmer. I have joined many projects to program firmware for micro controller. I am good at C/C++ and have a lot of experience of working with AVR. I make sure to finish your project well. Do not hesitate to contact me.
Hello,
We are a team of embedded hardware and software professionals with experience in microcontroller based projects.
Would like to know more about the project.
Looking forward to work on this project.
Please feel free to contact us for any further discussions.
Thanks and Regards
Techoviz