MCU seset and stop


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: MCU seset and stop

    I think Charlie is right, but the code does seem to read correctly to a degree, but I think the resetting may because the config is only setting the speed of the processor, no other options have been set which to me might be the cause as to the resetting of the PIC. But then I use PBP 2.60c and this config statement looks different so I guessing the OP is using PBP3, so maybe this thread needs moving to the correct section ?

    Also I have to ask

    Code:
    i var word
    for i = 1 to 10
    PORTC.0 = 1
    pause 500
    PORTC.0 = 0
    pause 200
    next i
    Why use a word variable for i when it's only running 10 cycles of the for next loop. Defining it as a byte would be fine

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


    Did you find this post helpful? Yes | No

    Default Re: MCU seset and stop

    What resistance are you using for the reset line? Also is the power supply solid?
    Dave Purola,
    N8NTA
    EN82fn

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,680


    Did you find this post helpful? Yes | No

    Default Re: MCU seset and stop

    not to mention
    define LCD_Bits 4 ' Set LCD Bus size(4 or 8 Bits)
    define LCD_BITS 4 ' Set LCD Bus size(4 or 8 Bits)
    Warning I'm not a teacher

Similar Threads

  1. How do I stop HPWM
    By DonLuis in forum General
    Replies: 2
    Last Post: - 15th September 2012, 12:15
  2. Defining MCU with MPASM
    By Ioannis in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 24th May 2007, 14:16
  3. Why does the clock stop?
    By Russ Kincaid in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 29th May 2006, 16:36
  4. Too Simple To just Stop!
    By Homerclese in forum mel PIC BASIC
    Replies: 1
    Last Post: - 16th October 2005, 22:39
  5. Stop program
    By Sam in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th March 2004, 15:57

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