14 Eylül 2010 Salı

PİC KOMUTLARI NELER VE NE İŞE YARIYORLAR

PIC Komut Seti

Komut
Açılım
Tanım
BCFf , bBit Clear Filef nin b inci bitini sıfırla
BSFf , bBit set Filef nin b inci bitini 1 yap
BTFSCf , bBit test file, skip if clearf nin b inci biti 0 ise bir
komut atla
BTFSSf , bBit test file, skip if setf nin b inci biti 0 ise bir
komut atla
Addwff,dAdd w and fw ile f yi topla
d=1 ise sonucu f ye koy
d=0 ise sonucu w ye koy
Andwff,dAnd w with fw ile f ye AND işlemi yap
d=1 ise sonucu f ye koy
d=0 ise sonucu w ye koy
CLRFfCLEAR ff yi sil
CLRWCLEAR ww yi sil
COMFf,dComlement ff nin tersini al
DECFf,ddecrement ff yi 1 azalt
d=1 ise sonucu f ye koy
d=0 ise sonucu w ye koy
DECFSZf,ddecrement f skip if zerof yi bir azalt eğer sıfır ise bir komut atla
INCFf,dincrement ff yi bir artır.
INCFSZf,dincrement f skip if zerof yi bir artır eğer sıfır ise bir komut atla
IORWFf,dInclusive OR W with Fw ile f ye OR işlemi yap
MOVFf.dMove Ff yi taşı
MOVWFfMove W to Fw yi f ye taşı
NOPNO operationİşlem yapma
RLFf,dRotate Left F through CarryF yi birer bit sola kaydır

Biraz düşünürseniz bunun 2 ile çarpma olduğunu
anlarsınız.
RRFf,dRotate Right F through Carryf yi birer bit sağa kaydır
SUBWFf,dSubract W from ff den w yi çıkart
SWAPFf,dSwap nibles in
f
F nin 4 lü bitlerinin
yerini değiştir
XORWFf,dExclusive OR w with Fw ile f ye EXOR işlemi yap
ADDLWkAdd literal and wk yı w ye ekle
ANDLWkAnd literal with kk yı w ile And le
CALLkCall subroutine kk altyordamını çağır
CLRWDTClear Watchdog Timerwatchdog Timer temizle
GOTOkGoto address kk etiketine git
IORLWkInclusive or literal k with ww ile k yı IOR la
MOVLWkMove literal k to wk yı w ye taşı
RETFIEReturn from interruptkesmeden dön
RETLWkReturn with literal in
w
k yı w ye yükle ve dön
RETURNReturn from subroutineAltyordamdan dön
SLEEPGo into standby modeYat uyu, heç bişeycik yapma
SUBLWkSubtract w from literal kw yi k dan çıkart
EXORLWkExclisive OR literal k with Wk yı w ile Exor la

Hiç yorum yok:

Yorum Gönder

İzleyiciler

LED DİRENÇ HESAPLAMA

All LEDs require current limiting, without a current limiting mechanism the LED will usually burn out in under a second. Adding a simple resistor is the easiest way to limit the current. Use the calculator below to find out the value of resistor you require.

For example if you are wanting to power one of our_blank">red LEDs in an automotive application you would see that the typical forward voltage is 2.0 Volts and the maximum continuous forward current is 30mA. Therefore you would enter 14.5, 2.0 and 30 into the Single LED calculation box. After calculating you get 470ohm 1 watt as the result. Here is a that allows you to enter a resistor value and generate the corresponding color code.

Note: For automotive applications use the actual system voltage, not 12 Volts. Most 12 Volt system actually operate at around 14.5 Volts.

Supply Voltage
VOLTS
Voltage Drop Across LED
VOLTS
Desired LED Current
MILLIAMPS



Calculated Limiting Resistor
OHMS
Nearest higher rated 10% resistor

Calculated Resistor Wattage
WATTS
Safe pick is a resistor with
power rating of (common values are .25W, .5W, and 1W)
WATTS

LEDs in series

Several leds in series with one resistor
Supply Voltage
VOLTS
Voltage Drop Across LED
VOLTS
Desired LED Current
MILLIAMPS
How many LEDs connected




Calculated Limiting Resistor
OHMS
Nearest higher rated 10% resistor

Calculated Resistor Wattage
WATTS
Safe pick is a resistor with
power rating of (common values are .25W, .5W, and 1W)
WATTS
LM317 UYGULAMA DEVRELERİ HESAPLAMASI

 




Çıkış Voltajı
R1 resistor

R2 resistor

R1 resistor
R2 resistor

Çıkış Voltajı


Lm317 uygulama devreleri ve detayli bilgiye Buradan ulasabilirsiniz

LM555 - ASTABLE OSCILLATOR CALCULATOR

LM555 - ASTABLE OSCILLATOR CALCULATOR
Value Of R1 Ohms Value Of R2 Ohms
Value Of C1 Microfarads
Output Time HIGH SECONDS Output Time LOW SECONDS Output Period HIGH + LOW SECONDS Output Frequency HERTZ Output Duty Cycle PERCENT
Resistor values are in Ohms (1K = 1000) - Capacitor values are in Microfarads (1uF = 1)

NOTE: The leakage currents of electrolytic capacitors will affect the actual output results of the timers. To compensate for leakage it is often better to use a higher value capacitor and lower value resistances in the timer circuits.

LM555 Astable Oscillator Circuit Diagram


LM555 - ASTABLE CAPACITOR CALCULATOR

The next calculator can find the capacitance needed for a particular output frequency if the values of R1 and R2 are known.

Value Of R1 Ohms Value Of R2 Ohms
Frequency Desired Hertz
Capacitance uF
s

VOLT AMPER OHM ve WATT HESAPLAMA

Current:
kA (kiloamps) A (amps) mA (milliamps) µA (microamps)
Voltage:
kV (kilovolts) V (volts) mV (millivolts) µV (microvolts)