Count?


Closed Thread
Results 1 to 10 of 10

Thread: Count?

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Bruce, I just did it again with exactly the same code as posted. The ckecksum is 3174 with 1000, and 3160 with 2000. Could you check your checksums? I'll check the incoming pulses with a scope later tonight, to make sure nothing's changing there.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    After adding the line to enable T1 within the Main loop, Mr. E's program does want I need. Thank you Mr. E!

    Main:

    wTimer1=0 ' clear Timer1
    T1CON = %00000111
    pause 1000 ' acquisition time
    T1CON = %00000110
    lcdout $fe,1, dec wTimer1
    pause 100
    goto Main

    However, the program that uses COUNT does not work! Maybe it's peculiar to the PIC I'm using? I did notice it has something to do with the watchdog timer, but I'm not going to mess with it further right now.

    Thank you everyone for the help.

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


    Did you find this post helpful? Yes | No

    Default

    Great, and it use the internal hardware, use less code space and etc.

    Anyways, out of curiosity, which PBP version you're using?
    Steve

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

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Yes, I think it is a better solution all around! I am using 2.50b, Haven't installed the latest patch yet. Thanks again!

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


    Did you find this post helpful? Yes | No

    Default

    For the record, I tried COUNT with a 16F917, and it worked regardless of the acquisition time. Hard to tell where the issue come from

    Oh well, it works... if it's not broken, don't fix it
    Steve

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

Similar Threads

  1. COUNT is not counting again
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 19th June 2009, 04:52
  2. Can't get COUNT to count
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 23rd March 2009, 23:14
  3. Count pulses between VARIABLE TIME
    By RodSTAR in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th October 2007, 12:44
  4. Multiplex Display with count comand
    By mdaweb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th October 2005, 04:09
  5. Count command
    By hawk72501 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th September 2005, 19:04

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