| | 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)
| | | | Re: Max poke rate?
|
| (...) I think the Interactive-C overhead will prevent such fast repetition. Simple statements take about a millisecond, with printf's taking 10 msec. You'll probably have to do it in assembler, and use an .icb file. Hope this helps... -mike * (...) (29 years ago, 11-Mar-96, to lugnet.robotics.handyboard)
| | | | Re: Max poke rate?
|
| (...) 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 (URL) ___...___ Tom Cicatelli cica@tiac.net Melrose, Massachusetts ___...___ (29 years ago, 12-Mar-96, to lugnet.robotics.handyboard)
| |