Help on PIC16F767


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Feb 2007
    Posts
    33

    Default Help on PIC16F767

    Dear all,

    i am facing a problem when using the PIC16F767: when i touch the oscillator pin and remove my finger, it stops running !! usualy when touching this pin the PIC stops runing (any other pic number) and when removing the finger it resumes. (i know it is not necessary to touch it but sometimes it is happening alone, and touching it is instead of waiting few minutes to happen alone), any help for that ??

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Default

    Hi, Rony ...

    Could you, please, provide your program header ??? ( ALL configs + pins assigned )

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Feb 2007
    Posts
    33


    Did you find this post helpful? Yes | No

    Default

    DEFINE OSC 20

    PORTA = %00000000
    PORTB = %00000000
    PORTC = %00000000

    TRISA = %10111111
    TRISB = %00000000
    TRISC = %10100010

    OPTION_REG = %00000111
    INTCON = %00000000
    ADCON0 = %00000000
    ADCON1 = %00001111
    ADCON2 = %00000000
    CMCON = %00000111
    T1CON = %00000000

    TMR2 = 0
    PR2 = 0
    CCPR1L = 0
    CCPR2L = 0
    CCPR3L = 0
    CCP1CON = 0
    CCP2CON = 0
    CCP3CON = 0
    T2CON = 0

    PIR1 = 0
    PIR2 = 0
    PIE1 = 0
    PIE2 = 0
    PCON = %00000011


    Main:
    ....
    goto main

  4. #4
    Join Date
    Feb 2007
    Posts
    33


    Did you find this post helpful? Yes | No

    Default

    i think it is not stoping, but it is going very very very slow.....

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


    Did you find this post helpful? Yes | No

    Default

    HI;


    Try put this on the header, before the oscilator Define, and them test!
    @ __config _HS_OSC & _LVP_OFF
    Thanks and Regards;
    Gadelhas

  6. #6
    Join Date
    Feb 2007
    Posts
    33


    Did you find this post helpful? Yes | No

    Default

    i forget to say:

    i changed the Oscillator, i tried with a resonator, i put a 100nF on the + and - very near to the PIC, i tried with 8MHz ... without sucess

  7. #7
    Join Date
    Feb 2007
    Posts
    33


    Did you find this post helpful? Yes | No

    Default

    i am using the following:

    @ device pic16F767, hs_osc, wdt_off, pwrt_on, protect_on, mclr_off

    lvp_off is not applicable with this PIC

    => same problem

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Rony View Post
    i am using the following:

    lvp_off is not applicable with this PIC

    => same problem
    You're right, confused with 16F876.
    Thanks and Regards;
    Gadelhas

  9. #9
    Join Date
    Feb 2007
    Posts
    33


    Did you find this post helpful? Yes | No

    Default

    Finally i found it,

    "gadelhas" remark lets me think about the configuration ... thank you

    there is a check box called "FCMEM" in the WinPIC800 programmer, when turning it OFF, it works, and all the rest will not affect this problem.

    anyone knows what is this "FCMEM" that it must be off ??

    thank you for all.
    Rony

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


    Did you find this post helpful? Yes | No

    Default

    Well Done!.....
    Thanks and Regards;
    Gadelhas

  11. #11
    Join Date
    Feb 2007
    Posts
    33


    Did you find this post helpful? Yes | No

    Default

    i searched for the FCMEM, it is described as follows :

    FCMEN: Fail-Safe Clock Monitor Enable bit
    1 = Fail-Safe Clock Monitor enabled
    0 = Fail-Safe Clock Monitor disabled

    Now everything is clear

    Regards
    Rony

Members who have read this thread : 1

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