I need to read data from a data register n times and calculate the average of that and write it into another data register.... I dont know how to do this at all...

Can anyone help me...

I need to read data from a data register n times and calculate the average of that and write it into another data register.... I dont know how to do this at all...

You need an assembler level programming. Are you familiar with assembler language(s)?

No.. I don't know how to do that.. If you can give me a small example program I will try to learn...

thank you

Okay what platform and compiler?... It's generally nothing, more than a single line in the inline assembler, unless you're executing it off the heap.