Pic16f877a 20mhz


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2007
    Posts
    4

    Unhappy Pic16f877a 20mhz

    I'm try to make led blinking using PIC16F877A 20MHZ with PICBASIC Pro 2.45,LED not blinking. LED Still ON. I dont know why...I write code like this...

    define OSC 20
    MAIN:
    HIGH PORTB.0
    PAUSE 1000
    LOW PORTB.0
    PAUSE 1000
    GOTO MAIN

    any problem with my code????

  2. #2
    Join Date
    Jun 2007
    Posts
    56


    Did you find this post helpful? Yes | No

    Default

    try this
    Code:
    define OSC 20
    TRISB = 0
    MAIN:
    HIGH PORTB.0
    PAUSE 1000
    LOW PORTB.0
    PAUSE 1000
    GOTO MAIN

  3. #3
    Join Date
    Aug 2007
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    Continue....

    When i'm use that code for PIC16F819 and PIC16F84A , It work !

  4. #4
    Join Date
    Dec 2005
    Location
    So Cal and loving it
    Posts
    40


    Did you find this post helpful? Yes | No

    Default

    I had a similar problem with a 20MHz program and it turned out I was using the wrong fuse setting for the clock when burning the chip. I was setting it as XT but when I set it as HS all was good.

    Just something else to try

    Paul

Similar Threads

  1. PIC16F877A for application in mobile robot...
    By mcbeasleyjr in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th January 2009, 14:47
  2. testing pic16f877a
    By lerameur in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th October 2008, 05:43
  3. 7 segment display with PIC16F877A 20MHZ
    By freqout in forum General
    Replies: 2
    Last Post: - 8th April 2008, 14:31
  4. communicating pic18f452 with pic16f877a
    By tamersoss in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th July 2007, 19:54
  5. PIC16f877-20 to a PIC16f877A I/P Disaster
    By andyf in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 21st November 2005, 17:11

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