I wanted to know some information on simulation of any 8 bit AVR microcontroller on Proteus. Please help me if you know anything about these : -
(I have just recently started using the softwares Atmel Studio 7 and Proteus 8 Professional).
1) So far I have understood that if I want to display the output of any mathematical operation that I perform in my code, blinking LEDS is an option / or displaying through LCDs , these are the only way possible . (Please correct me if I'm wrong)
Is there any way to just do normal printing on any console using Atmel Studio ? (I have tried using printf statement, the code builts without any error, but I couldnt figure out where will the print statement show up :/ ) Is it possible at all ?
Though sprintf kindof works.
Suppose I want to perform a normal multiplication of larger than 8 bits input say, a =1234 , b =7346 , c= a*b , will I need to use multiprecision arithmetic library like GMP?
2)Second thing is, in normal C code, when I do some mathematical operation, I can measure the cpu cycles it took to perform that certain task. In case of simulation of a microcontroller, I know I can run my same C code on Atmel Studio and simulate on any microcontroller on Proteus, but will it be possible to measure processor cycles it took to perform that particular operation on Proteus? If so then how?