what on earth can I be doing wrong?


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Make it even simplier:
    Code:
    trisb = 0
    main:
    portb.0 = 1
    pause 500
    portb.0 = 0
    goto main
    No variables, no nothing to mess with anything...

    And strangely, my logic probe records a high on RC6. Which is strange since I don't think I've bothered with Port C in any way
    It's floating... All (ok, most) pins are set to input on RESET so they don't load down the external circuitry (well, that's one reason anyways). So, it's probably floating. I'd be willing to bet if you put a 'scope on it, grounded out the pin with a 1k resistor, it would go to 0v, then when the resistor was pulled away, it would rise 'slowly' back up to 5v.

    Or have I found a brand new way to be confused?
    Yep...you have...
    Do a search on config bits and presetting, etc. There's a bunch of threads on presetting config bits and clock settings, etc.
    Last edited by skimask; - 8th February 2008 at 21:19.

  2. #2
    Join Date
    Feb 2008
    Posts
    5


    Did you find this post helpful? Yes | No

    Default great suggestions, but...

    thanks skimask for offering the simpler code.

    I think you're probably right about the floating pin. Although, I connected a 1k resistor to it and gorund and the pin is still high. I don't have a scope to check though.
    I have checked the config settings and tried every option but RC. But no luck. Tomorrow I'll rewire it for RC and see if that makes any difference.

    And Duncan303, I think you're right too. The oscillator is almost certainly the problem. But as I say I've tried every configuration and nothing works. I have a smaller 16f876 pic that I will try in the morning.

    So frustrating. But thank you so much for trying to help

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dmacq View Post
    thanks skimask for offering the simpler code.
    I think you're probably right about the floating pin. Although, I connected a 1k resistor to it and gorund and the pin is still high. I don't have a scope to check though.
    I have checked the config settings and tried every option but RC. But no luck. Tomorrow I'll rewire it for RC and see if that makes any difference.
    And Duncan303, I think you're right too. The oscillator is almost certainly the problem. But as I say I've tried every configuration and nothing works. I have a smaller 16f876 pic that I will try in the morning.
    So frustrating. But thank you so much for trying to help
    Try a different spot in the breadboard, or a new breadboard.
    We've had more than a few discussions here in the past year or so about breadboards gone bad (I should make a video...I'd make million$ !!!)... contacts wearing out, dirty contacts, etc.

Similar Threads

  1. What am I doing wrong?
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th October 2009, 20:46
  2. WRITECODE stores wrong 14-bit word values in FlashMEM
    By BobPigford in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 26th June 2009, 05:35
  3. LCD Showes Some Wrong Letters
    By sbobowski in forum General
    Replies: 2
    Last Post: - 23rd September 2008, 20:15
  4. HSERIN/OUT Wrong
    By Kaldurenik in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 8th October 2007, 11:40
  5. ADCIN - AD settings are wrong
    By teverett in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 4th December 2006, 17:32

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