See the attachInterrupt() function for details. These pins can be configured to trigger an interrupt on a low value, a rising or falling edge, or a change in value. Pins 0 and 1 are also connected to the corresponding pins of the ATmega16U2 USB-to-TTL Serial chip.Įxternal Interrupts: 2 ( interrupt 0), 3 ( interrupt 1), 18 ( interrupt 5), 19 ( interrupt 4), 20 ( interrupt 3) and 21 ( interrupt 2). Serial pins used to receive ( RX) and transmit ( TX) TTL serial data. In addition, some pins have specialized functions: If using more than 12V, the voltage regulator may overheat and damage the board. If supplied with less than 7V, however, the 5V pin may supply less than five volts and the board may become unstable. The board can operate on an external supply of 6 to 20 volts. A maximum of 40mA is the value that must not be exceeded to avoid permanent damage to the microcontroller. Each pin can provide or receive 20 mA as recommended operating condition and has an internal pull-up resistor (disconnected by default) of 20-50 k ohm. Each of the 54 digital pins on the Mega can be used as an input or output, using pinMode(), digitalWrite(), and digitalRead() functions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |