[ Log In ]
Image of the Atmega324p

Atmega324P

$8.50
Qty:
Serial to USB converter with Micro USB cable

USB to Serial Converter

$10.95
Qty:
Thumbnail: Crystal Oscillator 18.432 MHz for UART

18.432 MHz Crystal Oscillator 18pf 30ppm

$0.94
Qty:
Thumbnail: 22 pF Capacitor

22 pF Multilayer Ceramic Capacitor

$0.43
Qty:
Thumbnail: Quartz crystal oscillator - 16 MHz

16 MHz Crystal Oscillator 20 pF Through Hole

$0.75
Qty:
Thumbnail: 4x4 keypad top view.

4x4 Keypad with Adhesive Backing

$3.80
Qty:
Thumbnail: quad buffer line driver 74HC126E

Quad Buffer Line Driver (Through Hole)

$0.69
Qty:
USB AVR programmer

USB AVR Programmer

$9.95
Qty:
3 pin slide switch

SPDT Slide Switch 3 pin 30V

$1.49
Qty:
Handheld auto range multimeter

Handheld Auto Ranging Digital Multimeter

$17.95
Qty:

microcontroller interrupt explanation

*another explanation in the description*
Watch with sound!
in this video i'll explain the interrupt coding principle.
the interrupt example is written to PIC16F887 but the explanation is relavent to a large variety of microcontrollers, including arduino!

feel free to comment with questions and requests.


if the principle is still not clear, reffer to this analogy:
imagine a situation where your phone can't ring or vibrate, during every day routine, in order to know if you got a call you need to constantly look at the phone's screen, So if you are waiting on an important phone call you will check the phone every few seconds, this is like the polling principle:

if(Pone_Ring())
Answer;
Rest_of_Life();
if(Pone_Ring())
Answer;
Rest_of_Life();
if(Pone_Ring())
Answer;
Rest_of_Life();

and so on.
but if your phone is fine, then you can do everything (within the legal boundaries) you want, and at the second you get a phone call a Flag will raise(you will hear the phone Ring) and you would answer it. without the need of constantly checking wheter you have a call or not.



music: Paintball theme, by Bird Creek

Comments and Additional Information

Have some code to share? Or additional information? Respond here:

You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.

Description:

Code (optional):