TMR1 How it works?


Results 1 to 9 of 9

Threaded View

  1. #4
    Join Date
    Feb 2005
    Location
    GREECE
    Posts
    120


    Did you find this post helpful? Yes | No

    Talking

    Hello to everyboby and Happy New Year.

    I hope that all of your dreams came true in 2007.
    Back to code now...
    I find, while I search and search, the TEST_ELAPSED_SER.PBP code by Darrel Taylor.
    With this you can view a real time clock with HyperTerminal.
    That is what I need. But Taylor has a TICK every 1/100th of a second=10msec with 4Mhz external osc.
    I want 1msec TICK in a format 0d-00:00:00:000.How I am going to do it?
    What i did but it did not work.
    TIMER1 should be tick every 1000μsec 65536-1000 = 64536 FC18 (HEX).

    Have a look to my code and please let me know where is the faulty?
    I have change in the Elapsed.bas
    1.Ticks var word
    2.TimerConst to 0FC18h
    3.if Ticks = 1000 then
    Ticks = Ticks-1000

    The clock did not working.

    Please if Ticks = 1000 then
    Ticks = Ticks-1000
    Regards
    Nikos Geronikolos
    Attached Files Attached Files

Similar Threads

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

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