TMR1 How it works?


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    read the section 4.0 of the OlympicTimer document
    http://www.picbasic.co.uk/forum/atta...4&d=1091819883

    RunningFlag variable start and stop the timer.. at least the increment of. Look at the TickCount section.

    Yes you should be able to Store the TMR1 result at any time without too much effect. But the results you need are not store there. See ...
    Code:
    LCDOut $FE,$80,DEC2 Hours,":",DEC2 Minutes,":",DEC2 Seconds,".",DEC2 Hundredths
    Last edited by mister_e; - 18th December 2006 at 05:26.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Feb 2005
    Location
    GREECE
    Posts
    120


    Did you find this post helpful? Yes | No

    Default

    hi,

    I have already read the OlympicTimer document and it is hard for me to undertand how it works(TMR)?
    That is the reason I am asking you?
    Let's have an example:

    Check all the portb of the PIC A for trigger
    SELECT CASE PORTB
    CASE 00000001
    STORE TMR1 <------
    CASE 00000010
    STORE TMR1 <------
    CASE 00000100
    STORE TMR1 <------
    CASE 00001000
    STORE TMR1 <------
    CASE 00010000
    STORE TMR1 <------
    CASE 00100000
    STORE TMR1 <------
    CASE 01000000
    STORE TMR1 <------
    CASE 10000000
    STORE TMR1
    END SELECT


    How I can do that?How I can start the TMR RUNNING?

    Please advice
    Nikos

Similar Threads

  1. Simple TMR1 application example needed
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th February 2010, 09:52
  2. TMR1 external LP xtal setup check
    By comwarrior in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th October 2009, 18:11
  3. Replies: 2
    Last Post: - 7th October 2009, 00:06
  4. Replies: 42
    Last Post: - 14th January 2008, 11:38
  5. Measuring change of frequency with PIC
    By Aussie in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th July 2007, 01:47

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