I made this circuit: [url removed, login to view]
And this code: [url removed, login to view]
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.
I want the led to be turned ON, just when the button is released. (Make this by using interruptions)
23 freelance font une offre moyenne de $25 pour ce travail
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 Plus
Hi,Client. I have 13+ years experience in circuit, PCB design, manufacture and assemble, firmware and application. I had developed many products ago using various microcontroller including STM32 serial, Arduino, Ras Plus
Hi, You can easily check for the pin (PB3) value in the ISR and if it is high so it is rising edge. Best Regards, Ahmed
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 p Plus
dear Sir i can do this project. I can assure you that if you work with me once, you will always work with me for these kind of projects.
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 Plus
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
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 Plus
I'm working for Active-Semi Company. I have 2 years experiment in embedded software. Please choose me :)
Hi, I am experienced embedded systems designer and have been using AVR's for a long time and would love to work on this project. regards,
In your schematic button is not placed on INT0. I have working sample for your schem. Any other changes?
hello i used some AVR products in my projects and i would like to help you with your task best regards Gehad
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. Plea Plus
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 Plus