B0 have to be a WORD sized variable unless it will only consider the 8 less significant bits. In this case 1000 will be considered as 232... hence why your timing is off. (232/1000=0.232 of expected value)
You can override most problem using ASM interrupt or Brilliants Darrel's Instant interrupts.




Bookmarks