AN INTRODUCTION INTENDED FOR PEOPLE WITH NO PRIOR AVR KNOWLEDGE - AVRFREAKS.NET
14
Stepping through the Code
AVR Studio allows running the code at full speed until a given point, and then
halt. We will however take if nice and slow, and manually press a button for every
instruction that should be executed. This is called single-stepping the code.
Press [ F11 ] once. This is the key for single-stepping. Note that the yellow arrow
is now pointing at the <nobr>LDI Temp, 0xFF</nobr> instruction. This is the
instruction that is going to be executed next.
Press [ F11 ] once more. The LDI instruction is executed, and the arrow points to
the OUT instruction. The Temp Register has now the value 0xFF. (If you open the
"Register 16-31" tree you will see that R16 contains 0xFF. We defined Temp to be
R16, remember?)
Commentaires sur ces manuels