Home Login Sign Up Blogs & Articles Jobs Mobiles & Tablets Online Calculators Engineering Projects List Groomix Enterprises Publish your topics Ask Question About Blogs & Articles Feedback

programming

views : 277

ATMEL STUDIO-While loop is not working using interrupt incremented conditioning

Resolves : In ATMEL STUDIO, while loop can be control using interrupt conditioning change only if inside while loop atleast single statement present which will process and go to next statement. See following examples.

Here while loop will not work and it will go to infinite loop

Suppose you have enable interrupt which increment a global variable say 'index' in every second, then below conditional while loop will not work :

index=0; // it is incrementing every second by interrupt
while(index > 0){
     if(a>b){PORTB = 0xff;}
}

 

loop work properly

index=0; // it is incrementing every second by interrupt
while(index > 0){
     PORTD=0;  //any statement without any condition
     if(a>b){PORTB = 0xff;}
}

Posted By :
Mr. Unique

2017-08-02/00:44:57

Share this Page

Comments...

Please, Login to comment or reply

More :programming

programming
Arduino UNO tachometer coding with variable resistor and DC motor speed control

p

programming
Here is the code to interface 2 serial devices with AVR

p

programming
Software Uart for AVR microcontroller tested on 1200 baud rate

p

programming
ATMEL STUDIO-While loop conditioning issues

p

programming
ATMEL STUDIO-While loop is not working using interrupt incremented conditioning

p

programming
Copy and paste code for facebook share button in your websites
programming
How to program atmel 8051 family microcontroller? (step by step)
programming
Embedded program code in C language for Digital Voltmeter for AVR microcontroller
programming
Assemby program code for Automatic Door Opening System (8051 family microcontroller)
programming
Very simple and accurate Seven Segment Display program Code in Embedded C language

p

programming
Highway vehicle speed detector or checker Embedded C language code in MikroC AVR Framework also applicable for 8051 Microcontroller

p

programming
Assembly program for accurate 1 second delay function
programming
What is Embedded system programming?

Latest Updates

programming
Arduino UNO tachometer coding with variable resistor and DC motor speed control
views :167

p

programming
Here is the code to interface 2 serial devices with AVR
views :143

p

programming
Software Uart for AVR microcontroller tested on 1200 baud rate
views :723

p

programming
ATMEL STUDIO-While loop conditioning issues
views :181

p

programming
ATMEL STUDIO-While loop is not working using interrupt incremented conditioning
views :277

p

programming
Copy and paste code for facebook share button in your websites
views :284
programming
How to program atmel 8051 family microcontroller? (step by step)
views :289
programming
Embedded program code in C language for Digital Voltmeter for AVR microcontroller
views :230
programming
Assemby program code for Automatic Door Opening System (8051 family microcontroller)
views :170
programming
Very simple and accurate Seven Segment Display program Code in Embedded C language
views :179

p

programming
Highway vehicle speed detector or checker Embedded C language code in MikroC AVR Framework also applicable for 8051 Microcontroller
views :100

p

programming
Assembly program for accurate 1 second delay function
views :149
programming
What is Embedded system programming?
views :180

Reach Us From Google Map

DO MORE WITH US

PRODUCT CATEGORY