Forum: µC & Digital Electronics analyse the ATXMEGA128A1 calculation speed

von Xinyu S. (Company: IEI TU Clausthal) (royshoo)

Rate this post
0 useful
not useful
Hi all,

I have this ATXMEGA128A1 Xplained board and want to implement this for 
some noise control application. I plan to use fixed-point arithmetik 
with the largest system clock of the chip (32MHz). Let's say for this 
application I am using a sampling time of 1ms (sampling frequency 1kHz). 
By every sampling instant (every millisec) there are 100 32-bit 
fixed-point multiplications (with 32-bit integer) to be performed.

Here is the question: How can I analyse whether the system clock of 
32MHz is fast enough for these 100 fixed-point multiplication within 
1ms? How many cycles does one 32-bit integer multiplication take? Since 
I did not find the information in the datasheet so I wonder whether 
someone could help me with that.

Thank you very much!


: Edited by User
von Klausy (Guest)

Rate this post
0 useful
not useful
Use a Timer starts with first multiplication and stops after last.
Read out the Timer value...


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.