Instruction cycle measurement


Results 1 to 10 of 10

Threaded View

  1. #6
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default Re: Instruction cycle measurement

    Why not flip an output each time the PIC processes a message and measure the frequency of that of that output. Then you'll see how many messages per second the PIC is actually processing.
    It's the VB code. I put a counter and a timestamp for each cycle through the mainloop. The results vary but the VB code is only able to poll the PIC every 10-30mS or so, and the counter jumps ~20 cycles. So in one second I can be missing a ton of packets. The VB poll looks like this:
    Time (HH:MM:SS:MS) Counter(X)
    11:07:25.92 / 58
    11:07:25.94 / 70
    11:07:25.95 / 88
    11:07:25.97 / 100
    11:07:25.98 / 115
    11:07:26.00 / 130
    11:07:26.02 / 146
    11:07:26.03 / 160

    When I datalog it's worse

    12:48:54.84 / 252
    12:48:54.88 / 30
    12:48:54.91 / 64
    12:48:54.94 / 90
    12:48:54.97 / 126
    12:48:55.00 / 156
    12:48:55.03 / 186
    12:48:55.06 / 216

    Now I have to look at the VB code and figure that out.........
    Last edited by Christopher4187; - 5th August 2012 at 18:49.

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