8. Arduino Timers and Counters

Поделиться
HTML-код
  • Опубликовано: 1 авг 2024

Комментарии • 41

  • @jippy104
    @jippy104 3 года назад

    Incredibly useful video. Its all makes sense now. Thank you!!

  • @theodorebagwell3967
    @theodorebagwell3967 10 лет назад +2

    I use timer two and the OC2B and OC2A registers (pin 3 and 11). Both pins generate the same output except one is an inverted output. How do i make a dead time between these outputs to make sure both are never on at the same time?

  • @acatisfinetoo3018
    @acatisfinetoo3018 3 года назад

    This is a real gem of a video.

  • @SC2Wins
    @SC2Wins 9 лет назад +2

    God bless you. I understand it now. Thanks.

  • @aske1602
    @aske1602 8 лет назад

    Thanks for the video. I am building a flight controller for my quad copter and need to vary the resolution on the pwm wave. Any sugestions. The manual is pretty confusing. Thanks in advance.

  • @josegegas
    @josegegas 6 лет назад +1

    Thank you so much!

  • @danmyself5341
    @danmyself5341 3 года назад

    Your explanations work well for me thank you

  • @PeterOhlmus
    @PeterOhlmus 9 лет назад

    Hi Robert, can you have multiple interrupts triggered by Timer1 at different counts to do different things? Such as ISR1, ISR2, ISR3 etc? Thanks!

  • @AlwinThomasz2p
    @AlwinThomasz2p 7 лет назад

    Could you please help me to generate two signals(20and 30kHz) with phase shift (0° and 90°), or how to add phase shifting portion in your example program

  • @jogomez1988a
    @jogomez1988a 6 лет назад

    Thanks for sharing. Gracias pro compartir.

  • @rameshrathod6960
    @rameshrathod6960 5 лет назад

    iam trying to measuring the freq and time period for square wave(iam using input capture metrhod), i connect signal to digital pin no 8 i.e ICP1. TCNT1 is automatically stored in ICR1 register during rising Edge. means during rising edge timer will overflow (0 to 65535) . what about during falling edge, which values wil it takes, how can we measure time for square wave please explain me how its working rising and falling edge............
    reply any one
    thnks advance

  • @edguix
    @edguix 5 лет назад

    I’ve been trying to write a function in the example Arduino for ISP sketch so i can write a 1mhz clock signal. I’ve been so confused and put off because the datasheet is so long and confusing. (i need to know what functions use the timers so i don’t break the sketch)
    In the first 4 minutes you’ve shown me how intuitive the data sheet has been all along in terms of realizing that each timer has two channels and etc.
    thank you.

  • @AhmedWissam
    @AhmedWissam 4 года назад

    very good lesson thank ypu
    but where can i download the slides ? the link is not working :(

  • @richardsteen4340
    @richardsteen4340 2 месяца назад

    Excellent Presentation..!! Now on on Interrupts..;)

  • @yasserel-azab7033
    @yasserel-azab7033 8 лет назад

    Every time I try to access the lectures' PDFs it gives me
    "Forbidden
    You don't have permission to access /files260/Lectures/ on this server.
    Apache Server at 128.123.131.68 Port 80 "

  • @dhirendradewangan3524
    @dhirendradewangan3524 4 года назад

    Description of system timer/counter circuitry in the motherboard?

  • @ericthemantis
    @ericthemantis 8 лет назад +5

    Had to adjust the code to get it to run on my Arduino Uno. Mine didn't like the |= on some of the registers, and TCCR0A needed to come before OCR0A and OCR0B-
    // Quadrature encoder simulator
    PORTD &= 0b10011111; //set pins 5,6 to zero
    DDRD |= (1

  • @dinishugo7203
    @dinishugo7203 8 лет назад

    Hello, nice video!
    Is possible configure one timer for 1 hour to activate a interrupt Robert Paz?
    I want put the arduino in sleep mode, during 1 hour. May you help me?
    Thanks

  • @ahmadzaklouta
    @ahmadzaklouta 9 лет назад

    Could you give the name of the program that you use to record lecture like that (displaying your image in the corner)

    • @DrZAP42
      @DrZAP42  9 лет назад +1

      I use Screenflow on the Macintosh. It allows the use of Green Screen (chroma key). To learn more about this, see my video at
      128.123.131.68/Inverted/page1/index.html

  • @khantarsidahmed3002
    @khantarsidahmed3002 6 лет назад

    u r Master tnx i like u

  • @juanmanuelsardoy3122
    @juanmanuelsardoy3122 10 лет назад

    hey, great job here, learning a lot.
    Just one thing, CTC mode is WGM = 100.. not 010,
    or this settings are differents for differents arduino boards?
    thanks a lot!

    • @DrZAP42
      @DrZAP42  10 лет назад

      No they should be the same. Thanks for pointing this out.

  • @edwardarruda7215
    @edwardarruda7215 7 лет назад

    im hooked

    • @Cgmausart
      @Cgmausart 7 лет назад

      Doesn't feel like hidden knowledge anymore, this is better than Breaking Bad

  • @shyamthillainathan8611
    @shyamthillainathan8611 7 лет назад

    Hi Robert Paz: I was not able to access the lecture slides at: "drive.google.com/openid=0B5jlwlXJI8pJVGgwOEg5TFNBTGs". It shows a 404 ERROR. Will it be possible to share the lecture slides for all the videos including your videos on "Arduino Assembly", "Arduino Basics" & "Hands-on Arduino". This would help a lot of people as it would be good reference material. Thanks a ton in advance.

    • @mehulkatpara6437
      @mehulkatpara6437 6 лет назад

      drive.google.com/open?id=0B5jlwlXJI8pJVGgwOEg5TFNBTGs

  • @Jurawood
    @Jurawood 8 лет назад

    It si shame, that it was not explained on the ex. of the input capture.
    A very very... useful feature :-) I write now for car onboard comuter.
    Thanks for your videos tutorials, you go really into detail!!!

  • @jayamalapakhare4677
    @jayamalapakhare4677 2 года назад

    what is 0b at PORTD initialization ?

  • @takedowntheccp.5167
    @takedowntheccp.5167 4 года назад

    thank you ! I liked。 can you display for chinese text.

  • @jogomez1988a
    @jogomez1988a 6 лет назад

    A dude whats means the "&" and "|" symbols on PORTD &= 0b10011111,,,,TCCR0A |= (1

    • @pow9606
      @pow9606 4 года назад

      |= is a bitwise OR and an assignment operation. | is the bitwise OR, the = assigns the results the variable on the left.
      8 bit binary OR Example 11000000 | 00001000 equals 11001000.
      Your example above also uses left shift to create a binary number: 1

  • @fredlodden1538
    @fredlodden1538 5 лет назад +4

    Quite a slow lecture. Too many pauses and 'ummm's and 'errr's .

  • @jerryocrow1
    @jerryocrow1 5 лет назад +2

    1. The teacher assumes I already know what he is about to teach, (2) over explains some ideas while ignoring others., (3), does not relate one point to another, and (4) put me to sleep in less than three minutes. Great sleep aid.

  • @malikmaxwell2192
    @malikmaxwell2192 11 месяцев назад

    At 50 hahhaahahahah what a joke

  • @drlegendre
    @drlegendre 5 лет назад

    The presentation is so dry, it might as well be recorded by a bot. Can't learn when you're sleeping.