قسم الميكروكنترولر والروبوت ودوائر الاتصال بالحاسب الالي قسم المتحكمات الـ microcontroller و المعالجات microprocessor و التحكم الرقمي بالكمبيوتر CNC والانظمة الآلية والروبوت Robots

أدوات الموضوع

momrw3
:: مهندس ::
تاريخ التسجيل: Jun 2009
المشاركات: 5
نشاط [ momrw3 ]
قوة السمعة:0
قديم 26-06-2009, 07:24 AM المشاركة 1   
افتراضي ممكن تصويب هذا البرنامج ومعرفة مكان الخطأ Twitter FaceBook Google+



الاخوة الكرام ممكن معرفة اين الخطأ وتصويبة ولكم منى وافر التقدير والاحترام
كود:
list p= pic16f84a -
include p16f84a.inc
__config 0x3ff2 -
start    org 0x00
bsf 03,5 Oscillator -
movlw 00h
movwf 05h
movwf 06h
bcf 03,5
goto aa
table   addwf 02h,1
retlw 00h
retlw 7fh
M
retlw 20h        ;M
retlw 10h
retlw 20h
retlw 7fh
retlw 00h
retlw 3eh O
retlw 41h
retlw 41h        ;O
retlw 41h
retlw 3eh
retlw 00h
retlw 7fh
retlw 08h H
retlw 08h
retlw 08h        ;H
retlw 7fh
retlw 00h
retlw 0fh
retlw 18h
retlw 48h A
retlw 18h        ;A
retlw 0fh
retlw 00h
retlw 7fh
retlw 20h        ;M
retlw 10h M
retlw 20h
retlw 7fh
retlw 00h
retlw 7fh
retlw 49h   
retlw 49h
E
retlw 41h        ;E
retlw 41h
retlw 00h
retlw 7fh
retlw 41h
retlw 41h
D
retlw 41h
retlw 3eh        ;D
retlw 00h retlw 00h retlw 00h retlw 00h retlw 00h
retlw 00h retlw 00h retlw 00h retlw 00h retlw 00h
retlw 00h retlw 00h retlw 00h retlw 00h retlw 00h
retlw 00h retlw 00h retlw 00h retlw 00h retlw 00h
retlw 00h retlw 00h retlw 00h retlw 00h retlw 00h
retlw 00h retlw 00h retlw 00h retlw 00h retlw 00h
retlw 00h retlw 00h retlw 00h retlw 00h retlw 00h
retlw 00h retlw 00h retlw 00h retlw 00h retlw 00h
0
12

retlw 00h retlw 00h retlw 00h retlw 00h retlw 00h
retlw 00h retlw 00h retlw 00h retlw 00h retlw 00h
retlw 00h retlw 00h retlw 00h retlw 00h retlw 00h
retlw 00h retlw 00h retlw 00h retlw 00h retlw 00h
retlw 0ffh
aa        clrf 11h clrf 12h clrf 13h clrf 12h clrf 13h
     clrf 11h clrf 12h clrf 13h clrf 12h clrf 13h
clrf 11h clrf 12h clrf 13h clrf 12h clrf 13h
clrf 11h clrf 12h clrf 13h clrf 12h clrf 13h
             clrf 11h clrf 12h clrf 13h clrf 12h clrf 13h
             clrf 11h clrf 12h clrf 13h clrf 12h clrf 13h
             clrf 11 h clrf 12h clrf 13h clrf 12h clrf 13h
             clrf 11h clrf 12h clrf 13h clrf 12h clrf 13h
             clrf 11h clrf 12h clrf 13h clrf 12h clrf 13h
             clrf 11h clrf 12h clrf 13h clrf 12h clrf 13h
             clrf 11h clrf 12h clrf 13h clrf 12h clrf 13h
             clrf 11h clrf 12h clrf 13h clrf 12h clrf 13h
