0

Can't get a sweeping 16 kHz square wave output
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Can't get a sweeping 16 kHz square wave output

by san26141 on Thu Jun 25, 2009 7:27 pm

I am stuck in the Analog/Digital tuning section of the build. I have been able to run the test_led (although it doesn't blink once/sec?) but I am having problems with the PWM test (test_DC).

I probe the L5 & L6 input and I get a sweeping 2 kHz squarewave not the 16 kHz as in the build instructions.

The ucontroller is the atmega88 with the Avrisp MKII and I'm using Avr studio4 with avr_gcc.

Thanks for any help you can give me.

D
san26141
 
Posts: 3
Joined: Mon Mar 09, 2009 9:36 am

Re: Can't get a sweeping 16 kHz square wave output

by nux on Thu Jun 25, 2009 10:53 pm

Sounds like you have not programmed your fuses correctly, the AVR may have the divide by eight clock divider set.
Although, I could not get a square wave output to display on my scope when I was testing that section, but all subsequent sections worked.
nux
 
Posts: 23
Joined: Sun Mar 22, 2009 11:48 pm

Re: Can't get a sweeping 16 kHz square wave output

by san26141 on Fri Jun 26, 2009 7:12 pm

That was it....the divide by 8 was set. Unchecked it and burned it again and it worked.

Thanks!
san26141
 
Posts: 3
Joined: Mon Mar 09, 2009 9:36 am

Please be positive and constructive with your questions and comments.