Save this video free

CE351 lec28 ADC inclass 9

Yiyan Li · 55:59 · Watch on YouTube

CE351 lec28 ADC inclass 9 Watch on YouTube →

Overview

Yiyan Li explains two ADC sampling exercises: a timer-driven 64-sample capture and a state-machine-based trigger that records 256 samples after detecting an input outside a 150 to 170 threshold band. The lecture also covers ADC prescaler selection, crossing-based frequency measurement and array bounds, timeout and bias improvements, then introduces Eagle or Fusion 360 PCB design and fabrication expectations.

Key takeaways

Chapters

0:00 Task 1: Timer-Driven Capture of 64 ADC Samples
6:00 The 65th Conversion and Restarting Task 1
12:00 Why Task 1 Captures Only a Brief Sound Segment
13:00 Task 2 State Machine: Triggering on the 150 to 170 Band
18:30 Choosing an ADC Prescaler for the 16 MHz Clock
22:30 256 Samples, Crossing Indices, and the 31-Period Limit
28:50 Preventing Crossing-Array Overflow and Measuring Frequency
35:50 Adding a Timeout When Task 2 Never Detects a Whistle
41:20 Calibrating the ADC Bias and Consolidating Its Definition
47:00 PCB Deadlines, Eagle Installation, and Tutorial Setup
51:00 PCB Footprints, Manual Routing, and Panelization

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

Transcript excerpt

0:02 first one show one. So the code is mostly given and um so when you start this micro contour we part it up it will directly collect the samples over here. See what I said there whenever you start it it starts collecting. So which means there's no button uh need to be pressed for the for task one. collect the samples over here. You can see it will be turned it to the serial monitor. >> See? >> Uh so the thing is when you >> so what I can do is I I I press the reset button on the board and then it restarts it will directly execute the setup function function and run the run the interrupt to collect the number of

0:50 samples. I think there are how many are there? 64 if I'm right or less doesn't matter though. I mean so it's collect um certain certain number of samples over there. So in that case by having that in your mind and this is the code it's given. Okay it's given. So task number one is given. Um let me show you on the Okay. So you can see we took about all the registers from from last week and

1:40 these are all the setup for the registers. Okay. And there's no button detection mechanism there at all. If you watch the video, you don't really need anything to be detected. And then getting to the loop function. It's checking the if the sampling is complete. Okay, so because the interrupt is uh enabled and this is a really short code. Okay, interrupts enabled and so this will be executed every 25 microsconds 25 microsconds and when the ADC conversion is complete it goes here and sample it. Okay. And like I said, the first one, the lower two bits are

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

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.