movlw 00
movwf 0ch
bb         movlw b'00111111' 0CH .1
movwf 0dh
call shift
incf 0ch,1
movf 0ch,0  .
call table 0DH .2
movwf 4fh
xorlw h'ff    ' .Scanning
btfsc 03,2
goto aa 0FF    .3
cc          decfsz 0dh,1
.
goto dd
goto bb
dd         call scan
goto cc
scan      bsf 05,1
nop
bcf 05,1 74LS164
bsf 05,2
bsf 05,0
nop
bcf 05,0
bcf 05,2
movf 11h,0    movwf 06h     call delay
movf 12h,0    movwf 06h     call delay
movf 13h,0    movwf 06h     call delay
movf 14h,0    movwf 06h     call delay
movf 15h,0    movwf 06h     call delay
movf 16h,0    movwf 06h     call delay
movf 17h,0    movwf 06h     call delay
movf 18h,0    movwf 06h     call delay
movf 19h,0    movwf 06h     call delay
movf 1ah,0    movwf 06h     call delay
movf 1bh,0    movwf 06h     call delay
movf 1ch,0    movwf 06h     call delay
movf 1dh,0    movwf 06h     call delay
movf 1eh,0    movwf 06h     call delay
movf 1fh,0     movwf 06h      call delay
movf 20h,0    movwf 06h     call delay
movf 21h,0    movwf 06h     call delay
movf 22h,0    movwf 06h     call delay
movf 23h,0    movwf 06h     call delay
movf 24h,0    movwf 06h     call delay
movf 25h,0    movwf 06h     call delay
movf 26h,0    movwf 06h     call delay
movf 27h,0    movwf 06h     call delay
movf 28h,0    movwf 06h     call delay
movf 29h,0    movwf 06h     call delay
movf 2ah,0    movwf 06h     call delay
movf 2bh,0    movwf 06h     call delay
movf 2ch,0    movwf 06h     call delay
movf 2dh,0    movwf 06h     call delay
movf 2eh,0    movwf 06h     call delay
13

movf 2fh,0    movwf 06h     call delay
movf 30h,0    movwf 06h     call delay
movf 31h,0    movwf 06h     call delay
movf 32h,0    movwf 06h     call delay
movf 33h,0    movwf 06h     call delay
movf 34h,0    movwf 06h     call delay
movf 35h,0    movwf 06h     call delay
movf 36h,0    movwf 06h     call delay
movf 37h,0    movwf 06h     call delay
movf 38h,0    movwf 06h     call delay
movf 39h,0    movwf 06h     call delay
movf 3ah,0    movwf 06h     call delay
movf 3bh,0    movwf 06h     call delay
movf 3ch,0    movwf 06h     call delay
movf 3dh,0    movwf 06h     call delay
movf 3eh,0    movwf 06h     call delay
movf 3fh,0    movwf 06h     call delay
movf 40h,0    movwf 06h     call delay
movf 41h,0    movwf 06h     call delay
movf 42h,0    movwf 06h     call delay
movf 43h,0    movwf 06h     call delay
movf 44h,0    movwf 06h     call delay
movf 45h,0    movwf 06h     call delay
movf 46h,0    movwf 06h     call delay
movf 47h,0    movwf 06h     call delay
movf 48h,0    movwf 06h     call delay
movf 49h,0    movwf 06h     call delay
movf 4ah,0    movwf 06h     call delay
movf 4bh,0    movwf 06h     call delay
movf 4ch,0    movwf 06h     call delay
movf 4dh,0    movwf 06h     call delay
movf 4eh,0    movwf 06h     call delay
movf 4fh,0     movwf 06h     call delay
    return
shift    movf 12h,0 movwf 11h
movf 13h,0 movwf 12h
movf 14h,0 movwf 13h
movf 15h,0 movwf 14h
movf 16h,0 movwf 15h
movf 17h,0 movwf 16h
movf 18h,0 movwf 17h
movf 19h,0 movwf 18h
    movf 1ah,0                      movwf 19h
movf 1bh,0 movwf 1ah
movf 1ch,0 movwf 1bh
movf 1dh,0 movwf 1ch
movf 1eh,0 movwf 1dh
          movf 1fh,0 movwf 1eh
movf 20h,0 movwf 1fh
movf 21h,0 movwf 20h
movf 22h,0 movwf 21h
movf 23h,0 movwf 22h
movf 24h,0 movwf 23h
movf 25h,0 movwf 24h
movf 26h,0 movwf 25h
movf 27h,0 movwf 26h
      movf 28h,0 movwf 27h
