Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: stopgo on May 10, 2008, 10:39:20 PM

Title: Checking system clock speed on at atmega88
Post by: stopgo on May 10, 2008, 10:39:20 PM
Any idea how I can use a scope to do this?  I think my fuses are correctly set, but it would be nice to be sure.
Title: Re: Checking system clock speed on at atmega88
Post by: benji on May 11, 2008, 03:21:41 AM
download a program which set a pin on and of ,somthing like this

define xtal 8mhz
[
Code: [Select]
while(1)
{ portd.0 = 0;
 delay_ms(20);
portd.0=1;
delay_ms(20);
}
check with osci if the timing is right then its running under 8 mhz