PIC18F67K40 Timer issues


Results 1 to 6 of 6

Threaded View

  1. #6
    Join Date
    Jun 2017
    Posts
    27


    Did you find this post helpful? Yes | No

    Default Re: PIC18F67K40 Timer issues

    Quote Originally Posted by richard View Post
    Code:
    HeartBeat   var LATH.3
    
    ...
    
    
    toggle HeartBeat
    that's a no go with pbp

    toggle only works with portx regs

    eg
    HeartBeat var porth.3

    toggle HeartBeat


    ps if that's all you want from an interrupt there is no need for all that bloat from dt ints

    see this
    http://www.picbasic.co.uk/forum/showthread.php?t=23874
    Richard, thank you for responding to my plea for help. I looked at the link you provided and I can see that it will come in handy.
    Fortunately, I found the cause of my issue. With tumbleweed's help, I was able to modify DT's_INT-18 for this specific PIC. It was working all along.
    My issue stemmed from me not enabling the Timer module that I was working with. It was disabled at the PMD registers and I was actually enabling the wrong one.
    This is what happens when I don't pay enough attention to which bits I set and clear.

    I needed DT's_INT to work as I don't care to write in assembly, but I will if I have to.
    Not only does it provide me with a HeartBeat timer interrupt, but also for two EUSART ports, an SPI interrupt and 24 IOC inputs. That's alot of interrupts that I think would be best handled by DT's_INT.
    I'm not too concerned about the bloat it brings to the table as long as it gets the job done. There's enough memory in this PIC to get it to do what I need. I'm running it at 64mhz so I think I can catch the "slow" inputs in a timely manner.

    Again, thank you and tumbleweed for the help.

    I can post this version of DT's_INT if anyone is interested. It just needs an appropriate name.

    Thank you guys,

    csantex
    Last edited by csantex; - 29th July 2018 at 04:27.

Similar Threads

  1. Understanding timer issues
    By boroko in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th April 2009, 02:56
  2. Timer Issues
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th September 2007, 15:05
  3. Alarms with Mel's "Olympic Timer" based timer - how to?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 20th June 2007, 22:09
  4. Port A Issues
    By elec_mech in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st June 2005, 21:07

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