Using "END" Fries PICS?


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: Using "END" Fries PICS?

    I had that problem with the pic18f45k80. It had something to do with using the MCLR pin as an input.
    Melabs was able to help me by updating the programmer software. I don't believe the END statement
    is your problem. Read this article it may help.

    http://www.gooligum.com.au/tutorials...rog_issues.pdf

  2. #2
    Join Date
    Dec 2014
    Posts
    10


    Did you find this post helpful? Yes | No

    Default Re: Using "END" Fries PICS?

    Quote Originally Posted by mark_s View Post
    I had that problem with the pic18f45k80. It had something to do with using the MCLR pin as an input.
    Melabs was able to help me by updating the programmer software. I don't believe the END statement
    is your problem. Read this article it may help.

    http://www.gooligum.com.au/tutorials...rog_issues.pdf
    The problem went away when I removed the "end" statement. It looks to me that having MCLR as an input pin and then declaring it as an output and then writing "end" in the mainloop causes the MCLR pin to be pulled low when it is powered up, thereby ignoring MCLR when trying to program it. That is a curious state of affairs. I wonder if there is a way around this?
    Last edited by Cyberdove; - 17th December 2014 at 13:33.

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,170


    Did you find this post helpful? Yes | No

    Default Re: Using "END" Fries PICS?

    Look at the datasheet and confirm the MCLR pin can be used as an output. MCLR on the 18F44K22 can only be an input; making it an output can have unexpected results.

    Robert

  4. #4
    Join Date
    Dec 2014
    Posts
    10


    Did you find this post helpful? Yes | No

    Default Re: Using "END" Fries PICS?

    Quote Originally Posted by Demon View Post
    Look at the datasheet and confirm the MCLR pin can be used as an output. MCLR on the 18F44K22 can only be an input; making it an output can have unexpected results.

    Robert
    I was able to program the chip by pressing the "program" button on the meProgrammer about a half second after the chip powered up. This prevented the program from reaching the "end" statement.

Similar Threads

  1. Replies: 0
    Last Post: - 14th November 2013, 03:32
  2. Replies: 3
    Last Post: - 15th October 2012, 08:06
  3. Replies: 7
    Last Post: - 21st July 2011, 10:34
  4. Using "END" in a subroutine?
    By Byte_Butcher in forum General
    Replies: 6
    Last Post: - 13th February 2010, 16: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