Kapalı

fix interrupt in AVR

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.

TASK:

I want the led to be turned ON, just when the button is released. (Make this by using interruptions)

Beceriler: C Programlama, Mikrodenetleyici

Daha fazlasını görün: i want to make logo for my company i need professional, i need my teeth fix asap i dont have the money to get them done where can i get help i am a single morther, i have an event and want an artist but don t know how much they charge, i am an accountant and i want job, google help me out please i want to write an essay from my mom and dad about how much i love them and i care about them and i wa, task 1 you take part in young writers competition you are asked to write a story write your story in about 120 words on answer s, if i have grade 9 and i want to be machenical engineer, i want to see make a take cut out of squares triangles rectangles and circles diffrent coloures paperspast them to make interset, i want to make my own website so i need complete html codes, i want to know clock time and there translation in french, i studied electronics engineering and i want to start my own business, the task of this is just to design a site like, i want rent high traffic blog buy, i am a photographer and i want to hire a graphic designer what contract do i need, delphi task high, javascript fix scroll, fix apache problems, fix server error application, css font weight fix, fix flash preloader ie7, fix hacked server, fix java script, css fix windows, grammar fix, fix css dropdown menu

İşveren Hakkında:
( 4 değerlendirme ) Porto, Spain

Proje NO: #14065391

25 freelancer bu iş için ortalamada 25$ teklif veriyor

CoherentTech123

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 Daha fazlası

in 3 gün içinde50$ USD
(30 Değerlendirme)
5.6
TheSane

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

1 gün içinde 25$ USD
(11 Değerlendirme)
5.0
ranganathp

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 Daha fazlası

1 gün içinde 25$ USD
(6 Değerlendirme)
4.9
1 gün içinde 45$ USD
(29 Değerlendirme)
4.7
OlektraGroup

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.

1 gün içinde 25$ USD
(10 Değerlendirme)
4.0
gab3iel

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 Daha fazlası

in 0 gün içinde30$ USD
(3 Değerlendirme)
3.3
saikumaru

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

1 gün içinde 25$ USD
(3 Değerlendirme)
3.1
rojuwon1222

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 Daha fazlası

in 3 gün içinde30$ USD
(4 Değerlendirme)
3.0
slobodanivkovic

A proposal has not yet been provided

1 gün içinde 30$ USD
(5 Değerlendirme)
2.6
hoduong

I can do it for you; just need to re-config interrupt , and modified the code Thanks

in 3 gün içinde25$ USD
(1 Değerlendirme)
2.3
dawsontahir

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 Daha fazlası

1 gün içinde 25$ USD
(1 Değerlendirme)
2.3
mike621

Hello Salvador, The task looks pretty simple. I think, I cam provide you with correct code my evening. As I see, you use _delay_ms in interrupt routine. This is not good. Interrupr routine should finish as soon as Daha fazlası

in 0 gün içinde30$ USD
(3 Değerlendirme)
2.1
kadircimenci

Hi, I am an Electronics & Mechanical Engineer and I have experience on embedded software/system development and control system design over 7 years. I have worked with different architectures like Microchip, ARM, AVR, Daha fazlası

in 2 gün içinde30$ USD
(1 Değerlendirme)
1.6
phthuanbk55

I'm working for Active-Semi Company. I have 2 years experiment in embedded software. Please choose me :)

1 gün içinde 10$ USD
(0 Değerlendirme)
0.0
in 25 gün içinde30$ USD
(0 Değerlendirme)
0.0
maksmusings

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,

1 gün içinde 25$ USD
(0 Değerlendirme)
0.0
movsw

In your schematic button is not placed on INT0. I have working sample for your schem. Any other changes?

1 gün içinde 10$ USD
(0 Değerlendirme)
0.0
1 gün içinde 30$ USD
(0 Değerlendirme)
0.0
Gehadelkot

hello i used some AVR products in my projects and i would like to help you with your task best regards Gehad

in 0 gün içinde10$ USD
(0 Değerlendirme)
0.0
techoviz

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 Daha fazlası

in 3 gün içinde20$ USD
(0 Değerlendirme)
0.0