You are right (as always, I see). Digging my files I found the Delay stuff I used and the hole thing counts down. I used to set the 16 bit register (Counter #2) with the desired delay value and wait until it gets <= zero. Sorry for the wrong info. JSouto "Paul B. Webster VK2BZC" wrote: > > PerErik Klarenfjord wrote: > ..... > > The 16 bit register used for the 18ms DOS/Windows ticks at 0.8xx us > > You can get small delays pooling this register. Let's say 400us. > > So, 400/0.8xx ~= 500. Get the reg value + 500 and keep comparing > > until you have a >=. > > Wrong way. It counts DOWN. > > > Watch out this register wrap from 0xFFFF to 0x0000 > > Yes - as above! > -- > Cheers, > Paul B.