18F45K22 timer/counter


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,720


    Did you find this post helpful? Yes | No

    Default Re: 18F45K22 timer/counter

    Code:
    main:
    TMR3L = Counter_1.LOWBYTE
    TMR3H = Counter_1.highbyte
    
    TMR5L = Counter_2.lowbyte
    TMR5H = Counter_2.highbyte
    
    
    
    lcdout $FE, $80, DEC5 counter_1
    lcdout $FE, $C0, dec5 Counter_2
    late night programming ?

    try
    Code:
    main:
     Counter_1.LOWBYTE =TMR3L
     Counter_1.highbyte =TMR3H
    
    
     Counter_2.lowbyte =TMR5L
     Counter_2.highbyte =TMR5H
    
    
    
    
    
    
    lcdout $FE, $80, DEC5 counter_1
    lcdout $FE, $C0, dec5 Counter_2
    Warning I'm not a teacher

  2. #2
    Join Date
    Feb 2005
    Location
    brookfield, ct, usa
    Posts
    24


    Did you find this post helpful? Yes | No

    Default Re: 18F45K22 timer/counter

    Damn, I knew it was something simple but my eyes kept going over it!

    Now that it works time to complicate it. Thank you very much!

    Take care, stay safe and talk to you soon

Similar Threads

  1. 18F45K22 Pull Up on PortE
    By Ioannis in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th December 2015, 22:34
  2. Internal pullups on 18F45K22
    By Experimenter in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd September 2014, 21:13
  3. timer/counter questions
    By missouri100 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th April 2011, 13:01
  4. Replies: 1
    Last Post: - 27th September 2007, 20:15
  5. Need help with Counter/Timer application
    By RussMartin in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 6th September 2006, 06:48

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