• AVR Freaks

Hot!I'm not getting both Timer 1 and Timer 5 interrupt on PIC16F18346

Author
razmiggee
New Member
  • Total Posts : 11
  • Reward points : 0
  • Joined: 2020/10/07 14:59:06
  • Location: 0
  • Status: offline
2020/10/30 10:04:35 (permalink)
0

I'm not getting both Timer 1 and Timer 5 interrupt on PIC16F18346

I'm not getting Timer 5 interrupt on PIC16F18346
Timer 5 gate needs to be routed to input RA0 there are pulses coming in  T5GPPSbits.T5GPPS = 0x00;
Timer 5 gate is active when low T5GPOL = 0;
Timer 5 counters low and high are initialized to zero TMR5L=TMR5H=0;
Timer 5 config. T5CON = 0b11100100; Timer5 clock LFINTOSC, Prescale 1:4, Do not sync external clk input
Timer is turned on TMR5ON = 1;
Timer gate is on TMR5GE = 1;
Timer 5 overflow enabled TMR5IE = 1;
I also made sure that the watchdog timer has been disabled!
I expect to see an interrupt when timer5 overflows, but, it does not happen.


#1

4 Replies Related Threads

    upand_at_them
    Super Member
    • Total Posts : 739
    • Reward points : 0
    • Joined: 2005/05/16 07:02:38
    • Location: Pennsylvania
    • Status: online
    Re: I'm not getting both Timer 1 and Timer 5 interrupt on PIC16F18346 2020/10/30 13:14:40 (permalink)
    0 (2)
    Duplicate thread.  Ignore.
    #2
    razmiggee
    New Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2020/10/07 14:59:06
    • Location: 0
    • Status: offline
    Re: I'm not getting both Timer 1 and Timer 5 interrupt on PIC16F18346 2020/10/31 13:59:08 (permalink)
    0
    Hello,
    I had posted about my difficulty with getting TIMER5 interrupt. I offered the entire code w/ header file for expert review. I don't see my posts any longer.
    Is this being looked at?
    Please advise.
     
    Thank you.
    #3
    W4GNS.
    Dazed n Confused
    • Total Posts : 43
    • Reward points : 0
    • Joined: 2009/11/16 18:23:19
    • Status: offline
    Re: I'm not getting both Timer 1 and Timer 5 interrupt on PIC16F18346 2020/10/31 14:05:52 (permalink)
    +1 (1)
    razmiggee
    Hello,
    I had posted about my difficulty with getting TIMER5 interrupt. I offered the entire code w/ header file for expert review. I don't see my posts any longer.
    Is this being looked at?
    Please advise.
     
    Thank you.




     
    Maybe you should consider just using one thread.    https://www.microchip.com/forums/m1156710.aspx
    #4
    PStechPaul
    Super Member
    • Total Posts : 2973
    • Reward points : 0
    • Joined: 2006/06/27 16:11:32
    • Location: Cockeysville, MD, USA
    • Status: offline
    Re: I'm not getting both Timer 1 and Timer 5 interrupt on PIC16F18346 2020/10/31 16:03:18 (permalink)
    0 (2)
    The OP should change the duplicate thread titles to "Ignore".

     
    #5
    Jump to:
    © 2020 APG vNext Commercial Version 4.5