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 ForumProgramming Questions & HelpPrograms › internInterrupts exemple?

Page Index Toggle Pages: 1
internInterrupts exemple? (Read 2791 times)
03/09/07 at 11:07:28

uki   Offline
YaBB Newbies

Posts: 19
*
 
Hello,

Please can someone show me the most basic usage of interrupts() ?

I want to control in precise time intervals stepper motors and write-read from serial port...

thanx in advance,
uki




 
IP Logged
 
Reply #1 - 03/10/07 at 05:17:09

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
The The noInterrupts() and interrupts() methods are for disable and enable interrupts in the Wiring board, note that all the Wiring functionality will stop by disabling interrupts. These methods are useful to mark critical sections of code where timing is so important that it can not be interrupted by other tasks (like Serial, Wire, other libraries or timing activities).

I think what you're looking for is a way to generate internal timing interrupts. Please check the code for the Serv library that comes with your distribution, you can also look at it online here: http://wiring.uniandes.edu.co/source/trunk/wiring/lib/Servo/
very precise timing is use to control the servos.

 
IP Logged
 
Page Index Toggle Pages: 1