To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 148
147  |  149
Subject: 
Re: Max poke rate?
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Tue, 12 Mar 1996 13:12:17 GMT
Original-From: 
Tom Cicatelli <cica@tiac.net&avoidspam&>
Viewed: 
2072 times
  
Franklin Ranier Roller wrote:

Hi,
    I've been trying to write to PD2 using the following:

    int write_port(int port, int value, int mask)
    {
    poke(port,(value & mask)|(peek(port) & ~mask));
    }

    It works fine except that the fastest cycle that I can get out of
PD2 is about 242 Hz. I need 1.6 kHz. In between PD2_on and PD2_off
I put a msleep(1L) or a sleep(0.001) and the sleep function is faster,
but still not a 1 mS or 1kHz. I've even tried sleep(0.0006) with same
result. Any recommendations? Do I have to hog the processor or what.

Frank

One option might be to try Kurt Konolige's IC compiler.  I believe it
only runs on a Unix machine, but you are able to compile programs for
greater speed.

Check out

http://www.ai.sri.com/people/erratic/icn.html


Tom

--
____________________________________________________________________
Tom Cicatelli                                          cica@tiac.net
Melrose, Massachusetts
____________________________________________________________________



Message is in Reply To:
  Max poke rate?
 
Hi, I've been trying to write to PD2 using the following: int write_port(int port, int value, int mask) { poke(port,(value & mask)|(peek(port) & ~mask)); } It works fine except that the fastest cycle that I can get out of PD2 is about 242 Hz. I need (...) (29 years ago, 11-Mar-96, to lugnet.robotics.handyboard)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR