|
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 ## Set up the Equipment ## LCD Displays ## Adding the LCD component ## Writing Messages ## Other LCD Functions ## A More Useful Counter * 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 Adding the LCD Component<^< LCD Displays | Course Index | Writing Messages >^>(:nl:) Before you can use the LCD you need to add one to the Flowcode panel. Start a new program and then click on the Outputs and select LCD component in the menu ![]() The selected component's name at top of the properties pane allows you to know which particular component you are using. By default the LCD is added to Port B. You could change this, but we will keep it on Port B for now. Ok now we have an LCD display added to the program - now what? Is it ready to use? How do we use it? LCD displays require 5 connections on a port and are programmed to display letters and numbers using serial information on the 5 wire bus. The actual technique that this uses is beyond this tutorial, and fortunately Flowcode has some embedded routines that take care of these complexities for you. Drag a 'Component Macro' icon ![]() Now scroll through the 'LCD' section and select the macro called 'Start'. 'Start' initiates the LCD, clears the display and gets it ready for action. We will look at the others in the next couple of sections, but for now why not scroll through the available macros and have a quick look at each one to see if you can work out what they each do? (: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 14, 2013, at 08:40 AM