ADD MACRO
This is as you can understand one of the most powerful and basic functions of the entire system.
This button actually will ADD the macro you want performed into the Diagram box you selected.
Lets take the process one step at a time.
This example assumes you already have a project loaded.
1.) Select a category I/O, Dialog, Calculus, Misc, Interrupt, Logic, Conditional and A/D- D/A click the category of macro you want.
2.) Click the icon connected to the function you want.
3.) Click the BOX on the Diagram ( normally MAIN CODE BODY ) on the Diagram screen where you want the macro to end up.
4.) Click the ADD MACRO button to actually transfer the macro to the project.
Now you have loaded a macro into your project ready for compilation.
IMPORTANT!
To be completely interfaced with the many pre designed functions of this system it is wise to
more or less always use the MAIN CODE BODY box for your own code. The boxes around
this one are possible to use as such, but many times they might be used for special purposes.
Just to stay on the safe side, I would recommend that you follow this simple rule.
Here are explanations of the PROJECT PANEL under the tab Proj
1.) MASTER MCU in USE
This is the actual CHIP the circuit you use. Make sure that this is the correct one selected, everything is actually based on that this is right!
More about loading a project can be found here
2.) Project MCU speed
This is the physical speed in Mega Hertz you will run the chip in. You can read more here
3.) RS232 communication SPEED
This is the BAUDRATE ( bits / second ) that your RS232 serial protocol will communicate in. You can read more about it here
4.) CREATE PROJ
How to create a new project is described here in great detail!
5.) LOAD PROJECT
Click this button and you can load a different project in your list of projects available, read more here
6.) Loop main
When this box is clicked, your main program will be built like a circle, it will run from start to end and then do it all again!
If this box is not clicked, you will have a main program that works like a single run and then nothing more happens!
7.) Force global INT ON.
If you use macros from the INTERRUPT tab, then you should click this box, it is important that you ALLOW the global On/Off switch for interrupts to be on for any routine under the INTERRUPT tab to work. You can stop all interrupt activity by unclicking this box.