Bad 16f88


Closed Thread
Results 1 to 14 of 14

Thread: Bad 16f88

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    42


    Did you find this post helpful? Yes | No

    Default Re: Bad 16f88

    No, these were new chips that I entered some simple code into and they froze. This is what I entered,

    ' Timer countdown test
    trisa = 0
    porta = 0
    Start:
    I var byte
    for I = 1 to 2000
    porta.0 = 1
    pause 5000
    goto Start

  2. #2
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default Re: Bad 16f88

    Quote Originally Posted by Picstar View Post
    No, these were new chips that I entered some simple code into and they froze. This is what I entered,

    ' Timer countdown test
    trisa = 0
    porta = 0
    Start:
    I var byte
    for I = 1 to 2000
    porta.0 = 1
    pause 5000
    goto Start
    Why you say its locked?
    That code posted don't do nothing, did the code compile without errors? Because its missing the "next" of the "for" command!
    Thanks and Regards;
    Gadelhas

  3. #3
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: Bad 16f88

    not only that but, where are you turning off the port bit?
    Dave Purola,
    N8NTA
    EN82fn

  4. #4
    Join Date
    Aug 2008
    Posts
    42


    Did you find this post helpful? Yes | No

    Default Re: Bad 16f88

    You are both right, made a error when I posted. HERE is what I entered:
    the purpose of the whole program is to give me a visual indication of how long it takes to the chip to execute a loop and count down. I need this info for setting timing on portions of my programs. Hope this makes sense. P.S. my setup may not be correct but I'm an old geezer.

    ' Timer countdown test
    trisa = 0
    porta = 0
    Start:
    I var byte
    for I = 1 to 2000
    next I
    porta.0 = 1
    pause 5000
    end

  5. #5
    Join Date
    Aug 2008
    Posts
    42


    Did you find this post helpful? Yes | No

    Default Re: Bad 16f88

    Update, I just realized that (I) should be a VAR WORD, since it will be over 255. Thanks for your input guys but the problem remains that I still cannot program these chips that talked about.

    ' Timer countdown test
    trisa = 0
    porta = 0
    Start:
    I var word
    for I = 1 to 2000
    next I
    porta.0 = 1
    pause 5000
    end

  6. #6
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: Bad 16f88

    Your posted code has several problems, beginning with the lack of capitalization for the register names.
    Do you intend it to turn PORTA.0 to a one and nothing else? If so, why delay?

    Your issue is likely with the configuration bits. Please post your code for configuration...

  7. #7
    Join Date
    Nov 2008
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: Bad 16f88

    I have run to this many times. I used my Pickit2(tm) to erase the pic and then is was ok.
    Regards
    CharlieM
    Using PBP3
    MCSPX

  8. #8


    Did you find this post helpful? Yes | No

    Default Re: Bad 16f88

    I posted the solution in your other thread have you tried it?

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