|
|
(24 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
− | This exercise looks at transferring to the microcontroller, the flowchart 'Lamp1.fcf' which you developed in the exercises [[Exercise - Creating Your First Flowchart|Creating Your First Flowchart]] and [[Exercise - Adding Devices to Your First Flowchart|Adding Devices to Your First Flowchart]].<br />
| + | For an excellent introduction guide, we recommend [https://www.flowcode.co.uk/education/ Introduction to microcontroller programming] |
− | This involves:
| |
− | : compiling the program (translating it into a form which the microcontroller can use);
| |
− | : moving it to the connected microcontroller;
| |
− | : storing it in the microcontroller's memory.
| |
− | For more details about this part of the process, see [[Adding Finishing Touches]]. | |
− | | |
− | | |
− | | |
− | __TOC__
| |
− | | |
− | | |
− | ==Load the Flowcode Flowchart==
| |
− | | |
− | * Open the flowchart, called 'Lamp1.fcf' which you created in the exercise [[Exercise - Creating Your First Flowchart|Creating Your First Flowchart]].
| |
− | :(For help with this, see the exercise [[Exercise - Opening an Existing Flowchart|Opening an Existing Flowchart]])
| |
− | | |
− | | |
− | ==Compile the program==
| |
− | * Click on the 'Compile to chip' icon[[File:Btn_Compile_Chip.png]]
| |
− | : The 'Compiler Messages' box appears and shows the progress of the process.
| |
− | : First of all, the program is converted into 'C' language.
| |
− | : This is then translated into another language called 'Assembler'.
| |
− | : Finally, the resulting code is transferred to the microcontroller.
| |
− | : The good news is that all of this happens automatically, without the need for any intervention from you!
| |
− | | |
− | | |
− | ==What Next?==
| |
− | The final step is to test that the program controls the hardware.
| |