|
Introduction to Microcontroller Programming * Course Index * Introduction * About the Author * About this Course * Feedback * Course Navigation * Quick Course Navigation * How to use this Course * Acronyms Used and Course Conventions About PICmicro Chips * What is a PICmicro? * Microcontrollers * Digital versus Analogue * Inputs and Outputs * Memory * Programming ## What is a Program? ## The Flowcode Process ## Running the Program ## Different Types of PICmicro * 16F1937 Architecture Clocking Your PICmicro Devices * Introduction * The Clock Circuit * Clock Settings * Clock Confusion E-Blocks * Introduction to E-blocks * Using E-blocks * E-blocks Boards Flowcode Step By Step * Introduction to Flowcode * Basic Flowcode Functions * Digital Outputs * Digital Inputs * Basic Loops * The LCD Display * Binary Numbers * Decisions * Goto (Connection Point) * 7-Segment Displays * Software Macro * Strings and Memory * A Simple Hi-Fi PICmicro Projects * Introduction to PICmicro Projects * Construction Methods * Choosing a Power Source * Adding Inputs * Input Conditioning * Adding Outputs * Adding Drivers Labs * Introduction and Lesson Plan * 1. Output * 2. Delay * 3. Connection Point * 4. Calculations * 5. Loop * 6. Input * 7. Decision * 8. LCD * 9. Keypad * 10. Analogue + EEPROM * 11. Software Macro * 12. External Interrupt * 13. Timer Interrupt |
(:Summary:Contains the 'action' links (like Browse, Edit, History, etc.), placed at the top of the page, see site page actions:) (:comment This page can be somewhat complex to figure out the first time you see it. Its contents are documented at PmWiki.SitePageActions if you need help. :) * Print (:comment (:if group Site,SiteAdmin,Cookbook,Profiles,PmWiki*:) (:comment delete if and ifend to enable backlinks:) * %item rel=nofollow class=backlinks accesskey='$[ak_backlinks]'% [[{*$Name}?action=search&q=link={*$FullName} | $[Backlinks] ]] (:ifend:) :) * Login What is a Program?<^< Programming | Course Index | The Flowcode Process >^>(:nl:) Microcontrollers are programmable devices. They do exactly what they are told to do by the program, and nothing else! A program is a list of instructions, along with any data needed to carry them out. Unfortunately, microcontrollers do not understand English. The only thing they understand is numbers. There's a problem! We don't speak in numbers, and they don't understand English! There are two solutions, and both need some form of translator. We can write the program in English, or something close to it, and then have something translate the result into numbers. Alternatively, we can think in English, translate it ourselves into a language that is similar to numbers, known as 'assembler'. From there, it is a swift and simple step to convert into the numerical code that the microcontroller understands. These two extremes are known as programming in a high-level language (something close to English) or in a low-level language (assembler). The first method is usually quicker and easier for the programmer, but it takes longer to run the program, because of the need to translate it for the microcontroller. The second method is much slower for the programmer, but ends up running very quickly on the microprocessor. You might think that this sounds very complicated. You are right it is. But don't worry: Flowcode works using flowcharts: the easiest, and highest level, of programming. (:nl:)(:table style="clear:both":)
| |
(:Summary: Website page footer:)
Print - (:comment (:if group Site,SiteAdmin,Cookbook,Profiles,PmWiki*:) (:comment delete if and ifend to enable backlinks:) %item rel=nofollow class=backlinks accesskey='$[ak_backlinks]'% [[{*$Name}?action=search&q=link={*$FullName} | $[Backlinks] ]] (:ifend:) :) Search - Login
Page last modified on December 22, 2011, at 11:22 AM