Can't get blink circuit to work :(


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Smile More stuff...

    Quote Originally Posted by Techbuilder View Post
    Yep I have a resistor there

    Yep I have a 16F84A

    As for the 78L05 That doesn't have a cap
    but can it stop the circuit from working?

    I have a 4mhz resonator with the middle going to ground
    The “DEVICE” in your code is listed as a “@ DEVICE pic16F84

    See this thread:
    Novice 16F84A BLINK LED program help
    http://www.picbasic.co.uk/forum/showthread.php?t=6763

    The 78L05 or any three terminal linear regulator needs an “input capacitor”, if it is a distance from the rectifier filter capacitor.
    If you don’t have a rectifier filter capacitor, THAT is a problem.

    -Adam-
    Ohm it's not just a good idea... it's the LAW !

  2. #2
    Join Date
    Jul 2007
    Posts
    67


    Did you find this post helpful? Yes | No

    Default

    Ohh opps even when I reprogrammed it still nothinghttp://www.picbasic.co.uk/forum/images/icons/icon9.gif
    Unhappy

    The link you gave me was different from mine.

    His at least turned on

    mine doesn't even do that

    Shouldn't the sample program work from pbp?

  3. #3
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298


    Did you find this post helpful? Yes | No

    Smile don’t give up...

    Quote Originally Posted by Techbuilder View Post
    Ohh opps even when I reprogrammed it still nothinghttp://www.picbasic.co.uk/forum/images/icons/icon9.gif
    Unhappy

    The link you gave me was different from mine.

    His at least turned on

    mine doesn't even do that

    Shouldn't the sample program work from pbp?
    Hi Techbuilder,

    You are right, the other poster had a slightly different problem, with the PIC16F84A not blinking correctly, than you have.
    But, if you could read some of the parts that MIGHT apply to your general problem, that would save the people trying to help, from repeating the same information.
    It is a little easier to read than to type, and it is the reader needing the information not the person helping. This reduces the burden on the people helping, so that they do not get burned out and stop trying to help.
    In fact it is considered good forum practice to search diligently, for any answered problem, that could contain a clue, before asking.

    Some of the parts that MIGHT apply:
    But, you may be trying too hard. Most of the defines are already supplied by the default *.INC file (16F84A.INC).
    In Microcode Studio make sure you are using the button for Compile(ing) AND Program(ing), NOT the button for just Compile(ing).
    See this microEngineering Labs web page:

    Specifying configuration bit settings in PICBASIC PRO programs.
    If you add a configuration directive to your program file, you are actually replacing the default configuration that the compiler would otherwise include. The easiest way to determine the correct syntax is to get examples from the compiler and assembler's built-in resource files. To that end, it's best to understand how the compiler determines the config defaults....

    ....The first thing the compiler looks for is a file in the PBP folder that matches the targeted PIC. If you tell it to compile for a 16F84A, it reads the file "16F84A.INC". The contents of this file are divided into 2 sections, one for each assembler. An internal variable, "PM_USED", tells the compiler which section of the file to use. In the following example, you will see that the top section ("ifdef" to "else") is meant for the PM assembler and the bottom section ("else" to "endif") is meant for the MPASM assembler.

    http://www.melabs.com/support/config_defaults.htm
    This might mean that if you refer to a different device in your code, compiler or programmer, you may run into trouble.

    Let us know if you have tried any of our posted suggestions.
    Did you add the capacitor to the 78L05?
    Did you change the DEFINES in your code to @ DEVICE pic16F84A

    The sample PBP program should work for your project, don’t give up.

    -Adam-
    Ohm it's not just a good idea... it's the LAW !

Similar Threads

  1. Simple Blink program doesnt work.
    By sccoupe in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 1st March 2009, 20:30
  2. Can't get POT work on P12f675 - Newbie
    By berslan in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 26th March 2008, 21:22
  3. Circuit reliability issues
    By hkpatrice in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd November 2007, 14:55
  4. Replies: 3
    Last Post: - 29th October 2006, 09:16
  5. Pin RA4 doesn't work
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 15th July 2004, 12:03

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