Simple Blink program doesnt work.


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Posts
    29


    Did you find this post helpful? Yes | No

    Default

    Ok, thats worked. Disecting it found that it was the MCLRE that made the difference. I'll read up on that as it is the only part of your explanation that I didnt understand. It seems that there are a lot of things that I need to learn in this area that were not needed with other chips. The frustration in the past with these pics may have been what pushed me to Basic Stamps, but their cost eventually pushed me to the Picaxe's. However, their inability to accomplish certain things and much lower availability to US customers has brought me back to this. I guess I need to fight my way though it this time.


    Thanks for your help mackrackit.

  2. #2
    Join Date
    Jan 2007
    Location
    Portland Oregon
    Posts
    15


    Did you find this post helpful? Yes | No

    Default Don't give up

    I had similar frustrations when I ported from the Basic Stamps to the PICs. I found the most important thing was getting the PIC setup correctly for your application A/D, digital I/O and config bits. I printed up the data sheet for the 12F675 and left it in my library (bathroom) and read it through and through. This realy helped as I moved to other PICs as I knew what to look for (A/D, PWM, digital I/O etc) Its intresting that the masters sometimes dont show the config and setup info when they post there help code. Get a "Hello World" (blinking LED) working on a new PIC before you proceed any further on a new project. Best of luck, and keep on nearding (what my wife calls my obsession)

    Aaron

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sccoupe View Post
    Ok, thats worked. Disecting it found that it was the MCLRE that made the difference. I'll read up on that as it is the only part of your explanation that I didnt understand.
    Look at the chips Data Sheet for which pin is used with MCLRE. That pin must have a pullup resistor if MCLRE is enabled in the config statement.
    <br> Rather than changing the config statement in the .inc file each time I would insert a semicolon just before the first letter in the statement and insert the statement at the beginning of my code, every time.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Help with DS18B20 program
    By presario1425 in forum mel PIC BASIC Pro
    Replies: 38
    Last Post: - 22nd August 2012, 01:50
  2. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26
  3. Can't get blink circuit to work :(
    By Techbuilder in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 31st January 2008, 14:00
  4. Can anyone help at getting OWIn & OWOut to work @ 16MHz?
    By jessey in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 24th January 2006, 12:08
  5. Pin RA4 doesn't work
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 15th July 2004, 13: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