Initializing signal with 125Khz.

Status
Not open for further replies.

veerubiji

Member
Hi,
I have small problem with generating sine wave initially with 125 kHz. This seems very simple but it took lot of time from me but i couldn't figure it out what is the problem.
 
Last edited:
Your Problem is very special.

I would suggest You to take the debugger of Atmel's AVR Studio 4.

You should open the .cof file that would generated at compiling process of Code Vision AVR.
The set AVR Simulator, Your Controller and the actual Clock speed.

Now you can go through Your Programm step by step an take a look at all used variable values if they are right or wrong.
Also You can take a look into the memory.

Your periphery ist hard to simulate, but you can see what bytes are written into the SPI data register.
 

Yes, thanks alot. it worked well, now i have resolved as per your suggestions.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…