pic16f628a issue


Closed Thread
Results 1 to 14 of 14

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: pic16f628a issue

    Look at Archangel's code here:
    http://www.picbasic.co.uk/forum/show...hlight=16f628a

    He has these also (for 16F628 - not sure if it applies to you):
    Code:
    T1CON = %00000011
    OPTION_REG = %01010111
    What if you disable BODEN and PWRTE?

    What about your voltage, it is at 5V right?

    I don't use the low voltage 16F628A, I used the regular 16F628.

    Robert

    P.S.: To get your code to come out right (missing %), hover your mouse over the A icon at far left when you post, you want to be in SOURCE mode, not WYSIWYG.


    EDIT: What about the resistor on MCLR?
    http://www.picbasic.co.uk/forum/showthread.php?t=16188
    His code works for 16F628A and internal oscillator.
    Note he is using PM instead of MPASM, so his CONFIG syntax is a bit different.
    He used CLKOUT instead of NOCLKOUT, not sure what difference that makes.

    Can you post a drawing of your circuit, a JPG from Paintbrush would be fine.
    Last edited by Demon; - 1st May 2012 at 02:26.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: pic16f628a issue

    Quote Originally Posted by Demon View Post
    Look at Archangel's code here:
    http://www.picbasic.co.uk/forum/show...hlight=16f628a

    He has these also (for 16F628 - not sure if it applies to you):
    Code:
    T1CON = %00000011
    OPTION_REG = %01010111
    What if you disable BODEN and PWRTE?

    What about your voltage, it is at 5V right?

    I don't use the low voltage 16F628A, I used the regular 16F628.

    Robert

    P.S.: To get your code to come out right (missing %), hover your mouse over the A icon at far left when you post, you want to be in SOURCE mode, not WYSIWYG.


    EDIT: What about the resistor on MCLR?
    http://www.picbasic.co.uk/forum/showthread.php?t=16188
    His code works for 16F628A and internal oscillator.
    Note he is using PM instead of MPASM, so his CONFIG syntax is a bit different.
    He used CLKOUT instead of NOCLKOUT, not sure what difference that makes.

    Can you post a drawing of your circuit, a JPG from Paintbrush would be fine.
    Got it working, I added some code from that thread and disabled boden and pwrte, I dont know what exactly did it but it works. And incase you were wondering, it is powered by a 3v source and I do not have a resistor anywhere/

    But if anyone in the future has this problem has this problem stumbles upon this thread, here is my code that works
    Code:
    @ __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_OFF & _MCLRE_OFF & _BODEN_OFF & _LVP_OFF
    
    Define OSC 4
    
    
    LED4 VAR PortA.1
    CMCON = 7 
    VRCON = 0 
    PortA=0
    PortB = %00000000 
    T1CON = %00000011
    TRISA = 0 
    TRISB = %00000000 
    
    
    
    
    
    
    
    
    STARTMAIN:
    
    
    
    
    LED4=1
    
    
    PAUSE 250
    
    
    LED4=0
    
    
    Pause 250
    
    
    GOTO STARTMAIN
    
    
    END

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: pic16f628a issue

    The Brown Out detect fuse solved our problem, now look at the datasheet and see why it works...
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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