8. Arduino Timers and Counters

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 พ.ย. 2024

ความคิดเห็น • 41

  • @acatisfinetoo3018
    @acatisfinetoo3018 3 ปีที่แล้ว

    This is a real gem of a video.

  • @richardsteen4340
    @richardsteen4340 6 หลายเดือนก่อน

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

  • @jippy104
    @jippy104 4 ปีที่แล้ว

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

  • @danmyself5341
    @danmyself5341 3 ปีที่แล้ว

    Your explanations work well for me thank you

  • @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.

  • @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?

  • @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

  • @jayamalapakhare4677
    @jayamalapakhare4677 2 ปีที่แล้ว

    what is 0b at PORTD initialization ?

  • @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.

  • @SC2Wins
    @SC2Wins 10 ปีที่แล้ว +1

    God bless you. I understand it now. Thanks.

  • @AhmedWissam
    @AhmedWissam 4 ปีที่แล้ว

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

  • @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!

  • @dhirendradewangan3524
    @dhirendradewangan3524 4 ปีที่แล้ว

    Description of system timer/counter circuitry in the motherboard?

  • @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

  • @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 "

  • @rameshrathod6960
    @rameshrathod6960 6 ปีที่แล้ว

    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

  • @Jurawood
    @Jurawood 9 ปีที่แล้ว

    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!!!

  • @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.

  • @josegegas
    @josegegas 6 ปีที่แล้ว +1

    Thank you so much!

  • @jogomez1988a
    @jogomez1988a 6 ปีที่แล้ว

    Thanks for sharing. Gracias pro compartir.

  • @ahmadzaklouta
    @ahmadzaklouta 10 ปีที่แล้ว

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

    • @DrZAP42
      @DrZAP42  10 ปีที่แล้ว +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

  • @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

  • @takedowntheccp.5167
    @takedowntheccp.5167 4 ปีที่แล้ว

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

  • @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

  • @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

  • @khantarsidahmed3002
    @khantarsidahmed3002 6 ปีที่แล้ว

    u r Master tnx i like u

  • @edwardarruda7215
    @edwardarruda7215 8 ปีที่แล้ว

    im hooked

    • @Cgmausart
      @Cgmausart 8 ปีที่แล้ว

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

  • @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 ปีที่แล้ว

    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.