Skip to main content
ngaylard
Associate III
May 26, 2009
Question

One Pulse Mode

  • May 26, 2009
  • 1 reply
  • 541 views
Posted on May 26, 2009 at 13:17

One Pulse Mode

    This topic has been closed for replies.

    1 reply

    ngaylard
    ngaylardAuthor
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:13

    Hello All,

    I would really appreciate some assistance as for some reason I have a complete mental block on getting my head around the Timer1 one shot mode. What I am trying to do is very easy and the main problems I have is trying to get to grips with quite a versatile peripheral. The examples seem to try and fit lots of functionality in that simply confuses me (I have looked at the one-shot mode example that comes with the library).

    The objective:

    MODE 1) Use a software trigger to enable one-shot mode whereby the pin is high during the delay time and then driven low during the pulse length.

    MODE 2) Use a software trigger to drive the pin low for the delay period, and then SAMPLE the pin after the pulse period has elapsed.

    *Note: someone may recognise I am trying to implement the Dallas 1-wire protocol here. I don't want to simply use a ''timer'' element to generate the delays due to power consumption.