How to Blink LEDs with Timers and Interrupts in C (MSP430, Arduino)

  Рет қаралды 42,276

Jacob Sorber

Jacob Sorber

Күн бұрын

Пікірлер: 38
@n0handles
@n0handles 4 жыл бұрын
Just want to say I'm glad I stumbled on this series! Keep these coming! I'm a CS student myself, and I've been thinking about getting into embedded systems engineering. However my university doesn't offer any embedded systems courses. Thanks for the great introduction
@rjgonzalez8108
@rjgonzalez8108 4 жыл бұрын
Do you have a video where you explain how to setup VSCode for embedded systems?
@camilocienfuegos1531
@camilocienfuegos1531 4 жыл бұрын
You are perfect educator. Please keep teach us what beginner need. Greetings from Turkey.
@JacobSorber
@JacobSorber 4 жыл бұрын
Thanks. I'll keep doing what I can.
@aabdev
@aabdev 4 жыл бұрын
Dear Jacob Sorber, Thanks a lot for the tutorial. 1) What happens when an interrupt is triggered? 2) What is the interrupt handling algorithm in AVR ARM PowerPC x86 MSP430 MIPS ? 3) How does the microcontroller know where to return after handling an interrupt? 4) Who saves the processor registers when interrupt happens and where? 5) What code performs correct transfer to and from interrupt function? Regards, AB
@arturfil
@arturfil 4 жыл бұрын
Really liking this video series, looking forward to the next!
@blaFERNANDOblablabla
@blaFERNANDOblablabla 4 жыл бұрын
waiting for the next vid! awesome content. Saludos desde Veracruz, México.
@JacobSorber
@JacobSorber 4 жыл бұрын
Working on it. Thanks for watching.
@henryvoide3651
@henryvoide3651 4 жыл бұрын
Professor Sorber, I have learned from your video presentations. I wish you had more of these videos about programming TI's MSP430 Microcontrollers using C language. Do you know any consultants for programming TI's MSP430 Microntrollers in Silicon Valley, CA?
@cuteisjustice8208
@cuteisjustice8208 4 жыл бұрын
This video came right after I finished my Microcomputers course kek. Good video nevertheless.
@JacobSorber
@JacobSorber 4 жыл бұрын
Sorry to be late to the party.
@DipsankarMaity
@DipsankarMaity 4 жыл бұрын
Who are you 😭? Why wasn't I recommended your channel earlier.
@hakimcherfi217
@hakimcherfi217 3 жыл бұрын
14:05 "unless you work in the kernel"... Could you explain in a future video how a kernel works ? (What it is, how it is written, what to do with it,how to modify it...) Great channel BTW !!
@davidgrol3425
@davidgrol3425 2 жыл бұрын
Why is clock rate set to 15.998976 instead 16.000000, is that specific arduino?
@sakshisingh8167
@sakshisingh8167 3 жыл бұрын
PLEASE DO STM32F407VG DISCOVERY BOARD
@yekaalohabtemichael5068
@yekaalohabtemichael5068 4 жыл бұрын
Can you talk about bits minuplation please? I did lzw compression and was so comfusing. Reading no matter what the file is and encode it the be able to decode it aswell
@JacobSorber
@JacobSorber 4 жыл бұрын
Yeah, I've got one on bitfields in the works. Specifically, what sort of bit manipulation are you interested in?
@yekaalohabtemichael5068
@yekaalohabtemichael5068 4 жыл бұрын
Really sorry didn't see your response. Bit field is very helpful. My project was, lets say you have a file no matter what the content is could be image,could be text so the program should compress it and decompress it. So the program should read the file as bits since the file could be anything. Thats what i was struggling with. The bitstream concept. However I don't want to pass without saying thank you tho. I love your teaching style. I am afraid you could get me hocked to embeded system.
@thetoolman01
@thetoolman01 3 жыл бұрын
Trying to use this code and for some reason the CSKEY_H is undefined, any ideas on why this might happen, or how to find the key in the datasheet?
@cadillacescalade5428
@cadillacescalade5428 Жыл бұрын
Hi, what about using this towards a traffic light set up ? An at a certain time the lights go on a flash blink for a certain time an then back at original
@breannnicole9833
@breannnicole9833 Жыл бұрын
You can do this with a schedule
@cadillacescalade5428
@cadillacescalade5428 Жыл бұрын
@@breannnicole9833 can I get the code ?
@JohnCDSMB
@JohnCDSMB 4 жыл бұрын
You're right, comparing children requests to polling. Are women requests comparable to interrupts? They don't depend on your actions, stop your activities at any moment and you're obliged to listen and serve them!
@JacobSorber
@JacobSorber 4 жыл бұрын
Wow. I'm definitely not touching that one. Glad you're having fun with the analogies, though. :)
@JohnCDSMB
@JohnCDSMB 4 жыл бұрын
@@JacobSorber Well, let's say I have a lot of experience with both techniques. Congratulations for the way you teach, it's really great
@benjaminshinar9509
@benjaminshinar9509 4 жыл бұрын
cosmic alpha particles. the bane and goto blame thing of cs.
@JacobSorber
@JacobSorber 4 жыл бұрын
Right up there with...it's possessed. :)
@SuperCape
@SuperCape 4 жыл бұрын
How do you handle interrupts in GNU/Linux x86?
@JacobSorber
@JacobSorber 4 жыл бұрын
On the x86, it's pretty similar. You register your ISR for the interrupt you want. But, this is generally done in the kernel, not by user programs. So, for examples, your best bet is to look at the source code for the operating system. I might do a kernel video one of these days, but it would be pretty involved. So, it probably won't be in the next few months.
@gabrieleinvernizzi9631
@gabrieleinvernizzi9631 4 жыл бұрын
On my MacBook I can’t find the port when I connect the arduino (I have a clone, the Elegoo Uno R3) with the cable, so I can’t upload the code, can someone help me?
@JacobSorber
@JacobSorber 4 жыл бұрын
I would first try another device to determine if it's your computer or a broken Uno.
@gabrieleinvernizzi9631
@gabrieleinvernizzi9631 4 жыл бұрын
@@JacobSorber Thanks, I'll try
@tseckwr3783
@tseckwr3783 2 жыл бұрын
yes, dont get hung up using delay()...
@allisonscanlan4144
@allisonscanlan4144 3 жыл бұрын
MSP430 @9:00
@allisonscanlan4144
@allisonscanlan4144 3 жыл бұрын
What does the
@JacobSorber
@JacobSorber 3 жыл бұрын
It's a shift. It shifts the bits to the left. So, 1
@thaskarthaskaran1425
@thaskarthaskaran1425 4 жыл бұрын
Code for atmega 168
@toastyPredicament
@toastyPredicament Жыл бұрын
I mean prefer
How one thread listens to many sockets with select in C.
12:01
Jacob Sorber
Рет қаралды 100 М.
How to Blink an LED in C (avr, msp430)
16:37
Jacob Sorber
Рет қаралды 34 М.
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 8 МЛН
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 44 МЛН
Understanding Arduino Interrupts | Hardware, Pin Change & Timer Interrupts
48:17
#328 ESP32 Secrets: Interrupts, and Deep-Sleep under the Hood
18:57
Andreas Spiess
Рет қаралды 178 М.
Timer Interrupt ISR + Examples | Arduino101 | Set Registers & Modes
16:13
Level Up Your Arduino Code: Timer Interrupts
17:22
SparkFun Electronics
Рет қаралды 230 М.
How to Use Arduino Interrupts The Easy Way
33:28
Rachel De Barros
Рет қаралды 91 М.
Safety and Speed Issues with Threads. (pthreads, mutex, locks)
9:13
Another way to check pointers at runtime in C
12:16
Jacob Sorber
Рет қаралды 13 М.
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 8 МЛН