RPM With Timer1


Closed Thread
Results 1 to 15 of 15

Thread: RPM With Timer1

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Posts
    60


    Did you find this post helpful? Yes | No

    Default

    The only part that doesn't work is the timer1. I have it displying everything except rpm. Timer1 is not counting. As for the if volt statements, all of those lines didn't copy in. They're all there in my code. It's just the Speed part always read 0.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Why ask for help - if you're not going to listen or learn from it?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Jun 2006
    Posts
    60


    Did you find this post helpful? Yes | No

    Default

    What do you mean by that????

  4. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Did you fix the problem areas I pointed out above?

    Can you post your code, that's still not working, showing the fixes?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  5. #5
    Join Date
    Jun 2006
    Posts
    60


    Did you find this post helpful? Yes | No

    Default

    Can't post code. It shows everything correct on reply screen then I hit preview post and it jumbles Speed into Main routine?? Tried three times and now I see the if volt if volt deal. Thats because of the jumbling it did.WOW!! Speed: should read as post 1 does.
    Yes, I did go thru and change what you had said. As for the T1CON I didn't change because that is where the problem is. It just displays 0 all the time??This works on the 16f688 but not the 16f687?? On the datasheet T1CON bit 7 I don't understand?? I can't test anymore tonight had to pick up garage for company tonight, but can still read posts.

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Use the code tags when posting code to help keep formatting.

    See this page for an example http://www.picbasic.co.uk/forum/misc.php?do=bbcode#code

    Just replace value with the code you paste into the text area.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7
    Join Date
    Jun 2006
    Posts
    60


    Did you find this post helpful? Yes | No

    Default

    It's still jumbling the main with speed when I hit preview. It all works except the speed routine.

    Speed:
    wTimer1=0 ' clear Timer1
    T1CON.0=1 ' start timer1
    pause 1000 ' acquisition time
    T1CON.0=0 ' stop timer1
    pause 100
    return

    I call this from a gosub in the main routine. I know it gets here because if I put a number in wtimer1= it will display that number.

Similar Threads

  1. Interrupt RPM and Taylors Elapsed time on 18F4620
    By Tobias in forum mel PIC BASIC Pro
    Replies: 70
    Last Post: - 3rd February 2010, 16:12
  2. Pulsin vs. Interrupt RPM measurement
    By Tobias in forum General
    Replies: 1
    Last Post: - 31st December 2009, 01:29
  3. 16f877A and tmr1 external crystal question
    By comwarrior in forum General
    Replies: 3
    Last Post: - 13th July 2009, 00:40
  4. RPM - DIV32 Problem
    By davewanna in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 11th April 2008, 04:33
  5. Code Issue - select case or 'if' issue - not sure why
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th October 2007, 08:52

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