Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 40
  1. #11

    Quote Originally Posted by blaklist25 View Post
    unsa na part may wa masabti? naa man mga comments sa code..... aw...unsa dy problema ani?
    naglibog ka sa instruction set? like BCF, BSF,SUBLF, etc?

    refer lang ari para ana....
    PIC microcontroller - Wikipedia, the free encyclopedia

    uu.. d kaau ko sweto gud mao needed jud kaau nako ang inyong tabang... ng.try nman kog basa2 sa data sheet pero mg.libog jpon ko...

  2. #12
    Quote Originally Posted by blaklist25 View Post
    unsa na part may wa masabti? naa man mga comments sa code..... aw...unsa dy problema ani?
    naglibog ka sa instruction set? like BCF, BSF,SUBLF, etc?

    refer lang ari para ana....
    PIC microcontroller - Wikipedia, the free encyclopedia
    wala kaau ko mkasabot doh..ng.basa2 nman kos data sheet pero mg.libog jpon ko mao needed jud nako ang inyong help... willing ko mkig-kta ug mu.byad para lng jud ani nga program.. i hope mka.tabang moh...

  3. #13
    @TS, unsa'y sulod ani nga mga files?

    Kani..

    MOVLF.inc
    MOVFF.inc
    SUBLF.inc
    SUBFF.inc

    Og, unsa pud ang wa nimo nasabtan ani?
    Naa mo basic lesson ani na-agian? abot na man gud mo sa EEPROM.

    unsa man mga external hardware ani like Keypad? LCD? 7-seg? etc. much better schematic nalang bro..

  4. #14
    klarohon sa nato..
    gikan ni sa imoha teacher.. so working na ni ang code?
    nia ang giquire ani ky dapat sabton ninjo ang code ky ijaha mo pangutan-on line-by-line og ipaexplain sa injuha unsa ang flow sa code?
    so mao na problema ky wa kaau masabti ag code, so patabang ka paexplain unsa ag dagan sa code line by line?

  5. #15
    Quote Originally Posted by stealthghost View Post
    @TS, unsa'y sulod ani nga mga files?

    Kani..

    MOVLF.inc
    MOVFF.inc
    SUBLF.inc
    SUBFF.inc

    Og, unsa pud ang wa nimo nasabtan ani?
    Naa mo basic lesson ani na-agian? abot na man gud mo sa EEPROM.

    unsa man mga external hardware ani like Keypad? LCD? 7-seg? etc. much better schematic nalang bro..
    MOVFF MACRO REG1, REG2
    MOVF REG1,0
    MOVWF REG2
    ENDM

    MOVLF MACRO LIT, REG
    MOVLW LIT
    MOVWF REG
    ENDM

    SUBFF MACRO REG1,REG2
    MOVF REG1,0
    SUBWF REG2,0
    ENDM

    SUBLF MACRO LIT,REG
    MOVLW LIT
    SUBWF REG,0
    ENDM

    naa mi basic na-agi-an sir pero ang nkapait is maglibog man jpon ko maski sa basics man lng pd...

    naa xa keypad as well as the leds..

    about dy sa schematic sir ky amu pa g-edit ug blik ky d xa mu.run. mao ni xa ang katong amung g.hmu sauna nga schematic..

    by the way, unsaon nako pg-butang sa akong schematic sa ngari sa istorya.net pra mkit-an ninyo.. newbie man gud ko.. heheh..

  6. #16
    Quote Originally Posted by blaklist25 View Post
    klarohon sa nato..
    gikan ni sa imoha teacher.. so working na ni ang code?
    nia ang giquire ani ky dapat sabton ninjo ang code ky ijaha mo pangutan-on line-by-line og ipaexplain sa injuha unsa ang flow sa code?
    so mao na problema ky wa kaau masabti ag code, so patabang ka paexplain unsa ag dagan sa code line by line?
    working nman dw xa doh...uu, ipa.explain nya ang flow sa amung program ug wala kaau namu masabtan ang code mao mg.patabang mig explain kung unsa jd ang dagan sa amung program... mao na amung problma for now....

  7. #17
    ok ra ts kasabot ko nimo ako gani na nag basa ra ko sa thread wala ko kasabot, unsa nakaha ka na kailangan mag tuon sa program. ako nalang ma ishare kay iclear nalang sah imo mind before ka mu dive balik ug tuon sa code gud luck!

  8. #18
    Quote Originally Posted by neo_nine View Post
    ok ra ts kasabot ko nimo ako gani na nag basa ra ko sa thread wala ko kasabot, unsa nakaha ka na kailangan mag tuon sa program. ako nalang ma ishare kay iclear nalang sah imo mind before ka mu dive balik ug tuon sa code gud luck!
    mao lgeh bai neo.. libog kaau ang program nya naa pjud EEPROM...

  9. #19
    Quote Originally Posted by outwit View Post
    mao lgeh bai neo.. libog kaau ang program nya naa pjud EEPROM...
    ayaw kabalaka anang EEPROM. kay mao na'y sudlan sa imung data.

    Anyways, asa man jud ani imu wa nasabtan d.i bro? unsa nga line?

    Spoiler: Initialization sa PIC 

    Code:
    ; F_KEYPAD_84A_1.ASM WITH EEPROM
    ; TURN ON ALARM IF ACTIVATED BY PIR AND NO PWD INPUT (TIME-OUT)
    ;====================================================================
    ; P R O C E S S O R
    list     p=16F84A
    #include    <p16F84A.inc>
    
    __CONFIG   _CP_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC
    ;====================================================================
    ; M A C R O S (SEPARATE FILES)
    #include    <MOVLF.inc>
    #include    <MOVFF.inc>
    #include    <SUBLF.inc>
    #include    <SUBFF.inc>
    ;====================================================================
    ; P R E - L O A D  E E P R O M
    ORG     0X2100
    DE     01H, 02H, 03H, 04H     ; DEFINE EEPROM CONTENTS AT BURN TIME
    ;====================================================================
    ; R E S E T  V E C T O R
    ORG     0X000
    GOTO    SETTING
    ;====================================================================
    ; I N T E R R U P T  V E C T O R
    ORG     0X004
    RETFIE
    ;====================================================================
    ; M A I N
    SETTING
    BSF STATUS,RP0
    MOVLF 10H,PORTA
    BCF     PORTB,7
    BCF OPTION_REG,7
    BCF STATUS,RP0
    CLRF    PORTA
    
    ;--------------------------------------------------------------------


    Spoiler: Standby/Option Mode 

    Code:
    TRGR_MAIN
    CALL    LEDS_TRGR_MAIN
    BSF STATUS,RP0    
    MOVLF 77H,PORTB     ; ROW4 OF KEYPAD
    BCF STATUS,RP0
    CALL    TST_MRK_BZR
    BCF     PORTB,3
    TST_TRGR_BZR
    BTFSS    1DH,0
    GOTO    TST_TRGR_RA4    ; ALARM OFF, TEST OTHER TRIGGERS
    GOTO    TRGR_PND_PWD    ; ALARM ON, PRESS # THEN PWD THEN *
    TST_TRGR_RA4
    BTFSS    PORTA,4
    GOTO    TST_TRGR_PND    ; ALARM OFF, NOT TRIGGERED BY PIR
    ; TRIGGERED BY RA4 (PIR)
    CALL    LEDS_IN_PWD     ; INPUT PWD (3 ATTEMPTS)
    MOVLF    3CH,29H     ; 3CH = 60 LOOPS BEFORE TIME-OUT
    BSF     1FH,7     ; MUST COUNT KEYPAD SCAN
    GOTO    INPUT_PWD    
    TST_TRGR_PND
    BTFSC    PORTB,6    
    GOTO    TST_TRGR_BZR    ; # NOT PRESSED, WAIT FOR TRIGGER
    GOTO    TRGR_PND_OPT    ; # PRESSED, WAIT FOR OPTION
    ;--------------------------------------------------------------------


    Spoiler: Entering Password 

    Code:
    INPUT_PWD
    MOVFF    12H,PORTA     ; LOAD CURRENT STATE OF INDICATORS
    INPUT_HERE
    CALL    ASK_PWD
    BTFSC    1FH,7
    GOTO    INPUT_CONT
    BSF     1DH,0     ; ALLOWED LOOPS FINISHED
    CALL    TST_MRK_BZR
    GOTO    TRGR_MAIN
    INPUT_CONT
    BTFSS    1DH,2
    GOTO    INPUT_HERE     ; DID NOT REACH 4 INPUTS YET, WAIT FOR INPUT
    CALL    VERIFY_PWD     ; VERIFY PWD
    BTFSS    1DH,3     ; CORRECT PWD MARKER
    GOTO    INPUT_WRNG     ; WRONG PWD, TEST FOR 3RD ATTEMPT
    GOTO    TRGR_MAIN     ; CORRECT PWD, WAIT FOR INPUT
    ;--------------------------------------------------------------------
    INPUT_WRNG
    BTFSS    1DH,0
    GOTO    INPUT_PWD     ; ATTEMPTS<3, ASK FOR PWD
    GOTO    TRGR_MAIN     ; ATTEMPTS=3
    ;--------------------------------------------------------------------


    Spoiler: What will happen if you enter the passwrd 

    Code:
    TRGR_PND_PWD
    BTFSC    PORTB,6
    GOTO    TRGR_PND_PWD    ; # NOT YET PRESSED    
    TRGR_PND_PWD_IN     ; # PRESSED, INPUT PWD
    CALL    ASK_PWD
    BTFSS    1DH,2
    GOTO    TRGR_PND_PWD_IN    ; DID NOT REACH 4 INPUTS YET, WAIT FOR INPUT
    CALL    VERIFY_PWD     ; VERIFY PWD
    BTFSS    1DH,3     ; CORRECT PWD MARKER
    GOTO    TRGR_PND_WRNG    ; WRONG PWD
    ; CORRECT PWD, PRESS *
    BSF STATUS,RP0    
    MOVLF 77H,PORTB     ; ROW4 OF KEYPAD
    BCF STATUS,RP0
    BSF     PORTB,7     ; ALARM ON
    BCF     PORTB,3
    TRGR_PN_PW_AS
    BTFSC    PORTB,4     ; *
    GOTO    TRGR_PN_PW_AS    ; * NOT PRESSED
    BCF     PORTB,7     ; * PRESSED, DISABLE ALARM
    BCF     1DH,0
    CLRF    PORTA
    GOTO    TRGR_MAIN
    ;--------------------------------------------------------------------
    TRGR_PND_WRNG
    MOVLF    0FH,PORTA
    CALL    DELAY_FFX
    CLRF    PORTA
    GOTO    TRGR_MAIN
    ;--------------------------------------------------------------------


    Spoiler: Option Mode - to Arm the sensor, I guess, and change password 

    Code:
    TRGR_PND_OPT
    BSF     1DH,4     ; OPTION MODE MARKER
    CALL    LEDS_RA3N0
    BTFSC    PORTB,6
    GOTO    TRGR_PND_TST1    ; # NOT PRESSED
    GOTO    TRGR_PND_CNCL    ; # PRESSED, CANCEL OPTIONS
    TRGR_PND_TST1
    CALL    LEDS_RA3N0
    BTFSC    PORTB,4
    GOTO    TRGR_PND_TST2    ; * NOT PRESSED
    BSF     1DH,6     ; * PRESSED, SET ACTIVE PIR
    BCF     1DH,7
    ; TURN ON ALL PIRS
    GOTO    OPTION_PWD
    TRGR_PND_TST2
    CALL    LEDS_RA3N0
    BTFSC    PORTB,5
    GOTO    TRGR_PND_OPT    ; 0 NOT PRESSED, NO KEY PRESSED YET
    BCF     1DH,6     ; 0 PRESSED, CHANGE PWD
    BSF     1DH,7
    GOTO    OPTION_PWD
    TRGR_PND_CNCL
    CLRF    PORTA
    CALL    DELAY_FFX
    BCF     1DH,4
    GOTO    TRGR_MAIN
    ;--------------------------------------------------------------------


    Naa na man siya mga comments bro. dali ra man sabtun especially, nag naming siya sa mga functions.

  10. #20
    Bitaw unsa may problem ana TS.
    Tsakto kaau ng gibuhat ni boss stealthghost. Bahinon ang program base sa function.
    Pero taas pa jud imo dapat tun-an ani TS.

    I used assembly kato first time jud nako gamit ug PIC.
    Gipa print nako ang datasheet labi na ang instruction set summary, pin diagrams, SFR's, whole UART and ADC section, example source codes sa net, etc, etc...
    I am not surprised ug di pa nimo masabtan ng codes na gihatag sa inyo teacher kay medyo complicated na siya.
    Dili lang estudyante ang tapulan karun, hasta na mga teacher. hehe.

    Ipa print ng gi post ni boss stealthghost then gam-i ug flowchart. Dili kayo lisud kay naa na mga comments.
    Then ug naa ka wa nasabtan, post lang dri. Good luck!

  11.    Advertisement

Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

 
  1. Replies: 0
    Last Post: 03-19-2013, 09:54 PM
  2. need your help all istorya bros and sis
    By bingkat in forum Business, Finance & Economics Discussions
    Replies: 35
    Last Post: 03-19-2011, 06:21 AM
  3. need your help regarding zipping of files using php
    By Saedecode in forum Programming
    Replies: 2
    Last Post: 01-22-2011, 07:09 PM
  4. Replies: 3
    Last Post: 10-03-2010, 03:36 PM
  5. hey guys i really need your HELP...PLEASE its urgent
    By Mr. Fernandez in forum Computer Hardware
    Replies: 31
    Last Post: 11-15-2006, 05:53 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top