Recent Changes - Search:
<^< What is a Program? | Course index | Running the Program >^>

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

The Flowcode Process

<^< What is a Program? | Course Index | Running the Program >^>(:nl:)

'Flowcode' offers an easy way to program PICmicro chips, as you will see. Once the flowchart is designed, on-screen, press a button and the software translates it into numerical code.

There is a process here that you need to understand: Flowcode passes your program through a number of processes before it gets sent into your PICmicro device: the flowchart is first processed into C code, then into Assembler, and finally into hexadecimal numbers or 'Hex'. The PICmicro device 'understands' Hex code. The Hex code is then sent into your PICmicro device. To send the Hex code into your PICmicro Flowcode runs a subsidiary program called 'PPP'. When you select Build > Project Options... Configure from the Flowcode menu the program PPP is what you see. PPP controls a number of PICmicro options and configurations by setting the value of registers inside the device when you download a program.

The Hex code is 'burned' into the program memory of the PICmicro chip. Remember that Flash Memory is used to form the program memory? This means that the program is not lost when the PICmicro chip is removed from the programmer, allowing you to use the PICmicro in a circuit. Equally, the use of Flash type memory means that you can reuse the PICmicro, and overwrite the program memory with a new program. (: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 13, 2013, at 01:23 PM