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

BASCOM-AVR : This is a compiler bug?($ crystal) : REPLY

$
0
0
[quote:34ae2a851c="Plons"]Aha, I see: Mode = Background requires a 16 bit timer. But my first remark is still valid. I copied your posted program in the IDE and I get compiler errors. I suggest you *copy* what you wrote in the IDE to this forum, instead of re-typing it. That prevents confusion. Nevertheless, I see your problem when a crystal value of 16000000 or 14745600 is used. Looks like a problem with the new Background feature.[/quote:34ae2a851c] Compile both codes, You will see the difference [code:1:34ae2a851c] $regfile = "m128def.dat" $crystal = 18432000 Config Timer1 = Timer , Prescale = 1 Config Rc5 = Pind.4 , Timer = 1 , Wait = 2000 , Mode = Background [/code:1:34ae2a851c] [code:1:34ae2a851c] $regfile = "m128def.dat" $crystal = 14745600 Config Timer1 = Timer , Prescale = 1 Config Rc5 = Pind.4 , Timer = 1 , Wait = 2000 , Mode = Background [/code:1:34ae2a851c]

Viewing all articles
Browse latest Browse all 20562

Trending Articles



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