PIC16F877A not working again :(


Results 1 to 25 of 25

Threaded View

  1. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by The Master View Post
    Hi, Ive not touched 16F877A's for a while but now i need to use one again and im having more problems with it. Ive written some test code and ive tried mister_e's code from last time. My test code uses portD but ive tested ports A and B with mister_e's code too and im not picking anything up. Ive done all the usual checks (MCLR, Resonator, Capacitor etc). Ive checked the voltage with my oscilloscope and its extremely smooth. It almost looks like theres no load on it at all. The PIC is definately connected to it so im guessing its just not starting up correctly.
    Sir...SIR!!!!
    Put down the PIC...now step away from the PIC...Hands behind your ankles...
    Is it in backwards? Ya never, know...could happen...
    And this is my favorite test code...absolutely nothing fancy, but it tells me that things are working...
    Code:
    temp var byte
    trisa = 0  'set all the pins to outputs
    trisb = 0
    trisc = 0
    trisd = 0
    trise = 0
    'also turn analog ports to digital and/or set cmcon if applicable
    main:
    temp = temp + 1
    porta=temp
    portb=temp
    portc=temp
    portd = temp
    porte = temp
    'put a pauseus xxx here if the fastest pin (bit 0 for each port) is entirely too fast
    goto main
    That way each successive pin on each port will have exactly half the frequency of the pin before it. Of course things change with each different type of PIC and it's application, i.e. whether or not I'm using MCLR as MCLR or an I/O, whether or not I'm using OSC1/OSC2 as clock pins or I/O, and so on and so on...
    Last edited by skimask; - 21st October 2008 at 00:01.

Similar Threads

  1. PIC16F877A PORTA.2 not working
    By The Master in forum Off Topic
    Replies: 2
    Last Post: - 10th October 2009, 18:16
  2. PIC16F877A analog problem
    By DeViLa_Q8 in forum mel PIC BASIC
    Replies: 0
    Last Post: - 30th July 2009, 20:19
  3. PIC16F877A for application in mobile robot...
    By mcbeasleyjr in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th January 2009, 14:47
  4. PIC16F877A not working
    By The Master in forum General
    Replies: 6
    Last Post: - 16th November 2007, 11:32
  5. communicating pic18f452 with pic16f877a
    By tamersoss in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th July 2007, 19:54

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts