While Loops Slow??


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Frozen001 View Post
    The pic is running at 20MHz.

    PortA is connected to the old piece of equipment circa early 80's running 6800 microprocessor to drive an 18-segment display. I am working to replace the display with a newer dot matrix display. I pelieve the 6800 clock is 500KHZ, but could be wrong.

    The signals on PortA are TTL level, and change with every clock cycle on the 6800.

    The code shown was just test code to see if I can consistantly read the data, which it turns out I cannot.
    Are you sure the PIC is running 20Mhz? Could be running on the internal 'failure' clock.
    Does a one-second blinky LED actually blink at one second intervals?

    Also, check up on using the LAT register vs. the PORTx register...

    How fast is it actually running thru the loop? 1x per second? 100x per second? 10000000000000000000000x per second?
    Can you measure it?
    Last edited by skimask; - 29th October 2008 at 20:04.

Similar Threads

  1. 4 Channel Thermostat using PID loops
    By malc-c in forum Code Examples
    Replies: 36
    Last Post: - 18th March 2013, 11:17
  2. Multi Slow speed PWM and Instant Interrupts
    By DaveC3 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 2nd November 2010, 13:50
  3. Slow code needs a tune up
    By Tobias in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th January 2010, 16:05
  4. Going Loopy - How do i get my Loops sorted out ???
    By gtvmarty in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th September 2009, 06:02
  5. Code Executing Slow
    By Frozen001 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 5th September 2008, 22:09

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