interruptMode() \ Language (API) \ Wiring ALPHA 1.0
Search wiring.org.co:
Language (A-Z) \
Libraries \
Environment \
Learning \
Hardware
Reference for Wiring version 0027+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.
Name
interruptMode()
Examples
// set the interrupt mode for the external interrupt 0 to RISING
// (everytime the pin gets from LOW to HIGH)
interruptMode(0, RISING);
Description
It is possible to generate and attend external interrupts on the Wiring I/O board. There are 8 external interrupts, from 0 to 7 so there are 8 pins on the Wiring I/O board capable of external interrupts, 0, 1, 2, 3, 36, 37, 38, and 39 respectively. In addition to being regular digital pins, note that pins 0 and 1 are also used for the Wire library (TWI) and pins 2 and 3 are also the Serial1 serial port pins. The interruptMode method sets the mode in which an external interrupt is generated. External interrupts can be triggered at different stages in the value of a pin, LOW when a pin is low, CHANGE when the pin changes, RISING when the pin goes from low to high or FALLING when the pin goes from high to low.
Syntax
interruptMode(interrupt, mode)
Parameters
interrupt
The number of the external interrupt, from 0 to 7
mode
LOW, CHANGE, RISING or FALLING: the mode the external interrupt is triggered
Returns
None
Usage
Application
Related
attachInterrupt()detachInterrupt() LOWCHANGERISINGFALLING
Updated on September 17, 2010 02:06:22pm PDT
Wiring is an open project initiated by Hernando Barragán. It is developed by a small team of volunteers.
© Info, Processing © Info
Wyszukiwarka
Podobne podstrony:
LPC1114 Cortex M0 Timer0 Match Mode InterruptInterruptedIOExceptionKB08 PHOTO INTERRUPTERSInterruptedNamingExceptionInterruptibleChannelInterruptedIOExceptionChapter 8 ?1 Interrupt2 2 interruptionsjava io InterruptedIOExceptionjava lang InterruptedExceptionusart example interrupt? sourceInterruptsinterrupt hInterruptedExceptionGhost Whisperer [1x03] Ghost Interrupted (XviD asd)więcej podobnych podstron