13.4(b) - Switching to C to Program the MSP430 - Timer Overflow using ACLK + 12-Bit Counter Length

  Рет қаралды 2,147

Digital Logic & Programming

Digital Logic & Programming

Күн бұрын

Пікірлер: 3
@peteabdu9179
@peteabdu9179 6 күн бұрын
Your excitement and pure joy make these videos so enjoyable! Love the book but I also find I learn better with the video and commentary. Amazing work, thank you for making these.
@yugsharma9707
@yugsharma9707 3 жыл бұрын
I am using 2 switches on P3.3 and P3.4 port How can I write ISRs for same port like PORT 3?
@shivamkhamble
@shivamkhamble 2 жыл бұрын
I know it's a bit too late. But if you're still interested, you can detect and handle multiple interrupts on the same port independently by checking the specific bit in the P3IFG register. So even though both your switches are linked to the same interrupt vector (i.e PORT3_VECTOR), you can set up conditionals inside your ISR to check which switch triggered the interrupt. So here's how it would look like #pragma vector=PORT3_VECTOR __interrupt void PORT3_ISR (void) { if (P3IFG & BIT3) // Check whether P3.3 triggered the interrupt P1OUT ^= BIT0; // Desired action like toggling an LED connected to P1.0 if (P3IFG & BIT4) // Check whether P3.4 triggered the interrupt P1OUT ^= BIT1; // Desired action like toggling an LED connected to P1.1 P3IFG &= ~(BIT3 + BIT4); // Clear interrupt flag register P3IFG } Happy learning :)
13.4(c) - Switching to C to Program the MSP430 - Timer Overflow using SMCLK
13:48
Digital Logic & Programming
Рет қаралды 1,9 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3,3 МЛН
13.4(a) - Switching to C to Program the MSP430 - Timer Overflow using ACLK
17:45
Digital Logic & Programming
Рет қаралды 3,9 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 488 М.
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 915 М.
What is a stack and how does it work? - 6502 part 5
24:25
Ben Eater
Рет қаралды 756 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН