Changes between Version 2 and Version 3 of ArduinoTimers


Ignore:
Timestamp:
Nov 23, 2021, 2:12:05 PM (10 months ago)
Author:
Eric Hazen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ArduinoTimers

    v2 v3  
    66'''Timer0''' (8 bits)
    77
    8 Default settings for Arduino Pro/Mini (8 MHz):
    9 
    10 {{{
    11 TCCR0A: 3
    12 TCCR0B: 3
    13 TCNT0: 80
    14 OCR0A: 0
    15 OCR0B: 0
    16 TIFR0: 0
    17 TIMSK0: 1
    18 }}}
    19 
    208Used for {{{delay()}}}, {{{millis()}}} and {{{micros()}}}.  Don't mess with it.
    219
     
    2412Not normally used.  For simple use, see the [https://www.arduino.cc/reference/en/libraries/timerone/ TimerOne] library.
    2513
     14For example:
     15
     16{{{
     17  Timer1.initialize(1);    // set period to 1us
     18  Timer1.pwm( 9, 128);     // set to 1/8 duty cycle (128/1024) or 125ns pulse
     19}}}
     20
     21However, this only works on pins 9 and 10;
     22
    2623'''Timer2''' (8 bits)
    2724