movf 29h,0 movwf 28h
movf 2ah,0 movwf 29h
movf 2bh,0 movwf 2ah
movf 2ch,0 movwf 2bh
movf 2dh,0 movwf 2ch
movf 2eh,0 movwf 2dh
movf 2fh,0 movwf 2eh
movf 30h,0 movwf 2fh
movf 31h,0 movwf 30h
        movf 32h,0 movwf 31h
movf 33h,0 movwf 32h
movf 34h,0 movwf 33h
movf 35h,0 movwf 34h
      movf 36h,0      movwf 35h
movf 37h,0   movwf 36h
movf 38h,0 movwf 37h
movf 39h,0 movwf 38h
movf 3ah,0 movwf 39h
movf 3bh,0 movwf 3ah
      movf 3ch,0 movwf 3bh
movf 3dh,0 movwf 3ch
movf 3eh,0 movwf 3dh
14

movf 3fh,0 movwf 3eh
movf 40h,0 movwf 3fh
movf 41h,0 movwf 40h
movf 42h,0 movwf 41h
movf 43h,0 movwf 42h
movf 44h,0 movwf 43h
movf 45h,0 movwf 44h
movf 46h,0 movwf 45h
movf 47h,0 movwf 46h
movf 48h,0 movwf 47h
movf 49h,0 movwf 48h
movf 4ah,0 movwf 49h
movf 4bh,0 movwf 4ah
movf 4ch,0 movwf 4bh
movf 4dh,0 movwf 4ch
       movf 4eh,0 movwf 4dh
movf 4fh,0 movwf 4eh
            return
delay decfsz 0eh,1
goto delay
movlw 00h
movwf 06
      bsf 05,0
nop Delay Time
bcf 05,0
return
End

اعلانات

rimawi2008
:: مهندس متواجد ::
تاريخ التسجيل: Feb 2007
المشاركات: 104
نشاط [ rimawi2008 ]
قوة السمعة:0
قديم 09-07-2009, 08:54 PM المشاركة 2   
افتراضي


ممكن توضح ايش الخلل الي صار معاك عشان اقدر اساعدك

اعلانات اضافية ( قم بتسجيل الدخول لاخفائها )
  

الصورة الرمزية محمد50
محمد50
:: عضو فضي ::
تاريخ التسجيل: Mar 2006
المشاركات: 447
نشاط [ محمد50 ]
قوة السمعة:91
قديم 10-07-2009, 08:49 PM المشاركة 3   
افتراضي


اللهم صلى وسلم وبارك على سيدنا محمد
كما يبدولى البرنامج صحيح ربما المشكل عندك فى الدائرة


الصورة الرمزية SAMI-ALG
SAMI-ALG
:: مهندس جيد ::
تاريخ التسجيل: Jul 2009
الدولة: الجزائر
المشاركات: 199
نشاط [ SAMI-ALG ]
قوة السمعة:0
قديم 28-07-2009, 05:19 PM المشاركة 4   
افتراضي


السلام عليكم ورحمة الله وبركاته

لا حظ هنا CONFIG 0x3ff2 هذا يعني انك تستخدم مؤقت خارجي HS_OSC

في حين ان معظمنا يستخدم الكوارتز XT بهذا تكون ال configuration كالاتي

CONFIG 0x3ff9

هذا فقط تنبيه اما فيما يخص البرنامج حبذا لو تضع الدارة لتتبعه

ودمت في رعاية الله وحفظه

إضافة رد

العلامات المرجعية

«     الموضوع السابق       الموضوع التالي    »
أدوات الموضوع

الانتقال السريع إلى


الساعة معتمدة بتوقيت جرينتش +3 الساعة الآن: 02:37 AM
موقع القرية الالكترونية غير مسؤول عن أي اتفاق تجاري أو تعاوني بين الأعضاء
فعلى كل شخص تحمل مسئولية نفسه إتجاه مايقوم به من بيع وشراء وإتفاق وأعطاء معلومات موقعه
التعليقات المنشورة لا تعبر عن رأي موقع القرية الالكترونية ولايتحمل الموقع أي مسؤولية قانونية حيال ذلك (ويتحمل كاتبها مسؤولية النشر)

Powered by vBulletin® Version 3.8.6, Copyright ©2000 - 2025