I am learning to debug AVR in AtmelStudio. So I have written a simple program to test. But it compiles correctly but not executes as expected. I had written following code ATmega32
#include <avr/io.h>
int main(void)
{
DDRA = 0xFF;
PORTA = (10/100)*255;
return 0;
}
And from the debug menu selected Start Debugging and Break. In IO window I have selected I/O Port (PORTA). I pressed F11 key for step by step execution. Only DDRD is written with required value but porta is not assigned any value and it completes debuging. Why PORTA is not written any thing.