bingoz2002
Junior Member level 1
i'm using Assembly Language (MPLAB) to control a stepper motor and am using the timer module and interrupt. I need a delay of 0.5s. However, the timer will cause an overflow(to call interrupt) after an increment of 0000h to FFFFh. This will take 1.04s. How do i achieve a delay of 0.5s using this timer? it seems like the increment from 0000h to FFFFh is fixed and could not be stopped at any other value. the clock frequency is 2MHz. help anyone..