help me in this area I am stuck in between of my project..
As you are using an ATmega16 micro, I would recommend posting this question on the AVR forum.
For a brief description of MMA7455L SPI communication and example communication routines, please refer to the attached file.
I hope it helps.
PS: If my answer helps to solve your question, please mark it as "Correct" or “Helpful”. Thank you.