Haberler:

Eposta uyarılarını yanıtlamayınız ( ! ) https://bit.ly/2J7yi0d

Ana Menü

define osc

Başlatan digitech, 11 Mart 2004, 13:43:24

digitech

pic 628 kullanıyorum  bunu  pbp de  rc  osilatorunu kullanabilmek  icin  define  komutu  nasıl yazılıyor  =?
Calışmalarınızda Başarılar Dilerim T.Aykut Baştuğ ------------------------------------------ www.elektroturk.net mms://65.110.45.59/elektroturk  (online  yayinlar)

cozturk

@ device HS_OSC     'bu HS için.  olup aşağıdan seç beğen :lol:

@ device INTRC_OSC_NOCLKOUT




EXTRC_OSC_CLKOUT equ 3FF80007h ; XX XXXX XXXX X111
EXTRC_OSC_NOCLKOUT equ 3FF80006h ; XX XXXX XXXX X110
EXTRC_OSC equ

3FF80006h ; XX XXXX XXXX X110
INTRC_OSC_CLKOUT equ 3FF80005h ; XX XXXX XXXX X101
INTRC_OSC_NOCLKOUT equ 3FF80004h ; XX XXXX XXXX X100


INTRC_OSC equ 3FF80004h ; XX XXXX XXXX X100
HS_OSC equ 3FF80002h ; XX XXXX XXXX X010
XT_OSC equ 3FF80001h ; XX XXXX XXXX X001


LP_OSC equ 3FF80000h ; XX XXXX XXXX X000
WDT_ON equ 3FF70008h ; XX XXXX XXXX 1XXX
WDT_OFF equ 3FF70000h ; XX XXXX XXXX 0XXX


PWRT_OFF equ 3FEF0010h ; XX XXXX XXX1 XXXX
PWRT_ON equ 3FEF0000h ; XX XXXX XXX0 XXXX
PROTECT_OFF equ 009F3F60h ; 11 1111 X11X XXXX


PROTECT_ON equ 009F0000h ; 00 0000 X00X XXXX
MCLR_ON equ 3F7F0080h ; XX XXXX 1XXX XXXX
MCLR_OFF equ 3F7F0000h ; XX XXXX 0XXX XXXX



Its and override in the INC files for the following line: device pic16F628,
intrc_osc, wdt_on, pwrt_on, mclr_off, bod_on, lvp_off, protect_off

What I'm not sure of is if the

following would be valid - multiple lines
(can someone confirm?):

@ device INTRC_OSC_NOCLKOUT
@ device HS_OSC
@ device WDT_OFF