Delay10KTCYx Fonksiyonu ne işe yarar

Başlatan baran123, 20 Aralık 2015, 18:07:08

baran123

Bu fonksiyonun ne işe yaradığının bulamadım. Derleyiciden kaynağına da erişemiyorum.Kullanmak istediğimde hata veriyor sanırım PIC18 ler için kullanılıyor.

10K dediğne göre 10.000 Cycle beklememi yapıyor ? 2 yazdığımızda ise 20.000 mi ?
Delay10KTCYx(2); //gibi


t2

Bu fonksiyonun ne işe yaradığını öğrenmek üzere mplabx helpi açtım. Arama kutucuğuna yazdım. şöyle bir detay çıktı:
  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




eeburakdemir

ama mplab xc8 de include edilemiyor <delays.h>
Asla pes etme...

Gökhan BEKEN

c18 derleyicisinde çalışıyordu bu fonksiyonlar, bildiğim kadarıyla.
Özel mesaj okumuyorum, lütfen göndermeyin.

eeburakdemir

http://www.studentcompanion.co.za/interfacing-lcd-display-with-pic-microcontroller-xc8/

bu linkteki anlatan kişi yazıyor , delays.h nasıl eklemiş çözemedim. xc nin versiyon farkındandır değildir diye düşünüyorum
Asla pes etme...