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. seti75

    seti75 New Member

    Joined:
    Dec 14, 2008
    Messages:
    74
    Likes:
    0
    Location:
    paris (france)
    I program with winpic800 and icprog.
    programming is normally ok at the end.
    reading the 16F877 is also normally
    with winpic800 and icprog.
    when I delete the pic is also good.
    reading indicates 3FFF ... ... so it's good 3FFF
    but I do not understand why the pic does not work with any program! ?....

    my 16f877 -----> Imageshack - 16f87720p

    blueroomelectronics I can not find ? thank.
    ..... hex if possible i have difficulty
    convert asm.to .hex
     
    Last edited: Jul 12, 2009
  2. Chippie

    Chippie New Member

    Joined:
    Mar 8, 2003
    Messages:
    991
    Likes:
    9
    Location:
    Good 'ole England

    Use Mpasm to generate the hex file from the assembly code...

    You can download Mpasm from Microchip's website
     
  3. seti75

    seti75 New Member

    Joined:
    Dec 14, 2008
    Messages:
    74
    Likes:
    0
    Location:
    paris (france)
    I use MPLAB v8
    I never managed to create a. hex from a file asm
    Here is what I do and every time an error

    project wizard --> next...16f877 --> next --> indic.location Mpaswin.exe ..---> next
    creat name project file ..next --->add file asm..--> completed

    after
    ....project open file project...---> make ------> error !!
     
  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)

    16f877 --> he died ?
     
  6. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,794
    Likes:
    134
    Location:
    morristown,tn
    ONLINE
    Hard to help you with this we have not any thing to go by
    There a lot of things that can go wrong bigest is you tried to build on the desktop
    and not a C:\ myfile\firsttry.asm

    I have had a 16f877 stop working and all it was is the osc stoped working. I wouldn't throw it away
    it's more likely something your doing.
     
    Last edited: Jul 14, 2009
  7. birdman0_o

    birdman0_o Active Member

    Joined:
    Feb 23, 2009
    Messages:
    1,370
    Likes:
    18
    Location:
    Montreal, Quebec
    Pourquoi esce que vouz utilisiez un oscillateur externe?
    Why are you using an external oscillator?
     
  8. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,794
    Likes:
    134
    Location:
    morristown,tn
    ONLINE
    It's A 16f877 they have no internal oscillator
     
  9. seti75

    seti75 New Member

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

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,794
    Likes:
    134
    Location:
    morristown,tn
    ONLINE
    You building this on a solder less bread board right try two things first clip a gnd on the OSC to gnd see if that works If not remove c5 and c4 and see if that works
     
  11. Chippie

    Chippie New Member

    Joined:
    Mar 8, 2003
    Messages:
    991
    Likes:
    9
    Location:
    Good 'ole England
    Alors,

    I have found my issue of EP numer 265.....Sadly that issue is no longer avaiable so I cant download the source code...

    Suffice to say, I built a project from another issue called Meleda, based on 16F84 that refused to work...So I wouldnt rule out a s/w issue...
     
  12. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,794
    Likes:
    134
    Location:
    morristown,tn
    ONLINE
    This is what get's me Op ask for help with this but no code has been posted and they said they tried it with a 16f84 and no go. If you look at the circuit for 16f84 it has a 4 mhz crystal so if you left the 20mhz on the board it wouldn't work the start up delays would be to fast for the lcd.[​IMG]
     
    Last edited: Jul 14, 2009
  13. seti75

    seti75 New Member

    Joined:
    Dec 14, 2008
    Messages:
    74
    Likes:
    0
    Location:
    paris (france)
    c4 and c5 removed, that does not function.

    the program of this alarm ----->

    Free - Envoyez vos documents

    is somebody has a simple program (leds) for tested this 16f877 and knowledge s' it is good?

    I specify once again that several programs were tested with this 16f877 and no n' functioned!
     
  14. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,794
    Likes:
    134
    Location:
    morristown,tn
    ONLINE
    I can't read that maybe if you want this fix you would take time to post it so we can help you. a hex is not much good if some thing goes wrong you need the code
     
  15. seti75

    seti75 New Member

    Joined:
    Dec 14, 2008
    Messages:
    74
    Likes:
    0
    Location:
    paris (france)
    One do not understand .

    If you look at my post since the debut, kept silent will see that it is an assembly (editing) of electronique practice ( alarm ) with one 16f877 and a quartz of 20mhz.
    My probléme it is to know if my 16f877 is good....?
     
    Last edited: Jul 14, 2009
  16. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    168
    Location:
    Toronto, Canada
    Try flashing an LED. I posted a link to a simple LED flasher for the 16F877.
     
  17. be80be

    be80be Well-Known Member

    Joined:
    Aug 23, 2008
    Messages:
    4,794
    Likes:
    134
    Location:
    morristown,tn
    ONLINE
    Bill they want a hex that blinks. yes you put the thing together so you can call it
    Still need the source code not a hex I can build them and write them
    It's hard to help you because we can't see what your doing and your writing is worst then mine
     
  18. seti75

    seti75 New Member

    Joined:
    Dec 14, 2008
    Messages:
    74
    Likes:
    0
    Location:
    paris (france)
    my lcd is good with the program of this page

    PIC to LCD interface

    test my lcd -->
    Imageshack - hellw

    it is necessary that I find the same program test for a 16f877. to know if the 16f877 really died
     
  19. Chippie

    Chippie New Member

    Joined:
    Mar 8, 2003
    Messages:
    991
    Likes:
    9
    Location:
    Good 'ole England

    Do what Blueroom electronics suggested...flash an led....You can write the code so that you could test each pin individually or sequentially...

    ;*** WDT reset toggles RB0
    list p=16F877A
    include <p16F877A.inc>
    __CONFIG 0x3F7D
    org 0
    bsf STATUS, RP0
    movlw b'00001110'
    movwf OPTION_REG
    bcf TRISB, 0
    bcf STATUS, RP0
    movlw 1
    xorwf PORTB, f
    sleep
    end

    BRE, Hope you dont mind me posting the code...
     
    Last edited: Jul 16, 2009
  20. seti75

    seti75 New Member

    Joined:
    Dec 14, 2008
    Messages:
    74
    Likes:
    0
    Location:
    paris (france)
    I do not include/understand ? with which diagram ? (schématic)

    thank
     
    Last edited: Jul 16, 2009
  21. Chippie

    Chippie New Member

    Joined:
    Mar 8, 2003
    Messages:
    991
    Likes:
    9
    Location:
    Good 'ole England

Share This Page