[TriEmbed] TriEmbed Digest, Vol 15, Issue 22
Charles McClelland
chip at mcclellands.org
Thu Sep 4 21:32:16 CDT 2014
Paul,
Thank you for covering this important and sometimes vexing topic. Working through a few interrupt issues now, could you please cover some of these in your talk?
I am using a hardware interrupt on pin 2 of the Arduino Pro Mini to wake my device from SLEEP_MODE_PWR_DOWN
- Issue - it seems that only a LOW condition on the interrupt pin will wake the Arduino from this sleep so I have to use an inverter. Why?
- Issue - in sleep deeper than SLEEP_MODE_IDLE (the least power saving) - the internal clock stops so I can’t set a timer interrupt. Right?
- I know you don’t want to do a lot in the interrupt service routine. But, can I increment a variable? Do I need to initialize this variable differently?
- I am having problems with including the Sleep.h library and the Wire.h library in the same sketch. Not sure if this is interrupt related but unless I use Rambo’s I2C library, the Arduino does not wake from sleep. (https://github.com/rambo/I2C)
You are probably covering all these points but - hey, you did ask for input . I look forward to your talk on Monday.
Thanks,
Chip
On Aug 31, 2014, at 1:00 PM, triembed-request at triembed.org wrote:
> Send TriEmbed mailing list submissions to
> triembed at triembed.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
> or, via email, send a message with subject or body 'help' to
> triembed-request at triembed.org
>
> You can reach the person managing the list at
> triembed-owner at triembed.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of TriEmbed digest..."
>
>
> Today's Topics:
>
> 1. Interrupts (The MacDougals)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 30 Aug 2014 15:59:16 -0400
> From: "The MacDougals" <paulmacd at acm.org>
> To: <triembed at triembed.org>
> Subject: [TriEmbed] Interrupts
> Message-ID: <065801cfc48c$e1536c00$a3fa4400$@acm.org>
> Content-Type: text/plain; charset="utf-8"
>
> I am working on the presentation for Monday, Sept 8 on Interrupts.
>
> I will cover several situations in which the use of interrupts is a good solution.
>
> I don?t want to miss any of your favorites. So, let me know if you have more to add to this list:
>
>
>
> Awake from sleep mode
>
> Capture brief asynchronous input pulse
>
> Perform an action at a repetitive frequency (e.g. PWM)
>
> watchdog interrupt to detect code going off in the weeds
>
> Rapid response to an input
>
>
>
>
>
> ---> Paul
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mail.triembed.org/pipermail/triembed_triembed.org/attachments/20140830/e1705154/attachment-0001.html>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> TriEmbed mailing list
> TriEmbed at triembed.org
> http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
>
>
> ------------------------------
>
> End of TriEmbed Digest, Vol 15, Issue 22
> ****************************************
More information about the TriEmbed
mailing list