1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

alarm house 16f877 ?

Discussion in 'Microcontrollers' started by seti75, Jul 10, 2009.

  1. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,869
    Likes:
    144
    Location:
    morristown,tn
    ONLINE
    Well I got my hands on the code that JOHN BECKER - EPE INTRUDER ALARM
    It's in assembly I'm not going to post it all but here is the problem
    ;PIC16F877-4, 3.2768MHz, WDT OFF, POR ON, XTAL XS
     
  2. seti75

    seti75 New Member

    Joined:
    Dec 14, 2008
    Messages:
    74
    Likes:
    0
    Location:
    paris (france)
  3. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,869
    Likes:
    144
    Location:
    morristown,tn
    ONLINE
    I was going to get It to working I 'll post how the switches work. Here i not sure if this helps or not it's the switches
     

    Attached Files:

  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. seti75

    seti75 New Member

    Joined:
    Dec 14, 2008
    Messages:
    74
    Likes:
    0
    Location:
    paris (france)

    my keyboard keys --> 3x4 ...no 4x4
    if I made the realization EPE INTRUDER ALARM
    This can cause a problem ?
    is my lcd 2x16 is as good ?
    on this project, we have the asm file
    what is important , that you think?
    I started the project?
    thank .....

    be80be ,
    I sent an email.

     
    Last edited: Jul 18, 2009
  6. seti75

    seti75 New Member

    Joined:
    Dec 14, 2008
    Messages:
    74
    Likes:
    0
    Location:
    paris (france)
  7. unknown118

    unknown118 New Member

    Joined:
    Nov 28, 2009
    Messages:
    2
    Likes:
    0
    hei guys can i ask some question regarding my 2x16 LCD (8bits)
    im using a pic Basic program and i dont know what is the problem..
    The LCD cant display output.. when i press the reset button in my pic16f877a the LCD will display a different characters but it doesnt continue anymore..
    i dont know where the problem is.. my codes are the following

    TRISB = 0x00
    TRISC = 0x00

    Define ADC_CLOCK = 4
    Define ADC_SAMPLEUS = 3
    Define LCD_BITS = 8
    Define LCD_DREG = PORTB
    Define LCD_DBIT = 0
    Define LCD_RSREG = PORTC
    Define LCD_RSBIT = 0
    Define LCD_EREG = PORTC
    Define LCD_EBIT = 2
    Define LCD_RWREG = PORTC
    Define LCD_RWBIT = 1
    Define LCD_COMMANDUS = 2000
    Define LCD_DATAUS = 200
    Define LCD_INITMS = 2

    Lcdinit 1

    main:
    Lcdcmdout LcdClear
    Lcdout "Hello"
    WaitMs 5000
    Goto main
    End

    sometimes it display just letter "e" and then it will stop
    can u suggest any solution der..tnx in advanced
     

Share This Page