FA21 - Lec08-2021-10-09 - AVR Programming in C
FA21 - Lec08-2021-10-09 - AVR Programming in C
in C
LECTURE# 08
MICROPROCESSOR SYSTEMS AND INTERFACING
Inputting data
◦ Role of DDR and PORT register
◦ Synchronizer delay
return 0;
}
for(z=0; z < 200; z++) //run the next line 200 times
PORTB = ~PORTB; //toggle PORTB
signed int
◦ 16-bit data type
◦ Most significant bit represents sign
◦ The variable can store values -32,768 to +32,767
Since AVR is 8-bit microcontroller, will take 2 locations for each variable
Multiple instructions will be needed for performing operations
End of lecture