Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20663

BASCOM-AVR : atmega128 problem : NEWTOPIC

$
0
0
a simple program (all ports output,will be high and low with 1 second interval) doesn't work at all.Any sign of life from atmega128.The same program written and compiled with C works out.The fuses O.K. no problem with the fuses.Please help me about it.Here is the program; $regfile = "m128def.dat" $crystal = 4000000 '$baud = 2400 $hwstack = 32 $swstack = 30 $framesize = 40 Config Portb = Output Config Portd = Output Config Portc = Output Config Porta = Output Config Portf = Output Config Porte = Output Config Portg = Output Loop: Portb = 255 Portc = 255 Portd = 255 Porta = 255 Portf = 255 Porte = 255 Portg = 255 Wait 1 Portb = 0 Portc = 0 Portd = 0 Porta = 0 Portf = 0 Porte = 0 Portg = 0 Wait 1 Goto Loop [b:980b19c1a6][color=red:980b19c1a6](BASCOM-AVR version : 2.0.7.6 )[/b:980b19c1a6][/color:980b19c1a6]

Viewing all articles
Browse latest Browse all 20663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>