process hung problem + self reset


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I am wondering if it is not a power supply problem. After a few minutes the the PS starts to fail/drop voltage.

    Is the speaker direct connect to the PIC?
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Step1.Fix the problems you know about first then hunt for more.
    <br>
    So how about disabling the analog stuff, ADCON, CCP . . . since you are using PortA.3
    Last edited by Archangel; - 31st October 2008 at 00:48.
    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.

  3. #3
    Join Date
    Aug 2008
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    I am wondering if it is not a power supply problem. After a few minutes the the PS starts to fail/drop voltage.

    Is the speaker direct connect to the PIC?
    no idon't think it's PS failing problem

    speaker connected though CAP

  4. #4
    Join Date
    Aug 2008
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Fix the problems you know about first
    well idon't know what is ( definitive ) the problem he umbrella the all issue in weird way ( chick datasheet and chick manual and all this stuff )

    if you see any error need to fix . please give me some guidance with few code lines
    also show me haw END program as you mention

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    How about the PORTA.3 problem Joe mentioned?
    This will help
    http://www.picbasic.co.uk/forum/showthread.php?t=561
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Aug 2008
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    How about the PORTA.3 problem Joe mentioned?
    This will help
    http://www.picbasic.co.uk/forum/showthread.php?t=561
    thanks dave i'll work on that and tell you what is outcome

    regards

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    How about the PORTA.3 problem Joe mentioned?
    This will help
    http://www.picbasic.co.uk/forum/showthread.php?t=561
    Go into the data sheet, I know it's painful, but go in there anyway . . . Look to see what state port A initializes in when it is reset, you will probably discover it defaults to <b>Analog</b> operation, since you want Digital, <b> YOU </b> need to tell it<b><font color=red> how to be digital.</font color></b> Lots of registers to set, If you want simple then use old grandpaw chip like 16F84, or 16F628A, only CMCON to worry about. If you want lots of bells and whistles then you have to learn how to play them.
    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.

  8. #8
    Join Date
    Aug 2008
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    If you want simple then use old grandpaw chip like 16F84, or 16F628A, only CMCON to worry about. If you want lots of bells and whistles then you have to learn how to play them.
    well i have all those pic's you wrote
    but i don't want this circuit to work in my lab only
    it will work in rough and dirty environment so there is other things must be worried about so the design have more dimension than you imagine
    Quote Originally Posted by Joe S. View Post
    Location: La La Land, where errant code runs by
    although am not from there but i bet you i worte more code lines than you
    wither on asm , C18 , C32 , css , pic basic pro

    take this advice
    work more ....
    and stop been futile person
    Last edited by eng.alamin; - 31st October 2008 at 11:02.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by eng.alamin View Post
    well i have all those pic's you wrote
    but i don't want this circuit to work in my lab only
    it will work in rough and dirty environment so there is other things must be worried about so the design have more dimension than you imagine

    although am not from there but i bet you i worte more code lines than you
    wither on asm , C18 , C32 , css , pic basic pro

    take this advice
    work more ....
    and stop been futile person
    Yep, I will bet you have too, I didn't know this was a competition, I thought I was trying to help you. My apologies, it won't happen again.
    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.

  10. #10
    Join Date
    Aug 2008
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    How about the PORTA.3 problem Joe mentioned?
    This will help
    http://www.picbasic.co.uk/forum/showthread.php?t=561
    dear dave my circuit works good and the problem was in bi-pass capacitors
    these are some pictures of working




    regards
    Attached Images Attached Images   
    Last edited by eng.alamin; - 31st October 2008 at 10:15.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by eng.alamin View Post
    well idon't know what is ( definitive ) the problem he umbrella the all issue in weird way ( chick datasheet and chick manual and all this stuff )

    if you see any error need to fix . please give me some guidance with few code lines
    also show me haw END program as you mention
    last word in your program on the last line should be . . .
    Code:
    <b><h2>END</h2></b>
    this I believe is a compiler directive, tells the compiler to end your code there. There is at least one exception to this rule, but not here and not now.
    Sorry about my English, I am American you know.
    Last edited by Archangel; - 31st October 2008 at 00:49.
    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.

  12. #12
    Join Date
    Aug 2008
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post

    ---------------------------------------------------
    Sorry about my English, I am American you know.
    i didn't said any thing about your English or about you generally
    but ...anyway that is advantage you must take it in good way to be usefull
    for ppl like me

    Quote Originally Posted by Joe S. View Post
    Code:
    <b><h2>END</h2></b>
    this I believe is a compiler directive, tells the compiler to end your code there. There is at least one exception to this rule, but not here and not now.
    well i may a dumb person but i wrote my code to be End less
    therefor my last line is
    Code:
    <b><h2>GOTO main</h2></b>
    did you notice that or.. or... you never saw the code in my first post

Similar Threads

  1. Pic reset and following lock up problem
    By zerosvarka in forum General
    Replies: 19
    Last Post: - 17th June 2009, 20:03
  2. LCD Reset Problem
    By Bill Legge in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 24th February 2009, 08:55
  3. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  4. Reset problem
    By leonel in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 2nd May 2006, 06:46
  5. PIC problem, ways to do reset
    By lab310 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th May 2005, 14:31

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