The delay_1ms statement causes the processer to wait a short time.The time interval is measured in units of 1 millisecond (that is 0.001 seconds)
The minimum delay period is 1 unit (1 * 1 millisecond), the maximum delay period is 256 units (256 * 1 millisecond = 0.256 seconds).
syntax
delay_1ms dlywhere dly is the number of units to wait (NOTE dly is mod 256, so 0 is the same as 256, 257 is the same as 1 etc)
NOTE: If interrupts are enabled and interrupts occure during the execution of the delay_1ms statement then the delay may become much longer than required. If accurate delays are required, then interrupts should be disabled. If interrupts are disabled then beware that some other high priority activity (which is serviced by the interrupt) may be neglected and possibly ignored completely.