24EP256GP204 Timer3 external clock not working :(


+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    tadd
    Guest tadd's Avatar

    1 Not allowed!

    Default 24EP256GP204 Timer3 external clock not working :(

    hello friends,
    i work with 24EP256GP204, timer 3 and external clock
    timer 3 is working internal clock PR3 = 65535 , near 500hz

    i need slower timer, external clock 32khz and port T3CK-PORTB.14 but not working with external clock

    i read datasheet if T3CON.1 = 1 timer3 must use external clock, my external clock come from 12F1571, near 32khz, connected T3CK-PORTB.14

    i chose timer 3 because compare modul work with timer2 and timer3

    How can i use external clock for slower timer3?

    Device = 24EP256GP204
    Declare Xtal = 140


    PLL_Setup(76, 2, 2, $0300)
    Config FICD = ICS_PGD1, JTAGEN_OFF
    Config FPOR = ALTI2C1_ON, ALTI2C2_OFF
    Config FWDT = WDTPOST_PS256, WINDIS_OFF, PLLKEN_On, FWDTEN_OFF
    Config FOSC = POSCMD_NONE, OSCIOFNC_ON, IOL1WAY_OFF, FCKSM_CSECME
    Config FOSCSEL = FNOSC_FRCPLL, IESO_ON
    Config FGS = GWRP_OFF




    TRISS:
    TRISA = %000000010000
    TRISB = %0100000110000000
    TRISC = %00100000
    ANSELA = %0000000000000
    ANSELB = %0000000000000
    Input PORTB.14

    '_________________TIMER_3_________________________ ___
    PMD1.13 = 1 'timer3 off
    T3CON.15 = 0
    TMR3 = 0
    PR3 = 65535

    T3CON.1 = 1 '1 = External clock is from pin, TyCK
    T3CON.3 = 0 '0 = only 16-bit timers


    T3CON.4 = 0
    T3CON.5 = 0

    T3CON.6 = 0


    IEC0.8 = 1 'timer3 interrupt
    IFS0.8 = 0 'int flag

    PMD1.13 = 0 'timer3 on
    T3CON.15 = 1

    main:
    If IFS0.8 = 1 Then
    IFS0.8 = 0
    Toggle PORTA.10
    EndIf
    goto main




Attention

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #2
    tadd
    Guest tadd's Avatar

    0 Not allowed!

    Default Re: 24EP256GP204 Timer3 external clock not working :(

    is there any living here

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #3
    Prolific Poster charliecoultas's Avatar
    Join Date
    Sep 2010
    Posts
    1,347
    Thumbs Up
    Received: 42
    Given: 39
    Total Downloaded
    3.36 GB

    0 Not allowed!

    Default Re: 24EP256GP204 Timer3 external clock not working :(

    Yes Tadd, there is life. I don't understand what you are asking.

    Charlie

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #4
    Fanatical Contributor top204's Avatar
    Join Date
    Feb 2002
    Posts
    3,404
    Thumbs Up
    Received: 290
    Given: 141
    Total Downloaded
    1.68 GB

    0 Not allowed!

    Default Re: 24EP256GP204 Timer3 external clock not working :(

    The problem is Tadd, and I've mentioned this on the forum a few times. The PIC24E devices are the most complex of all the PIC24 devices. The vast majority of PIC24 users steer clear of the PIC24E types. Even I don't use them because of their peripheral, nonsense and, complexity. There is no real difference in using a simpler PIC24H to a PIC24E, except the PIC24H devices are, very much, simpler to understand, and more logical.

    I'm afraid on this one, your on your own because the PIC24E datasheets and reference manuals are a disgrace! If you find the issue, please add it to the forum so we can have future reference.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #5
    tadd
    Guest tadd's Avatar

    0 Not allowed!

    Default Re: 24EP256GP204 Timer3 external clock not working :(

    You know everything Less, when i try the write program all registery defined for 24EP,
    for example;

    RPOR7 = %0000000000010100
    OC7TMR = 0
    OC7RS = 20000
    OC7R = OC7RS + 6000

    thats mean , you know all these registery details

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #6
    tadd
    Guest tadd's Avatar

    0 Not allowed!

    Default Re: 24EP256GP204 Timer3 external clock not working :(

    i work with 24EP256GU810 and timer3 external clock
    if you want to use compare output mode, timer3 counts everytime 65535, PR3 is not effective, is that right or i have a mistake ?

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

       

    Similar Threads

    1. PIC16F676 External Clock Confgration
      By thetrueman in forum Proton Plus Compiler v3
      Replies: 10
      Last Post: 6th November 2019, 15:08
    2. 24EP256GP204 external interrupt problem
      By tadd in forum Absolute Beginners Section
      Replies: 12
      Last Post: 23rd February 2019, 12:40
    3. Working with external cristal oscillator 20MH
      By hartoksi in forum Proton Plus Compiler v3
      Replies: 9
      Last Post: 14th July 2009, 01:11
    4. [SOLVED !] External clock source for Shout clock
      By tmurph62 in forum Proton Plus Compiler v3
      Replies: 1
      Last Post: 13th July 2009, 17:07
    5. External Font not working.
      By C_Moore in forum Proton Plus Compiler v3
      Replies: 14
      Last Post: 13th December 2008, 18:11

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts