Delay10KTCYx(2); //gibi
Delay10KTCYx | |
Function: | Delay in multiples of 10,000 instruction cycles (Tcy). |
Include: | delays.h |
Prototype: | void Delay10KTCYx( unsigned char unit ); |
Arguments: | unit The value of unit can be any 8-bit value. A value in the range [1,255] will delay (unit * 10000) cycles. A value of 0 causes a delay of 2,560,000 cycles. |
Remarks: | This function creates a delay in multiples of 10,000 instruction cycles. This function uses the globally allocated variable, DelayCounter1. If this function is used in both interrupt and mainline code, the variable DelayCounter1 should be saved and restored in the interrupt handler. Refer to the save= clause of the #pragma interrupt or #pragma interruptlow directives for more information. Note that other delay functions also use the globally allocated DelayCounter1 variable. |
File Name: | d10ktcyx.asm |