Hi all,
I think, I have similar problem like this [url]http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=11597&highlight=atmega128[/url].
I tried very simple program for piezo but I get one continuous tone without interruption. I use paid Bascom version.
In the attachment you can find schematic and fuse bits. Any idea ?
[code:1:bfe35746d9]
$regfile = "m128def.dat"
$hwstack = 40
$swstack = 16
$framesize = 32
Const Xtal = 8000000
$crystal = Xtal
Config PIND.4 = Output
Piezo Alias PIND.4
Do
Sound Piezo , 65 , 400
waitms 700
Loop
End
[/code:1:bfe35746d9][/code]
[b:bfe35746d9][color=red:bfe35746d9](BASCOM-AVR version : 2.0.7.6 )[/b:bfe35746d9][/color:bfe35746d9]
↧