[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]
↧