guides:interrupt_driven_rtty
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
guides:interrupt_driven_rtty [2014/04/12 17:46] – ibanezmatt13 | guides:interrupt_driven_rtty [2015/02/03 13:43] (current) – danielrichman | ||
---|---|---|---|
Line 11: | Line 11: | ||
There are many types of interrupt, and each type can be triggered in a certain way, details of which can be found in the interrupt vectors section of any AVR datasheet. An interrupt can be triggered by a pin being pulled low, or perhaps each time an external oscillator ticks, or in many other ways that are described in the datasheet. In this example, we will be focusing on using a software based timer interrupt using the popular ATMEGA328P, a chip used on many Arduino platforms. I will assume prior knowledge of the RTTY (radio teletype) radio mode. | There are many types of interrupt, and each type can be triggered in a certain way, details of which can be found in the interrupt vectors section of any AVR datasheet. An interrupt can be triggered by a pin being pulled low, or perhaps each time an external oscillator ticks, or in many other ways that are described in the datasheet. In this example, we will be focusing on using a software based timer interrupt using the popular ATMEGA328P, a chip used on many Arduino platforms. I will assume prior knowledge of the RTTY (radio teletype) radio mode. | ||
+ | |||
+ | |||
Line 52: | Line 54: | ||
sentence_needed = false; | sentence_needed = false; | ||
digitalWrite(LED_1, | digitalWrite(LED_1, | ||
+ | // warning! The lack of " | ||
+ | // fall through to "case 1" immediately, | ||
+ | // sending the start bit. | ||
} | } | ||
else { | else { | ||
Line 176: | Line 181: | ||
- | And there you have it, one fully functional example of interrupt driven 50 baud RTTY, fully explained. The code in this example of course is only a demonstration and is not a complete program in itself. However, it’s the little guides like this that make you stitch each piece of knowledge together into a structure | + | And there you have it, one fully functional example of interrupt driven 50 baud RTTY, fully explained. The code in this example of course is only a demonstration and is not a complete program in itself. However, it’s the little guides like this that provide opportunity for you to stitch each piece of knowledge together into a structure that, in time, you’ll be far more satisfied with in your HAB endeavors. Time I had a cup of tea and a biscuit, good luck! |
guides/interrupt_driven_rtty.1397324808.txt.gz · Last modified: 2014/04/12 17:46 by ibanezmatt13