Home \ Help \ Search \ Login RSS

Welcome, Guest. Please Login

This forum is now READ-ONLY! Please visit http://forum.wiring.co/ for the new forum.

Wiring ForumWiring HardwareTangible computing › Ability to toggle a pin quickly

Page Index Toggle Pages: 1
Ability to toggle a pin quickly (Read 2850 times)
01/29/08 at 17:33:26

larryjoe701   Offline
YaBB Newbies
I Love YaBB 2!

Posts: 2
*
 
I'm using Parallax's Inkjet kit
http://www.parallax.com/Store/Microcontrollers/BASICStampModules/tabid/134/txtSe... with the Wiring board.  The inkjet head calls for some fairly precise timing (40 microJoules of energy must be delivered to activate an inkjet nozzle.)  At 21v it works out to 6microseconds that I need to toggle a pin on the Wiring board, or 4.5microseconds at 24v.  I don't have an oscilliscope with which to test the timings and I imagine that simply calling writeDigital(), delayMicros(), writeDigital() will introduce some inaccuracy due to functioncall overhead.

Does anyone know of a way to precisely toggle a pin?  Or have you tested precise timings and can you provide me with some information about how much overhead there is due to those calls?

Thanks
larryjoe701
 
IP Logged
 
Reply #1 - 01/29/08 at 20:05:55

larryjoe701   Offline
YaBB Newbies
I Love YaBB 2!

Posts: 2
*
 
I continued searching and found the pulseOut() function, which appears capable of doing what I need, except that I need to control twelve pins instead of just one.  I'm looking to connect each of the twelve lines of the inkjet control board to pins on my Wiring board for the fastest and simplest control.

I guess my real question is are the function calls fast enough and the pin manipulations fast enough to naively code a 6 microsecond delay and have it be quite close to 6 microseconds?
 
IP Logged
 
Page Index Toggle Pages: 1