12f1572


Closed Thread
Results 1 to 9 of 9

Thread: 12f1572

  1. #1
    Join Date
    Feb 2007
    Posts
    33

    Default 12f1572

    Hi everyone,

    I got the PIC12F1572 and compile it with the PBP3.0.4.0
    It runs properly when using INTRC, but with external oscillator it doesn't...
    Although i set necessary configuration (ECH, Clock out pin ...) but still not working.
    Note that i am just blinking an LED in the test.


    DEFINE OSC 20
    PORTA = %00000000
    TRISA = %00001000
    INTCON = %00000000
    PIR1 = %00000000
    PIE1 = %00000000
    OPTION_REG = %00000000
    T1CON = %00000000
    T2CON = %00000000
    WPUA = %00001000
    ADCON0 = %00000000
    ADCON1 = %00000000
    ADCON2 = %00000000
    ANSELA = %00000000
    CM1CON0 = %00000000
    CM1CON1 = %00000000
    ODCONA = %00000000
    PWM1CON = %00000000
    PWM2CON = %00000000
    PWM3CON = %00000000
    DACCON0 = %00000000
    DACCON1 = %00000000
    CWG1CON0 = %00000000
    CWG1CON1 = %00000000
    CWG1CON2 = %00000000
    CWG1DBF = %00000000
    CWG1DBR = %00000000

    clear

    Main:

    PORTA.2= 1
    pause 100
    PORTA.2 = 0
    pause 900

    goto Main



    Does anyone can help ?

    Thanks
    Rony

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,516


    Did you find this post helpful? Yes | No

    Default Re: 12f1572

    It runs properly when using INTRC, but with external oscillator it doesn't...
    Although i set necessary configuration (ECH, Clock out pin ...) but still not working.
    Well, show us the necessary configuration then and tell us what type of external oscialltor you're actually using and how it's connected. Without that we can only guess.

    /Henrik.

  3. #3
    Join Date
    Feb 2007
    Posts
    33


    Did you find this post helpful? Yes | No

    Default Re: 12f1572

    Name:  12F1572.JPG
Views: 671
Size:  111.4 KBName:  12F1572_Schematic.JPG
Views: 734
Size:  16.1 KB
    Attached relative pictures

  4. #4
    Join Date
    Feb 2007
    Posts
    33


    Did you find this post helpful? Yes | No

    Default Re: 12f1572

    sorry i forget the resonator
    I will put it now

  5. #5
    Join Date
    Feb 2007
    Posts
    33


    Did you find this post helpful? Yes | No

    Default Re: 12f1572

    Resonator added to the schematic
    Name:  12F1572_Schematic.JPG
Views: 887
Size:  20.6 KB
    Attached Images Attached Images  
    Last edited by Rony; - 28th January 2017 at 15:17.

  6. #6
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,516


    Did you find this post helpful? Yes | No

    Default Re: 12f1572

    OK, with a resonator I don't think you can have CLKOUT enabled.

    /Henrik.

  7. #7
    Join Date
    Feb 2007
    Posts
    33


    Did you find this post helpful? Yes | No

    Default Re: 12f1572

    The other option is I/O function which is not the case, anyway i just tested it and didn't function.

    Name:  12F1572-2.JPG
Views: 629
Size:  116.0 KB

  8. #8
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,516


    Did you find this post helpful? Yes | No

    Default Re: 12f1572

    You're right, it can't be I/O -but it can't be CLKOUT either....
    I may be wrong but it looks to me as if the 12F1572 can not run directly on a crystal or resonator but rather depends on an external oscillator "module". I suggest you read the oscillator section of the datasheet and see if you agree.

    /Henrik.

  9. #9
    Join Date
    Feb 2007
    Posts
    33


    Did you find this post helpful? Yes | No

    Default Re: 12f1572

    I think you're right, i was reading it now and found out that this PIC is not suitable for oscillator or resonator, it should be used by either internal clock or external clock.
    Thanks for your cooperation.

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