|
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 * 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 ## Set up the Equipment ## A Binary Adder ## Set up the Flowchart ## Create the Variables ## Set up the Inputs ## Set up the Calculation ## Set up the Output ## Adding the LED array ## Adding the Switches ## Slow Simulation * 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 Set up the Inputs<^< Create the Variables | Course Index | Set up the Calculation >^>(:nl:) Right-click on the top Input icon, and select Properties from the menu. The following dialogue box appears. ![]() Double-click on the word Input in the 'Display name:' box to highlight it. Type "Input the first number" to replace it. This will appear alongside the Input icon on the flowchart. In a complex flowchart, adding labels like this helps users to understand what is happening. Click on the ![]() This lists the three variables that you just created. Double-click on the word 'input1' to use it in the input box. Back to the Input Properties box again. It is set to 'PORTA' at the moment. Click on the down arrow at the end of the Port window, and select 'PORTB'. Click on OK to close the Input Properties box. Double-click on the second 'Input' icon. (This is a quick way to open the 'Properties' box, instead of right-clicking on the icon and selecting 'Properties' from the menu.) Set up this Input to: * Display the label "Input the second number". * Use the variable 'input2'. * Use 'PORTC'. Then close the Input Properties box by clicking the OK button. (: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 May 02, 2013, at 11:00 AM