Save this video free

CE351 lec22 Wrap up the IR tutorial

Yiyan Li · 49:04 · Watch on YouTube

Part of Fort Lewis College CE351. See all 21 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Yiyan Li wraps up CE351’s infrared transmitter tutorial by tracing the AVR timer-driven state machine: Timer5 generates IR pulses, while Timer3 advances start, data, and stop-bit states and handles message termination. The lecture also reviews UART baud-rate and receive-interrupt setup, checksum and buffer behavior, and exam-style questions on the implementation.

Key takeaways

Chapters

0:00 Timer5 PWM Registers for the IR Start Bit
6:00 Initialize the Transmit State and Current Character
12:00 Transmit Data Bits with a Mask and IR On/Off Control
17:00 Stop Bits, Message Termination, and Checksum Handling
27:30 UART Baud-Rate Register and 16-Bit Value Splitting
31:00 UART Receive Interrupts Capture Complete Bytes
33:30 Exam Review: Baud Rate, Checksums, and IR Register Questions
39:20 Draw the Timer3 Transmit State Machine
46:40 Practice Exam Solutions and Timing Guidance

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:03 And then the next state should be out of the idle state. So in the start bits start bits the start bit state should send a start bit first right. So the start bit will be um IR on or off start bit. So decoder is outputting a zero right because whenever it's TX is pulling it down it starts the transmission. So if you want to pull it down to zero, you to turn on or turn off the IR turn on because all the pulses are triggering a zero from the decoder. So you want to turn it on. So how to turn it on? How to turn it on? Remember? So this will be on the exam. Okay. Make sure that you you know how to

0:52 how to do the uh routine. turn on, turn off, all those kind of things. How to turn it on is in TCCR. Which timer is controlling IR um based on the code we have been doing here. Timer five. So timer three is for what? For the ball rate, right? So timer five is going to be T CCR 5A. So turn turn on you are doing this one shifted by com 51. So that's in the ISR you turn it on turn on I turn on the IR by doing this by turn on this bit. Okay but followed by

1:41 writing a top to it. So what's the no uh writing the compare match register? So it's OCR5 that B OC R5B. Okay. And that equals to a number, right? So that's that controls the what controls the compare match. Okay. So whenever it matches this one, it pulls it down to zero. Okay. For the IR. So this number should be what should be the 10 should be 10% 10% of the uh whatever in the ICR

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Yiyan Li.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.